/* ==========================================
   IT CONTROL CENTER - PREMIUM COMPONENTS
   ========================================== */

/* ==========================================
   STATS CARDS - Premium Design
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    position: relative;
    padding: 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Gradient overlay */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
}

/* Accent bar */
.stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: var(--accent-color, var(--primary));
    box-shadow: 0 0 20px var(--accent-color, var(--primary));
    transition: all var(--transition-normal);
}

.stat-card.gray {
    --accent-color: var(--text-muted);
}

.stat-card.green {
    --accent-color: var(--success);
}

.stat-card.orange {
    --accent-color: var(--warning);
}

.stat-card.red {
    --accent-color: var(--danger);
}

.stat-card.blue {
    --accent-color: var(--info);
}

.stat-card.purple {
    --accent-color: var(--accent);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent-color, var(--primary));
    box-shadow: var(--shadow-card-hover),
        0 8px 30px rgba(var(--accent-color, var(--primary)), 0.15);
}

.stat-card:hover::after {
    height: 85%;
    top: 7.5%;
    box-shadow: 0 0 30px var(--accent-color);
}

.stat-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    transition: all var(--transition-fast);
}

/* Colored values */
.stat-card.green .stat-value {
    color: var(--success);
}

.stat-card.orange .stat-value {
    color: var(--warning);
}

.stat-card.red .stat-value {
    color: var(--danger);
}

.stat-card.blue .stat-value {
    color: var(--info);
}

.stat-card.purple .stat-value {
    color: var(--accent);
}

.stat-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.stat-icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color, var(--primary));
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover .stat-icon-box {
    background: var(--accent-color, var(--primary));
    color: white;
    transform: rotate(8deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card:hover .stat-icon-box::before {
    opacity: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
}

.dashboard-grid .card {
    height: 100%;
}

@media (max-width: 1500px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   AI INSIGHTS - Premium
   ========================================== */
.ai-insights-card .card-header {
    background: linear-gradient(90deg,
            rgba(99, 102, 241, 0.08) 0%,
            rgba(139, 92, 246, 0.04) 50%,
            transparent 100%);
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    animation: aiBadgeGlow 3s ease infinite;
}

@keyframes aiBadgeGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.5);
    }
}

.ai-insight {
    display: flex;
    gap: 1rem;
    padding: 1.125rem;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    margin-bottom: 0.875rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.ai-insight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.ai-insight:last-child {
    margin-bottom: 0;
}

.ai-insight:hover {
    transform: translateX(6px);
    border-color: var(--border-hover);
}

.ai-insight:hover::before {
    width: 3px;
}

.insight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.insight-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--warning);
}

.insight-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--success);
}

.insight-icon.info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: var(--info);
}

.insight-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: var(--danger);
}

.insight-content {
    position: relative;
    z-index: 1;
}

.insight-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.insight-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================
   ACTIVITY LIST - Premium
   ========================================== */
.activity-list {
    max-height: 250px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    position: relative;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    padding-left: 0.75rem;
    background: linear-gradient(90deg, var(--bg-hover) 0%, transparent 100%);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    position: relative;
}

.activity-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--border-radius-full);
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.activity-item:hover .activity-icon::after {
    border-color: currentColor;
    opacity: 0.3;
}

.activity-icon.new {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--success);
}

.activity-icon.ticket {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: var(--primary);
}

.activity-icon.maintenance {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--warning);
}

.activity-icon.alert {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: var(--info);
}

