/* Dashboard Styling */
.dashboard {
    margin-top: 60px;
    padding: 40px 0;
    min-height: calc(100vh - 160px);
    background-color: #f8f8f8;
}

/* Header Navigation for Dashboard */
.nav-links {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* User Profile Dropdown Menu */
.user-menu {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    transition: background-color 0.3s ease;
}

.user-profile:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}

.user-initial {
    width: 32px;
    height: 32px;
    background-color: #333333;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 10px;
    font-family: 'Roboto', sans-serif;
}

.user-name {
    font-size: 14px;
    color: #333333;
    font-family: 'Roboto', sans-serif;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.dropdown-menu ul li {
    padding: 0;
    margin: 0;
    width: 100%;
}

.dropdown-menu ul li a {
    display: block;
    padding: 8px 20px;
    color: #555555;
    font-size: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.dropdown-menu ul li a:hover {
    background-color: #f5f5f5;
    color: #333333;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: #333333;
    font-weight: 400;
    margin-bottom: 5px;
}

#last-login {
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
}

.quick-actions {
    display: flex;
    gap: 15px;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.dashboard-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #333333;
    font-weight: 400;
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

/* Section Header with Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.section-header .btn {
    margin-bottom: 2px;
}

/* Override the existing h2 style in dashboard cards */
.dashboard-card h2:not(.section-header h2) {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

/* Profiles Overview */
.profiles-overview {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profiles-overview .section-header {
    flex-shrink: 0;
}

.profiles-list {
    height: calc(100% - 120px);
    max-height: 550px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.profiles-overview .disclaimer {
    margin-top: auto;
    flex-shrink: 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.empty-state p {
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Performance Card */
.performance-card {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
}

.performance-chart {
    flex-grow: 1;
    min-height: 250px;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    position: relative;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.performance-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.chart-message {
    position: relative;
    z-index: 5;
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

/* Graph Visualization Elements */
.graph-line {
    position: absolute;
    height: 2px;
    background-color: #333;
    opacity: 0.1;
}

.graph-line.line-1 {
    width: 80%;
    top: 40%;
    left: 10%;
}

.graph-line.line-2 {
    width: 80%;
    top: 60%;
    left: 10%;
}

.data-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.2;
}

.data-point.point-1 {
    top: 40%;
    left: 30%;
}

.data-point.point-3 {
    top: 60%;
    left: 50%;
}

.data-point.point-5 {
    top: 40%;
    left: 70%;
}

/* Insights Card */
.insights-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.insights-content {
    color: #666666;
    line-height: 1.8;
    font-size: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insights-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.insights-list li {
    margin-bottom: 10px;
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
}

/* Assessments Card */
.assessments-card {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.assessments-content {
    color: #555555;
    line-height: 1.6;
}

.empty-assessments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-top: 20px;
}

/* Evaluations Table Styling */
.evaluations-table {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.evaluation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

.evaluation-item:hover {
    background-color: #f9f9f9;
}

.evaluation-item:last-child {
    border-bottom: none;
}

.evaluation-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #333333;
    margin-bottom: 5px;
    font-weight: 400;
}

.evaluation-info p {
    color: #666666;
    font-size: 10px;
    margin-bottom: 5px;
    line-height: 1.8;
}

.evaluation-info p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 3px solid #4a6fa0;
}

.disclaimer p {
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
    margin: 0;
}

.disclaimer a {
    color: #4a6fa0;
    text-decoration: none;
    font-weight: 500;
}

.disclaimer a:hover {
    text-decoration: underline;
}

.empty-assessments p {
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
    margin-bottom: 20px;
}


/* Getting Started Section */
.getting-started {
    grid-column: 1 / 3;
    grid-row: 4 / 5 !important;
}

.steps-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.step {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.step:hover {
    background-color: #f0f0f0;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #333333;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 400;
}

.step-content p {
    color: #666666;
    font-size: 10px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.btn-text {
    color: #4a6fa0;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    padding-bottom: 3px;
}

.btn-text:hover {
    border-bottom-color: #4a6fa0;
}

/* Profile item styling */
.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

.profile-item:hover {
    background-color: #f9f9f9;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #333333;
    margin-bottom: 5px;
    font-weight: 400;
}

.profile-info p {
    color: #666666;
    font-size: 10px;
    margin-bottom: 0;
    line-height: 1.8;
}

/* Mobile responsiveness */
/* Close button for getting started card */
.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profiles-overview,
    .performance-card,
    .insights-card,
    .assessments-card,
    .getting-started {
        grid-column: 1;
    }

    .profiles-overview {
        grid-row: 1;
    }

    .performance-card {
        grid-row: 2;
    }

    .insights-card {
        grid-row: 3;
    }

    .assessments-card {
        grid-row: 4;
    }

    .getting-started {
        grid-row: 5 !important;
    }

    .steps-list {
        flex-direction: column;
    }

    .step {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-text {
        margin-bottom: 20px;
    }

    .quick-actions {
        width: 100%;
    }

    .quick-actions .btn {
        flex: 1;
        text-align: center;
    }

    .header-content {
        flex-direction: row;
    }

    nav {
        display: flex;
        align-items: center;
    }
}