﻿/* wwwroot/css/account.css */

.account-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
}

.account-sidebar {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
}

.account-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.account-sidebar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.account-sidebar__name {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.account-sidebar__email {
    font-size: 0.8rem;
    color: #9ca3af;
}

.account-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-nav__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .account-nav__link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .account-nav__link:hover {
        background: #f9fafb;
        color: #111827;
    }

.account-nav__link--active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.account-content {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 1.75rem;
}

.account-content__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.account-form-row {
    margin-bottom: 1.1rem;
}

    .account-form-row label {
        display: block;
        font-size: 0.85rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 0.4rem;
    }

    .account-form-row input {
        width: 100%;
        padding: 0.6rem 0.85rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.6rem;
        font-size: 0.9rem;
        font-family: inherit;
        color: #111827;
        background: #fff;
        transition: border-color 0.15s ease;
        box-sizing: border-box;
    }

        .account-form-row input:focus {
            outline: none;
            border-color: #2563eb;
        }

    .account-form-row .field-error {
        color: #dc2626;
        font-size: 0.78rem;
        margin-top: 0.3rem;
        display: block;
    }

.account-form-actions {
    margin-top: 1.5rem;
}

.account-btn-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 0.65rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

    .account-btn-submit:hover {
        background: #1d4ed8;
    }

.account-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

    .account-empty svg {
        width: 48px;
        height: 48px;
        margin: 0 auto 1rem;
        color: #d1d5db;
    }

.myexam-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.myexam-card {
    border: 1px solid #f3f4f6;
    border-radius: 0.85rem;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.myexam-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.myexam-card__title {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.myexam-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.myexam-badge--upcoming {
    background: #fef3c7;
    color: #92400e;
}

.myexam-badge--can-participate {
    background: #dbeafe;
    color: #1e40af;
}

.myexam-badge--expired {
    background: #f3f4f6;
    color: #6b7280;
}

.myexam-badge--completed {
    background: #d1fae5;
    color: #047857;
}

.myexam-card__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #4b5563;
}

    .myexam-card__info b {
        color: #374151;
        font-weight: 500;
        margin-left: 0.3rem;
    }

.myexam-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.myexam-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.myexam-btn-primary {
    background: #2563eb;
    color: #fff;
}

    .myexam-btn-primary:hover {
        background: #1d4ed8;
    }

.myexam-btn-success {
    background: #059669;
    color: #fff;
}

    .myexam-btn-success:hover {
        background: #047857;
    }

.myexam-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.myexam-score {
    font-size: 0.85rem;
    color: #374151;
}

    .myexam-score b {
        color: #111827;
    }
.myexam-search {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

    .myexam-search input {
        flex: 1;
        padding: 0.65rem 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.65rem;
        font-size: 0.9rem;
        font-family: inherit;
        box-sizing: border-box;
    }

        .myexam-search input:focus {
            outline: none;
            border-color: #2563eb;
        }

    .myexam-search button {
        background: #2563eb;
        color: #fff;
        border: none;
        padding: 0.65rem 1.5rem;
        border-radius: 0.65rem;
        font-weight: 500;
        font-size: 0.9rem;
        cursor: pointer;
        font-family: inherit;
        white-space: nowrap;
    }

        .myexam-search button:hover {
            background: #1d4ed8;
        }

.myexam-search__clear {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}

    .myexam-search__clear:hover {
        background: #e5e7eb !important;
    }
.exam-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.exam-page-link {
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

    .exam-page-link:hover {
        background: #f9fafb;
    }

.exam-page-link--active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.exam-page-link--disabled {
    background: #f3f4f6;
    color: #d1d5db;
    pointer-events: none;
}