/* Dashboard Styles */
.card {
    background: rgba(15, 29, 56, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.card-header {
    background: rgba(0, 242, 254, 0.05);
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
    color: #ffffff;
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .card p, .card span, .card label {
    color: #ffffff;
}

.card .text-muted {
    color: #94a3b8 !important;
}

/* Ensure main content doesn't go under the fixed header */
main {
    margin-top: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
    background-color: #0d6efd;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #ffffff;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

.sidebar .nav-link:hover {
    color: #ffffff; /* white text */
    background-color: #0d6efd; /* blue background */
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: #495057; /* gray active */
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.welcome-card .card-body {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.welcome-icon {
    opacity: 0.3;
    transform: rotate(-10deg);
}

/* Stats Cards */
.stats-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #6f42c1);
}

.activity-item {
    position: relative;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.activity-time {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.activity-content h6 {
    margin-bottom: 0.25rem;
    color: #333;
}

.activity-content p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Assessment Cards */
.assessment-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.assessment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.assessment-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.25rem 1rem;
}

.assessment-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.assessment-category.technical {
    color: #0d6efd;
}

.assessment-category.behavioral {
    color: #198754;
}

.assessment-category.personality {
    color: #6f42c1;
}

.assessment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.assessment-duration {
    font-size: 0.875rem;
    color: #6c757d;
}

.assessment-questions {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Progress Indicators */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.35s;
    transform-origin: 50% 50%;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0.25rem 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding: 0;
        box-shadow: none;
    }
    
    .sidebar .nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .sidebar .nav-link {
        white-space: nowrap;
        margin: 0 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .welcome-card .card-body {
        padding: 1.5rem;
        text-align: center;
    }
    
    .welcome-card .row {
        flex-direction: column-reverse;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .stats-card .card-body {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .stats-card .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-icon {
        margin-bottom: 1rem;
    }
    
    .activity-timeline {
        padding-left: 1rem;
    }
    
    .activity-timeline::before {
        left: 0.5rem;
    }
    
    .activity-item::before {
        left: -1.25rem;
    }
}

@media (max-width: 575.98px) {
    .assessment-card .card-body {
        padding: 1rem;
    }
    
    .assessment-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sidebar {
        background-color: #212529;
        color: #fff;
    }
    
    .sidebar .nav-link {
        color: #adb5bd;
    }
    
    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .activity-item {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .activity-content h6 {
        color: #f7fafc;
    }
    
    .activity-content p {
        color: #cbd5e0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .stats-card,
    .assessment-card,
    .activity-item {
        border: 2px solid #000;
    }
    
    .sidebar .nav-link.active {
        border: 2px solid #0d6efd;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stats-card,
    .assessment-card {
        transition: none;
    }
    
    .stats-card:hover,
    .assessment-card:hover {
        transform: none;
    }
    
    .progress-ring-circle {
        transition: none;
    }
}

/* Loading states */
.loading-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-button {
    height: 2.5rem;
    width: 120px;
    border-radius: 6px;
}

/* Welcome Modal Styles */
.welcome-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: welcomeGlow 4s ease-in-out infinite alternate;
}

@keyframes welcomeGlow {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(180deg) scale(1.1); }
}

.welcome-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.welcome-animation {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.welcome-icon-large {
    font-size: 4rem;
    color: #fff;
    animation: welcomeBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes welcomeBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.welcome-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: welcomeFadeIn 1s ease-out 0.5s both;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    animation: welcomeFadeIn 1s ease-out 0.7s both;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.welcome-feature {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: welcomeSlideIn 0.8s ease-out both;
}

.welcome-feature:nth-child(1) { animation-delay: 0.9s; }
.welcome-feature:nth-child(2) { animation-delay: 1.1s; }
.welcome-feature:nth-child(3) { animation-delay: 1.3s; }
.welcome-feature:nth-child(4) { animation-delay: 1.5s; }

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.welcome-feature:hover .feature-icon {
    transform: scale(1.1);
}

.welcome-feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.welcome-feature p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.5;
}

.welcome-actions {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.welcome-btn {
    margin: 0 0.5rem 1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: welcomeFadeIn 1s ease-out 1.7s both;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.welcome-btn.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

.welcome-btn.btn-primary:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.welcome-btn.btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.welcome-btn.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Responsive Welcome Modal */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-header {
        padding: 2rem 1rem 1rem;
    }
    
    .welcome-content {
        padding: 1.5rem 1rem;
    }
    
    .welcome-feature {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .welcome-actions {
        padding: 1.5rem 1rem;
    }
    
    .welcome-btn {
        display: block;
        width: 100%;
        margin: 0 0 0.75rem;
    }
    
    .welcome-icon-large {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .welcome-container {
        min-height: 400px;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .welcome-feature h4 {
        font-size: 1.1rem;
    }
    
    .welcome-feature p {
        font-size: 0.85rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .welcome-container::before,
    .welcome-icon-large,
    .particle,
    .welcome-title,
    .welcome-subtitle,
    .welcome-feature,
    .welcome-btn {
        animation: none;
    }
    
    .welcome-feature:hover,
    .welcome-btn:hover {
        transform: none;
    }
}

/* Full Page Welcome Styles */
.tab-content-section {
    min-height: calc(100vh - 120px);
}

.welcome-container-full {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: calc(100vh - 120px);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 0;
}

.welcome-container-full::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: welcomeGlow 4s ease-in-out infinite alternate;
}

.welcome-header-full {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.welcome-animation-full {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.welcome-icon-large-full {
    font-size: 5rem;
    color: #fff;
    animation: welcomeBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.welcome-particles-full {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.welcome-particles-full .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.welcome-particles-full .particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.welcome-particles-full .particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.welcome-particles-full .particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.welcome-particles-full .particle:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

.welcome-particles-full .particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

.welcome-title-full {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: welcomeFadeIn 1s ease-out 0.5s both;
}

.welcome-subtitle-full {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 0;
    animation: welcomeFadeIn 1s ease-out 0.7s both;
}

.welcome-content-full {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    margin: 0 2rem;
    border-radius: 20px;
}

.welcome-feature-full {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: welcomeSlideIn 0.8s ease-out both;
    height: 100%;
}

.welcome-feature-full:nth-child(1) { animation-delay: 0.9s; }
.welcome-feature-full:nth-child(2) { animation-delay: 1.1s; }
.welcome-feature-full:nth-child(3) { animation-delay: 1.3s; }
.welcome-feature-full:nth-child(4) { animation-delay: 1.5s; }

.welcome-feature-full:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-full {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.welcome-feature-full:hover .feature-icon-full {
    transform: scale(1.1);
}

.welcome-feature-full h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.welcome-feature-full p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
}

.welcome-actions-full {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.welcome-btn-full {
    margin: 0 1rem 1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: welcomeFadeIn 1s ease-out 1.7s both;
    font-size: 1.1rem;
}

.welcome-btn-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.welcome-btn-full.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

.welcome-btn-full.btn-primary:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.welcome-btn-full.btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.welcome-btn-full.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Responsive Full Page Welcome */
@media (max-width: 768px) {
    .welcome-title-full {
        font-size: 2.2rem;
    }
    
    .welcome-subtitle-full {
        font-size: 1.1rem;
    }
    
    .welcome-header-full {
        padding: 3rem 1rem 1.5rem;
    }
    
    .welcome-content-full {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .welcome-feature-full {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .welcome-actions-full {
        padding: 2rem 1rem;
    }
    
    .welcome-btn-full {
        display: block;
        width: 100%;
        margin: 0 0 1rem;
    }
    
    .welcome-icon-large-full {
        font-size: 4rem;
    }
    
    .welcome-particles-full {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .welcome-container-full {
        margin: 10px 0;
        border-radius: 15px;
    }
    
    .welcome-title-full {
        font-size: 1.8rem;
    }
    
    .welcome-feature-full h4 {
        font-size: 1.2rem;
    }
    
    .welcome-feature-full p {
        font-size: 0.9rem;
    }
    
    .feature-icon-full {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Reduced motion support for full page */
@media (prefers-reduced-motion: reduce) {
    .welcome-container-full::before,
    .welcome-icon-large-full,
    .welcome-particles-full .particle,
    .welcome-title-full,
    .welcome-subtitle-full,
    .welcome-feature-full,
    .welcome-btn-full {
        animation: none;
    }
    
    .welcome-feature-full:hover,
    .welcome-btn-full:hover {
        transform: none;
    }
}
