body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* --- Auth pages (Login / Register / ResetPassword) --- */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h1 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #0056b3;
}

.message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

/* --- Dashboard (App.html) --- */
.dashboard-container {
    width: 95%;
    max-width: 900px;
    height: 95vh;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-left h1 {
    text-align: left;
    margin: 0;
}

nav button {
    width: auto;
    padding: 0.5rem 1rem;
    background-color: #dc3545;
}

nav button:hover {
    background-color: #b02a37;
}

main {
    flex: 1;
    overflow: auto;
}

.account-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-section h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.account-section-header h2 {
    margin: 0;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
}

.account-table td {
    padding: 0.35rem 0.5rem 0.35rem 0;
    vertical-align: top;
}

.account-table td:first-child {
    color: #666;
    white-space: nowrap;
    width: 45%;
}

.account-table td:last-child {
    font-weight: 600;
}

.account-form .form-group {
    max-width: 320px;
}

.account-form button {
    width: auto;
    padding: 0.6rem 1.5rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
        padding: 0;
    }

    .login-container {
        border-radius: 0;
        box-shadow: none;
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .dashboard-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        border-radius: 0;
        padding: 0.75rem;
        overflow: visible;
        box-shadow: none;
    }

    main {
        overflow: visible;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    nav {
        width: 100%;
    }

    nav button {
        width: 100%;
    }
}
