/* Assessio Custom Styles */
:root {
    --primary-color: var(--bs-primary, #667eea);
    --secondary-color: var(--bs-secondary, #764ba2);
    --success-color: var(--bs-success, #28a745);
    --info-color: var(--bs-info, #17a2b8);
    --warning-color: var(--bs-warning, #ffc107);
    --danger-color: var(--bs-danger, #dc3545);

    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --primary-gradient-hover: linear-gradient(135deg, #7c8ff0 0%, #8d5db8 100%);

    --border-radius: 12px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --box-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --box-shadow-elevated: 0 12px 48px rgba(102, 126, 234, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Enhancements */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-primary.bg-opacity-25 {
    background-color: rgba(var(--bs-primary-rgb), 0.25) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(var(--bs-info-rgb), 0.1) !important;
}

.bg-danger.bg-opacity-10 {
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
}

/* Card Enhancements */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
}

.card:hover {
    box-shadow: var(--box-shadow-elevated);
    transform: translateY(-4px);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.4);
    background: var(--primary-gradient-hover) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

.alert-primary {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border: none;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Badge Enhancements */
.badge {
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Avatar Styles */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
}

.avatar-xl {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Gradient Background */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

/* Stats Card */
.stats-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08), transparent);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.stats-card:hover {
    box-shadow: var(--box-shadow-elevated);
    transform: translateY(-5px) scale(1.02);
}

.stats-card:hover::after {
    transform: translate(-10%, 10%) scale(1.3);
}

.stats-card.primary {
    border-left-color: var(--primary-color);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

.stats-card.info {
    border-left-color: var(--info-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.stats-card .stats-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Action Card */
.action-card {
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    background: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.action-card .action-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.action-card:hover .action-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.action-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.action-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite 4s;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.welcome-banner-content {
    position: relative;
    z-index: 1;
}

/* Sidebar Navigation */
.sidebar-nav .list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-nav .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.sidebar-nav .list-group-item.active {
    background: var(--primary-gradient);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

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

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

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

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

.skeleton-card {
    height: 200px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    border-radius: 8px;
    box-shadow: var(--box-shadow-hover);
    border: none;
}

.toast-header {
    border-bottom: none;
    background: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out backwards;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out backwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: visible;
}

.progress-bar {
    border-radius: 10px;
    background: var(--primary-gradient);
    position: relative;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
    transition: width 0.6s ease;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-progress 2s linear infinite;
}

@keyframes shimmer-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Profile Completion */
.profile-completion {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.profile-completion h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.profile-completion .progress {
    height: 10px;
    margin-bottom: 0.5rem;
}

.profile-completion small {
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .welcome-banner {
        padding: 1.5rem;
    }

    .action-card {
        padding: 1.5rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .avatar-xl {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Navbar Dropdown Enhancement */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 0.625rem 1rem;
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

/* Recent Activity Item */
.activity-item {
    padding: 1rem;
    border-radius: 8px;
    background: white;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.activity-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateX(5px);
}

.activity-item.primary {
    border-left-color: var(--primary-color);
}

.activity-item.success {
    border-left-color: var(--success-color);
}

.activity-item .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-item .activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.activity-item .activity-time {
    font-size: 0.8rem;
    color: #6c757d;
}
