/* Estilos personalizados para Summatrack */

:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
    --menu-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --hover-transform: translateY(-2px);
}

/* Layout General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    padding-top: 76px; /* Para compensar el navbar fijo */
}

/* Remover padding y background para páginas de autenticación */
body:has(.auth-container) {
    padding-top: 0;
    background-color: transparent;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 1rem 0;
}

/* Contenedor compacto */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Navigation Styles */
.modern-navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--menu-shadow);
    transition: var(--transition);
}

.modern-navbar.scrolled {
    background: rgba(13, 110, 253, 0.95) !important;
}

/* Brand Styles */
.modern-brand {
    text-decoration: none !important;
    transition: var(--transition);
}

.modern-brand:hover {
    transform: var(--hover-transform);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #667eea;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.brand-icon:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
    transform: rotate(360deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
    font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    line-height: 1;
}

/* Modern Toggler */
.modern-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.modern-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modern-toggler span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: var(--transition);
}

/* Modern Menu */
.modern-menu {
    gap: 0;
}

.mega-dropdown {
    position: relative;
}

.mega-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 4px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.mega-dropdown .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mega-dropdown .nav-link:hover::before {
    left: 100%;
}

.mega-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    transform: var(--hover-transform);
}

.mega-dropdown .nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mega Menu */
.mega-menu {
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: var(--menu-shadow);
    padding: 0;
    margin-top: 8px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mega-menu-content {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.menu-item i {
    width: 40px;
    height: 40px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-color);
    transition: var(--transition);
}

.menu-item:hover i {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.menu-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.menu-item small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* User Area Styles */
.user-area {
    margin-left: auto;
}

/* Modern Timer Button */
.modern-timer-btn {
    background: rgba(40, 167, 69, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-timer-btn:hover {
    background: rgba(40, 167, 69, 1);
    transform: var(--hover-transform);
    color: var(--white);
}

.modern-timer-btn i {
    font-size: 14px;
}

/* Notification Button */
.modern-notification-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.modern-notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: var(--hover-transform);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modern User Button */
.modern-user-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
}

.modern-user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: var(--hover-transform);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: var(--transition);
}

.user-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Modern User Menu */
.modern-user-menu {
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: var(--menu-shadow);
    padding: 0;
    margin-top: 8px;
    min-width: 280px;
    overflow: hidden;
}

.user-menu-header {
    background: linear-gradient(135deg, var(--primary-color), #6f42c1);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-menu-info {
    flex: 1;
}

.user-menu-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.user-menu-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin: 4px 0;
}

.user-menu-email {
    font-size: 0.8rem;
    opacity: 0.9;
}

.modern-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: none;
}

.modern-menu-item:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
}

.modern-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--secondary-color);
}

.modern-menu-item:hover i {
    color: var(--primary-color);
}

.modern-menu-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modern-menu-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.modern-menu-item small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.logout-item:hover {
    background: rgba(220, 53, 69, 0.08);
    color: var(--danger-color);
}

.logout-item:hover i {
    color: var(--danger-color);
}

/* Notification Dropdown Styles */
.notification-btn {
    position: relative;
    display: inline-block;
}

.modern-navbar .notification-btn {
    overflow: visible;
}

/* Override Bootstrap dropdown styles for notifications */
.notification-dropdown:not(.dropdown-menu) {
    position: fixed !important;
    display: block !important;
}

.modern-navbar .container-fluid {
    overflow: visible;
}

.navbar-collapse {
    overflow: visible;
}

.user-area {
    overflow: visible;
    position: relative;
}

.notification-dropdown {
    position: fixed;
    top: 76px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0;
    background: white;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.modern-notification-menu {
    width: 350px;
    max-height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: var(--menu-shadow);
    padding: 0;
    margin-top: 0.5rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px 12px 0 0;
}

.notification-header h6 {
    color: white;
    font-weight: 600;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.notification-unread {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    min-width: 24px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.notification-message {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.notification-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.notification-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-mark-read, .btn-delete {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.btn-mark-read {
    color: var(--success-color);
}

.btn-mark-read:hover {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.btn-delete {
    color: var(--danger-color);
}

.btn-delete:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.btn-mark-all-read {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-all-read:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

.notification-empty {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.notification-footer {
    padding: 0.75rem;
    border-top: 1px solid #e9ecef;
    background-color: var(--light-color);
    border-radius: 0 0 12px 12px;
}

/* Notification Type Styles */
.notification-success {
    border-left-color: var(--success-color);
}

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

.notification-error {
    border-left-color: var(--danger-color);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-area {
        gap: 8px;
    }
    
    .modern-timer-btn span {
        display: none;
    }
    
    .modern-user-menu {
        min-width: 260px;
    }
    
    .modern-notification-menu {
        width: 300px;
        right: 0;
        left: auto;
    }
}

/* Layout tipo cubos */
.cube-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cube-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.cube-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cube-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.cube-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cube-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.cube-content {
    padding: 0;
}

/* Colores para iconos */
.cube-icon.primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.cube-icon.success { background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%); }
.cube-icon.warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.cube-icon.info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.cube-icon.danger { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Footer Styles */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff20, transparent);
}

.footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 24px;
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer .social-links a:hover i {
    color: #ffffff !important;
}

.footer ul li a {
    transition: all 0.3s ease;
    padding: 4px 0;
    display: block;
}

.footer ul li a:hover {
    color: #ffffff !important;
    padding-left: 8px;
}

.footer ul li a:hover i {
    color: #0dcaf0;
}

.footer .contact-info p {
    transition: all 0.3s ease;
}

.footer .contact-info p:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

.footer .contact-info p:hover i {
    color: #0dcaf0;
}

/* Navbar personalizado */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cards - Diseño compacto */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Floating Timer */
.floating-timer {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1040;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    will-change: transform;
}

.floating-timer:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

.floating-timer.dragging {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
    transition: none;
}

.floating-timer.minimized {
    width: 200px;
}

.floating-timer.minimized .timer-header {
    border-radius: var(--border-radius);
}

.floating-timer.minimized .timer-body {
    display: none;
}

.timer-header {
    background-color: var(--primary-color);
    color: white;
    cursor: move;
    user-select: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.timer-header-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timer-header-controls .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timer-header-controls .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.timer-body {
    padding: 1rem;
}

.timer-display {
    text-align: center;
    margin-bottom: 1rem;
}

.timer-display span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.timer-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Dashboard Stats - Diseño compacto */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.stat-icon.primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-icon.success { background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%); }
.stat-icon.warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-icon.info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

/* Tables */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.5rem 1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e6a700);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Login/Register Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-body {
    padding: 2rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-timer {
        width: 280px;
        right: 10px;
        top: 80px;
    }
    
    .timer-display span {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .auth-card {
        margin: 1rem;
    }
    
    .auth-header, .auth-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .floating-timer {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }
    
    .timer-buttons {
        flex-direction: column;
    }
    
    .timer-buttons .btn {
        margin-bottom: 0.5rem;
    }
}

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

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

/* Status badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-not-started {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-in-progress {
    background-color: #cff4fc;
    color: #055160;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-pending {
    background-color: #fff3cd;
    color: #664d03;
}

.status-paid {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-overdue {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.border-radius {
    border-radius: var(--border-radius) !important;
}