:root {
    --primary-blue: #0077be;
    --secondary-blue: #a2d2ff;
    --clean-white: #f0f8ff;
    /* AliceBlue - very light blue for surfaces */
    --bg-light: #d1e9ff;
    /* More visible blue background */
    --text-dark: #1a2a3a;
    --error-red: #ff4d4d;
    --glass-bg: rgba(240, 248, 255, 0.8);
    --shadow: 0 4px 15px rgba(0, 119, 190, 0.1);
    --btn-bg: #0077be;
    --btn-hover: #005fa3;
    --card-border: rgba(0, 119, 190, 0.1);
}

.theme-dark {
    --primary-blue: #7aa2f7;
    /* Tokio Night Blue */
    --bg-light: #1a1b26;
    /* Tokio Night Bg */
    --clean-white: #24283b;
    /* Tokio Night Surface */
    --text-dark: #cfc9c2;
    /* Tokio Night Foreground */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(36, 40, 59, 0.7);
    --btn-bg: #bb9af7;
    /* Tokio Night Purple */
    --btn-hover: #9d7cd8;
    --card-border: rgba(122, 162, 247, 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 500px;
    background: var(--clean-white);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

header {
    background: linear-gradient(135deg, var(--primary-blue), #00a8ff);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.home-link,
.settings-link {
    color: white;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 1.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.auth-form,
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

input,
select,
textarea {
    padding: 0.8rem;
    border: 1px solid rgba(0, 119, 190, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--clean-white);
    color: var(--text-dark);
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
    border-color: #444;
}

button {
    padding: 1rem;
    background-color: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: var(--btn-hover);
}

.card {
    background: var(--clean-white);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.main-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    min-height: 120px;
    margin-bottom: 0;
    /* Override card margin */
}

.menu-button:hover {
    border-color: var(--primary-blue);
}

.menu-button i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    transition: color 0.4s ease;
}

.menu-button span {
    font-weight: 600;
    font-size: 0.9rem;
}

.greeting h2 {
    margin: 0;
    color: var(--primary-blue);
}

.weather-box {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
}

.empty-pools-state {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.empty-pools-state i {
    width: 64px;
    height: 64px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.empty-pools-state p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.5;
}