.activity-content p {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   CHARTS - Premium
   ========================================== */
.chart-container {
    position: relative;
    height: 180px;
    margin-bottom: 0.5rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   QUICK ACTIONS - Premium
   ========================================== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.quick-action-btn i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.quick-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(99, 102, 241, 0.2);
}

.quick-action-btn:hover::before {
    opacity: 0.08;
}

.quick-action-btn:hover i {
    transform: scale(1.15);
}

.quick-action-btn:hover span {
    color: var(--text-primary);
}

/* ==========================================
   TABLES - Premium
   ========================================== */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: var(--bg-secondary);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.search-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.search-input i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input input {
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 200px;
}

.filter-select {
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    background: var(--bg-tertiary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th:first-child {
    border-radius: var(--border-radius-sm) 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 var(--border-radius-sm) 0 0;
}

.data-table td {
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
}

/* ==========================================
   STATUS BADGES - Premium
   ========================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--success);
}

.status-badge.active::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.maintenance {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--warning);
}

.status-badge.maintenance::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-badge.inactive {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: var(--danger);
}

.status-badge.inactive::before {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.status-badge.open {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: var(--info);
}

.status-badge.open::before {
    background: var(--info);
    box-shadow: 0 0 8px var(--info);
}

.status-badge.progress {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    color: var(--accent);
}

.status-badge.progress::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
}

.status-badge.resolved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--success);
}

.status-badge.resolved::before {
    background: var(--success);
    animation: none;
}

/* ==========================================
   PRIORITY BADGES - Premium
   ========================================== */
.priority-badge {
    display: inline-block;
    padding: 0.3rem 0.625rem;
    border-radius: var(--border-radius-xs);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.critical {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: criticalPulse 1.5s ease infinite;
}

@keyframes criticalPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 2px 16px rgba(239, 68, 68, 0.5);
    }
}

.priority-badge.high {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.priority-badge.medium {
    background: var(--gradient-cyan);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.priority-badge.low {
    background: linear-gradient(135deg, var(--text-muted) 0%, #78716c 100%);
    color: white;
}

/* ==========================================
   TABLE ACTIONS - Premium
   ========================================== */
.table-actions {
    display: flex;
    gap: 0.375rem;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-sm);
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.action-btn:hover {
    color: white;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn i {
    position: relative;
    z-index: 1;
}

.action-btn.danger:hover::before {
    background: var(--gradient-danger);
}

/* ==========================================
   TABLE FOOTER - Premium
   ========================================== */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.table-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

/* ==========================================
   EQUIPMENT ROW - Premium
   ========================================== */
.equipment-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.equipment-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.data-table tbody tr:hover .equipment-icon {
    background: var(--gradient-primary);
    color: white;
}

.equipment-name {
    font-weight: 600;
    color: var(--text-primary);
}

.equipment-serial {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ==========================================
   USER ROW - Premium
   ========================================== */
.user-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-row img {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   LOGIN SCREEN - Light & Professional
   ========================================== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8ecf7 30%, #f5f3ff 60%, #eef2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 85%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 85% 15%, rgba(139, 92, 246, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 700px 500px at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    animation: loginMesh 25s ease infinite;
}

.login-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
    pointer-events: none;
}

@keyframes loginMesh {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(1deg);
    }
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(99, 102, 241, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: loginCardSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

@keyframes loginCardSlide {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card.shake {
    animation: loginShake 0.4s ease-in-out;
    border-color: var(--danger) !important;
}

@keyframes loginShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-12px);
    }

    40% {
        transform: translateX(12px);
    }

    60% {
        transform: translateX(-8px);
    }

    80% {
        transform: translateX(8px);
    }
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    margin: 0 auto 1.75rem;
    box-shadow:
        0 16px 40px rgba(99, 102, 241, 0.3),
        0 6px 12px rgba(99, 102, 241, 0.15);
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.login-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.login-card h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
}

.login-card>p,
.login-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.login-form .form-group {
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--border-radius);
    color: #1e293b;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.login-form input::placeholder {
    color: #94a3b8;
}

.login-form input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.login-form .btn-primary {
    margin-top: 0.5rem;
    padding: 1.125rem;
    font-size: 1rem;
    font-weight: 700;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.login-footer a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   MODALS - Premium
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.875rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

/* ==========================================
   NOTIFICATIONS - Premium
   ========================================== */
.notification-dropdown {
    position: fixed;
    top: calc(var(--topbar-height) + 8px);
    right: 24px;
    width: 380px;
    max-height: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h4 {
    font-size: 1rem;
    font-weight: 700;
}

.mark-all-read {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mark-all-read:hover {
    color: var(--primary-dark);
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item:last-child {
    border-bottom: none;
}

/* ==========================================
   TOAST NOTIFICATIONS - Premium
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: var(--z-toast);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    max-width: 420px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before {
    background: var(--success);
}

.toast.error::before {
    background: var(--danger);
}

.toast.warning::before {
    background: var(--warning);
}

.toast.info::before {
    background: var(--info);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hide {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toast-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.toast-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==========================================
   FORM CONTROLS - Premium
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    background: var(--bg-secondary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Switch Toggle */
.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

.slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.switch input:checked+.slider {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.switch input:checked+.slider::before {
    transform: translateX(22px);
}

.switch input:focus+.slider {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}