h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Loading Animation - Progress Bar */
@keyframes loading-bar {
    0% {
        width: 0%;
        left: 0%;
    }
    50% {
        width: 70%;
        left: 15%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

.animate-loading-bar {
    animation: loading-bar 1.5s ease-in-out infinite;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    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: shimmer 1.5s infinite;
}

/* Page transition fade */
.page-loading-enter {
    opacity: 0;
}

.page-loading-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.page-loading-exit {
    opacity: 1;
}

.page-loading-exit-active {
    opacity: 0;
    transition: opacity 300ms ease-out;
}

/* ============================================
   Admin Dashboard - Modern Styles
   ============================================ */

/* Dashboard Container */
.admin-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

/* Dashboard Header - Compact Corporate Style */
/* Welcome Card - Enhanced Style */
.welcome-card {
    --card-accent: #6366f1;
    --card-accent-light: #a5b4fc;
    --card-glow: rgba(99, 102, 241, 0.15);
    --card-shadow: rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px -8px rgba(99, 102, 241, 0.25), 0 4px 16px -4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a5b4fc, #6366f1);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 1;
}

.welcome-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    opacity: 0.8;
    transition: all 0.5s ease;
    pointer-events: none;
}

.welcome-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 48px -12px rgba(99, 102, 241, 0.2), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
    border-color: #6366f1;
}

.welcome-card:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.welcome-card-header {
    display: none;
}

.welcome-card-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}

.welcome-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e0e7ff 0%, #a5b4fc 100%);
    color: #4338ca;
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.welcome-card:hover .welcome-card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.4);
}

.welcome-card-icon svg {
    width: 28px;
    height: 28px;
    transition: all 0.4s ease;
}

.welcome-card:hover .welcome-card-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

.welcome-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.welcome-card-text {
    flex: 1;
}

.welcome-card-greeting {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0 0 0.25rem 0;
}

.welcome-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.welcome-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.welcome-card-badges {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.welcome-badge.active {
    color: #059669;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.welcome-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.welcome-badge.date {
    color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(165, 180, 252, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.welcome-badge.date svg {
    width: 14px;
    height: 14px;
}

.welcome-card:hover .welcome-badge {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .welcome-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .welcome-card-greeting {
        font-size: 1.5rem;
    }

    .welcome-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .welcome-card-right {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .welcome-card-badges {
        flex-wrap: wrap;
    }
}

.dashboard-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(13, 148, 136, 0.3) 100%);
}

.dashboard-header-content {
    position: relative;
    z-index: 1;
}

.dashboard-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
}

.dashboard-header p {
    opacity: 0.7;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.dashboard-header-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.dashboard-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.dashboard-badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Stats Cards - Corporate Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px -8px var(--card-shadow, rgba(0, 0, 0, 0.15)), 0 4px 16px -4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

/* Decorative gradient accent bar */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent), var(--card-accent-light), var(--card-accent));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 1;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Large decorative glow orb */
.stat-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--card-glow) 0%, transparent 60%);
    opacity: 0.8;
    transition: all 0.5s ease;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px -12px var(--card-shadow), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
    border-color: var(--card-accent);
}

/* Blue Card - Pastel Sky Blue */
.stat-card.blue {
    --card-accent: #60a5fa;
    --card-accent-light: #93c5fd;
    --card-glow: rgba(96, 165, 250, 0.15);
    --card-shadow: rgba(59, 130, 246, 0.25);
    --card-border-hover: rgba(96, 165, 250, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* Teal Card - Pastel Mint */
.stat-card.teal {
    --card-accent: #2dd4bf;
    --card-accent-light: #5eead4;
    --card-glow: rgba(45, 212, 191, 0.15);
    --card-shadow: rgba(20, 184, 166, 0.25);
    --card-border-hover: rgba(45, 212, 191, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

/* Yellow Card - Pastel Amber */
.stat-card.yellow {
    --card-accent: #fbbf24;
    --card-accent-light: #fcd34d;
    --card-glow: rgba(251, 191, 36, 0.15);
    --card-shadow: rgba(245, 158, 11, 0.25);
    --card-border-hover: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

/* Green Card - Pastel Emerald */
.stat-card.green {
    --card-accent: #34d399;
    --card-accent-light: #6ee7b7;
    --card-glow: rgba(52, 211, 153, 0.15);
    --card-shadow: rgba(16, 185, 129, 0.25);
    --card-border-hover: rgba(52, 211, 153, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: auto;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 12px 28px -4px var(--card-shadow);
}

.stat-card.blue .stat-card-icon {
    background: linear-gradient(145deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.35);
}

.stat-card.teal .stat-card-icon {
    background: linear-gradient(145deg, #ccfbf1 0%, #5eead4 100%);
    color: #0f766e;
    box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.35);
}

.stat-card.yellow .stat-card-icon {
    background: linear-gradient(145deg, #fef3c7 0%, #fcd34d 100%);
    color: #b45309;
    box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.35);
}

.stat-card.green .stat-card-icon {
    background: linear-gradient(145deg, #d1fae5 0%, #6ee7b7 100%);
    color: #047857;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35);
}

.stat-card-icon svg {
    width: 26px;
    height: 26px;
    transition: all 0.4s ease;
    stroke-width: 1.75;
}

.stat-card:hover .stat-card-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.08); }
}

.stat-card-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}

.stat-card-content {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--card-accent) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.stat-card:hover .stat-card-value {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.stat-card-trend.up {
    color: #059669;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-card:hover .stat-card-trend.up {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(52, 211, 153, 0.15) 100%);
    transform: translateY(-2px);
}

.stat-card-trend.up svg {
    color: #059669;
    width: 14px;
    height: 14px;
    animation: trendBounce 1.5s ease-in-out infinite;
}

@keyframes trendBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-5deg); }
}

.stat-card-trend.neutral {
    color: #64748b;
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.12) 0%, rgba(148, 163, 184, 0.08) 100%);
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.stat-card:hover .stat-card-trend.neutral {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.18) 0%, rgba(148, 163, 184, 0.12) 100%);
    transform: translateY(-2px);
}

.stat-card-trend.neutral svg {
    color: #64748b;
    width: 14px;
    height: 14px;
}

/* Decorative floating particles effect */
.stat-card-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Responsive adjustments for stat cards */
@media (max-width: 768px) {
    .stat-card {
        min-height: 120px;
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 2rem;
    }

    .stat-card-icon {
        width: 44px;
        height: 44px;
    }

    .stat-card-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Dashboard Panels - Corporate Style */
.dashboard-panel {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--panel-accent, #0d9488), var(--panel-accent-light, #2dd4bf));
    opacity: 1;
}

.dashboard-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.dashboard-panel:first-child {
    --panel-accent: #f59e0b;
    --panel-accent-light: #fbbf24;
}

.dashboard-panel:last-child {
    --panel-accent: #6366f1;
    --panel-accent-light: #a5b4fc;
}

.dashboard-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.dashboard-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-panel-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--panel-accent, #0d9488), var(--panel-accent-light, #2dd4bf));
    border-radius: 4px;
}

.dashboard-panel-link {
    font-size: 0.8rem;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.dashboard-panel-link:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.dashboard-panel-link svg {
    transition: transform 0.3s ease;
}

.dashboard-panel-link:hover svg {
    transform: translateX(2px);
}

/* Ticket Items - Enhanced Style */
.ticket-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ticket-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
    opacity: 0.6;
}

.ticket-item:hover {
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
    padding-left: 1.75rem;
}

.ticket-item:hover::before {
    height: 70%;
    opacity: 1;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item svg {
    transition: all 0.3s ease;
    opacity: 0.4;
}

.ticket-item:hover svg {
    opacity: 1;
    transform: translateX(4px);
    color: #f59e0b;
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.ticket-status.open {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.ticket-status.in-progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.ticket-status.resolved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.ticket-status.closed {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

/* Quick Action Cards - Enhanced Style */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px -6px var(--action-shadow, rgba(0, 0, 0, 0.1)), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

.quick-action-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--action-glow, rgba(99, 102, 241, 0.1)) 0%, transparent 70%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px -8px var(--action-shadow, rgba(99, 102, 241, 0.25));
    border-color: var(--action-border, #6366f1);
}

.quick-action-card:hover::after {
    opacity: 1;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-action-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.quick-action-card:hover .quick-action-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

.quick-action-icon.blue {
    background: linear-gradient(145deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
    box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.3);
    --action-glow: rgba(59, 130, 246, 0.15);
    --action-shadow: rgba(59, 130, 246, 0.25);
    --action-border: #60a5fa;
}
.quick-action-icon.teal {
    background: linear-gradient(145deg, #ccfbf1 0%, #5eead4 100%);
    color: #0f766e;
    box-shadow: 0 6px 16px -4px rgba(20, 184, 166, 0.3);
    --action-glow: rgba(20, 184, 166, 0.15);
    --action-shadow: rgba(20, 184, 166, 0.25);
    --action-border: #2dd4bf;
}
.quick-action-icon.yellow {
    background: linear-gradient(145deg, #fef3c7 0%, #fcd34d 100%);
    color: #b45309;
    box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.3);
    --action-glow: rgba(245, 158, 11, 0.15);
    --action-shadow: rgba(245, 158, 11, 0.25);
    --action-border: #fbbf24;
}
.quick-action-icon.gray {
    background: linear-gradient(145deg, #f1f5f9 0%, #cbd5e1 100%);
    color: #475569;
    box-shadow: 0 6px 16px -4px rgba(100, 116, 139, 0.3);
    --action-glow: rgba(100, 116, 139, 0.15);
    --action-shadow: rgba(100, 116, 139, 0.25);
    --action-border: #94a3b8;
}

.quick-action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

.quick-action-card:hover .quick-action-label {
    color: #0f172a;
}

/* Number Animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-count {
    animation: count-up 0.6s ease-out forwards;
}

/* Empty State - Enhanced Style */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: emptyPulse 3s ease-in-out infinite;
}

@keyframes emptyPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.empty-state-icon svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

.empty-state-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header-badges {
        flex-wrap: wrap;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Admin Tickets Page - Corporate Style
   ============================================ */

/* Page Header */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.admin-page-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
}

/* Filter Bar */
.admin-filter-bar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.admin-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-select:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

/* Status Tabs */
.admin-status-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.admin-status-tab {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-status-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-status-tab.active {
    background: #0369a1;
    border-color: #0369a1;
    color: white;
}

.admin-status-tab.active-open { background: #0369a1; border-color: #0369a1; color: white; }
.admin-status-tab.active-inprogress { background: #d97706; border-color: #d97706; color: white; }
.admin-status-tab.active-waiting { background: #ea580c; border-color: #ea580c; color: white; }
.admin-status-tab.active-resolved { background: #059669; border-color: #059669; color: white; }
.admin-status-tab.active-closed { background: #64748b; border-color: #64748b; color: white; }

/* Data Table */
.admin-table-container {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.1), 0 4px 16px -4px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.admin-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-table tbody tr td:first-child {
    position: relative;
}

.admin-table tbody tr td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #a5b4fc);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
}

.admin-table tbody tr:hover td:first-child::before {
    opacity: 1;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #334155;
}

.admin-table-ticket-number {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: #64748b;
}

.admin-table-ticket-subject {
    font-weight: 500;
    color: #0f172a;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-link {
    color: #0369a1;
    font-weight: 500;
    font-size: 0.8rem;
}

.admin-table-link:hover {
    color: #0d9488;
}

/* Status Badges */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.admin-badge-open {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}
.admin-badge-inprogress {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}
.admin-badge-waiting {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}
.admin-badge-resolved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}
.admin-badge-closed {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

.admin-badge-low {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}
.admin-badge-medium {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}
.admin-badge-high {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}
.admin-badge-critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* Pagination */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

.admin-pagination-buttons {
    display: flex;
    gap: 0.5rem;
}

.admin-pagination-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-pagination-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ticket Detail */
.admin-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.15s ease;
}

.admin-detail-back:hover {
    color: #0369a1;
}

.admin-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.15), 0 6px 20px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-ticket-number {
    font-family: ui-monospace, monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-ticket-subject {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.5rem;
}

/* Info Grid */
.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.admin-info-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.admin-info-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

/* Form Controls */
.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

.admin-form-select,
.admin-form-input,
.admin-form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.admin-form-select:focus,
.admin-form-input:focus,
.admin-form-textarea:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.admin-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.admin-btn-primary {
    background: #0369a1;
    color: white;
}

.admin-btn-primary:hover:not(:disabled) {
    background: #075985;
}

.admin-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-btn-secondary {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.admin-btn-secondary:hover {
    background: #f8fafc;
}

/* Comments */
.admin-comments-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
}

.admin-comment {
    --comment-accent: #64748b;
    --comment-shadow: rgba(100, 116, 139, 0.1);
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px -4px var(--comment-shadow), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Accent left border */
.admin-comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--comment-accent), transparent);
    opacity: 0.6;
}

.admin-comment:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 24px -6px var(--comment-shadow), 0 4px 12px -4px rgba(0, 0, 0, 0.06);
}

.admin-comment:last-child {
    margin-bottom: 0;
}

.admin-comment-agent {
    --comment-accent: #0369a1;
    --comment-shadow: rgba(3, 105, 161, 0.15);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.admin-comment-internal {
    --comment-accent: #eab308;
    --comment-shadow: rgba(234, 179, 8, 0.15);
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}

.admin-comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.admin-comment-avatar-agent {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(3, 105, 161, 0.4);
}

.admin-comment-avatar-customer {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    box-shadow: 0 4px 12px -2px rgba(100, 116, 139, 0.2);
}

.admin-comment-meta {
    flex: 1;
}

.admin-comment-author {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.admin-comment-badges {
    display: inline-flex;
    gap: 0.375rem;
    margin-left: 0.5rem;
}

.admin-comment-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-comment-badge-agent {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    box-shadow: 0 2px 6px -1px rgba(3, 105, 161, 0.3);
}

.admin-comment-badge-internal {
    background: linear-gradient(135deg, #fef08a, #fde047);
    color: #854d0e;
    box-shadow: 0 2px 6px -1px rgba(234, 179, 8, 0.3);
}

.admin-comment-time {
    font-size: 0.7rem;
    color: #94a3b8;
}

.admin-comment-content {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ============================================
   Ticket Conversation Timeline
   ============================================ */
.ticket-timeline {
    position: relative;
    padding: 1.5rem;
}

/* Vertical timeline line */
.ticket-timeline::before {
    content: '';
    position: absolute;
    left: 42px;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline node (avatar container) */
.timeline-node {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-avatar-customer {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
}

.timeline-avatar-agent {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: white;
}

.timeline-item:hover .timeline-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.2);
}

/* Timeline content bubble */
.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-bubble {
    position: relative;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Speech bubble pointer */
.timeline-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
}

.timeline-item:hover .timeline-bubble {
    transform: translateX(4px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.12);
}

/* Agent bubble style */
.timeline-item-agent .timeline-bubble {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(3, 105, 161, 0.1);
}

.timeline-item-agent .timeline-bubble::before {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(3, 105, 161, 0.1);
}

/* Internal note bubble style */
.timeline-item-internal .timeline-bubble {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: rgba(234, 179, 8, 0.15);
}

.timeline-item-internal .timeline-bubble::before {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: rgba(234, 179, 8, 0.15);
}

.timeline-avatar-internal {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: white;
}

/* Timeline header */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.timeline-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-author-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}

.timeline-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline-badge-agent {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    box-shadow: 0 2px 6px -1px rgba(3, 105, 161, 0.3);
}

.timeline-badge-internal {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: white;
    box-shadow: 0 2px 6px -1px rgba(234, 179, 8, 0.3);
}

.timeline-time {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.timeline-time svg {
    width: 14px;
    height: 14px;
}

/* Timeline message content */
.timeline-message {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.65;
    white-space: pre-wrap;
}

/* Timeline start marker */
.timeline-start {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 1.5rem;
    position: relative;
}

.timeline-start-badge {
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .ticket-timeline::before {
        left: 28px;
    }

    .timeline-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .timeline-bubble {
        padding: 0.875rem 1rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Empty State */
.admin-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.admin-empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #cbd5e1;
}

/* Checkbox */
.admin-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.admin-checkbox-label {
    font-size: 0.8rem;
    color: #475569;
}

/* Tickets Overview Cards */
.tickets-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .tickets-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tickets-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tickets-overview-grid {
        grid-template-columns: 1fr;
    }
}

.tickets-overview-card {
    --card-accent: #60a5fa;
    --card-accent-light: #93c5fd;
    --card-glow: rgba(96, 165, 250, 0.15);
    --card-shadow: rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px -8px var(--card-shadow), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

.tickets-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), var(--card-accent-light));
    opacity: 1;
}

.tickets-overview-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--card-glow) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.tickets-overview-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 32px -8px var(--card-shadow);
    border-color: var(--card-accent);
}

.tickets-overview-card:hover::after {
    opacity: 1;
}

.tickets-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.tickets-overview-card:hover .tickets-overview-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tickets-overview-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    stroke-width: 1.75;
}

.tickets-overview-card:hover .tickets-overview-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

.tickets-overview-icon.blue {
    background: linear-gradient(145deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
    box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.3);
    --card-accent: #60a5fa;
    --card-accent-light: #93c5fd;
    --card-glow: rgba(96, 165, 250, 0.15);
    --card-shadow: rgba(59, 130, 246, 0.25);
}

.tickets-overview-icon.sky {
    background: linear-gradient(145deg, #e0f2fe 0%, #7dd3fc 100%);
    color: #0369a1;
    box-shadow: 0 6px 16px -4px rgba(14, 165, 233, 0.3);
    --card-accent: #38bdf8;
    --card-accent-light: #7dd3fc;
    --card-glow: rgba(56, 189, 248, 0.15);
    --card-shadow: rgba(14, 165, 233, 0.25);
}

.tickets-overview-icon.amber {
    background: linear-gradient(145deg, #fef3c7 0%, #fcd34d 100%);
    color: #b45309;
    box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.3);
    --card-accent: #fbbf24;
    --card-accent-light: #fcd34d;
    --card-glow: rgba(251, 191, 36, 0.15);
    --card-shadow: rgba(245, 158, 11, 0.25);
}

.tickets-overview-icon.orange {
    background: linear-gradient(145deg, #ffedd5 0%, #fdba74 100%);
    color: #c2410c;
    box-shadow: 0 6px 16px -4px rgba(234, 88, 12, 0.3);
    --card-accent: #fb923c;
    --card-accent-light: #fdba74;
    --card-glow: rgba(251, 146, 60, 0.15);
    --card-shadow: rgba(234, 88, 12, 0.25);
}

.tickets-overview-icon.green {
    background: linear-gradient(145deg, #d1fae5 0%, #6ee7b7 100%);
    color: #047857;
    box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.3);
    --card-accent: #34d399;
    --card-accent-light: #6ee7b7;
    --card-glow: rgba(52, 211, 153, 0.15);
    --card-shadow: rgba(16, 185, 129, 0.25);
}

.tickets-overview-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.tickets-overview-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--card-accent) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.tickets-overview-card:hover .tickets-overview-value {
    transform: scale(1.05);
}

.tickets-overview-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.125rem;
}

.tickets-overview-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 0 4px 0 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.tickets-overview-card:hover .tickets-overview-bar {
    height: 5px;
}

.tickets-overview-bar.blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

.tickets-overview-bar.amber {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d);
}

.tickets-overview-bar.orange {
    background: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
}

.tickets-overview-bar.green {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

/* ============================================
   Support Portal Styles
   ============================================ */

/* Support Header */
.support-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
}

.support-header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.support-header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-logo img {
    height: 40px;
}

.support-header-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

.support-header-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.support-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.support-user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0369a1, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px -2px rgba(3, 105, 161, 0.4);
    transition: all 0.3s ease;
}

.support-user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px -4px rgba(3, 105, 161, 0.5);
}

.support-user-details {
    display: flex;
    flex-direction: column;
}

.support-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.support-user-company {
    font-size: 0.75rem;
    color: #64748b;
}

.support-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.support-logout-btn:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 12px -2px rgba(220, 38, 38, 0.2);
}

.support-back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.support-back-link:hover {
    color: #0369a1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px -2px rgba(3, 105, 161, 0.15);
}

.support-back-link:hover svg {
    transform: translateX(-3px);
}

.support-back-link svg {
    transition: transform 0.3s ease;
}

/* Support Main Content */
.support-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.support-main-narrow {
    max-width: 900px;
}

/* Support Tickets List */
.support-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-ticket-item {
    --ticket-accent: #60a5fa;
    --ticket-shadow: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px -4px var(--ticket-shadow), 0 2px 8px -2px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Accent bar */
.support-ticket-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--ticket-accent), transparent);
    opacity: 0.6;
    border-radius: 14px 0 0 14px;
    transition: opacity 0.3s ease;
}

.support-ticket-item:hover::before {
    opacity: 1;
}

/* Decorative glow orb */
.support-ticket-item::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--ticket-accent) 0%, transparent 70%);
    opacity: 0.08;
    transition: all 0.4s ease;
    pointer-events: none;
}

.support-ticket-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px var(--ticket-shadow), 0 6px 16px -4px rgba(0, 0, 0, 0.1);
}

.support-ticket-item:hover::after {
    opacity: 0.15;
    transform: scale(1.2);
}

.support-ticket-item:last-child {
    margin-bottom: 0;
}

.support-ticket-content {
    flex: 1;
    min-width: 0;
}

.support-ticket-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.375rem;
}

.support-ticket-subject {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.support-ticket-item:hover .support-ticket-subject {
    color: #0369a1;
}

.support-ticket-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.support-ticket-arrow {
    width: 24px;
    height: 24px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.support-ticket-item:hover .support-ticket-arrow {
    color: #0369a1;
    transform: translateX(4px);
}

/* Support Ticket Detail */
.support-ticket-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.support-author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(100, 116, 139, 0.25);
    transition: all 0.3s ease;
}

.support-author-info {
    display: flex;
    flex-direction: column;
}

.support-author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.support-author-date {
    font-size: 0.8rem;
    color: #64748b;
}

.support-ticket-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    white-space: pre-wrap;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
}

.support-ticket-closed-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    color: #64748b;
    text-align: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px -4px rgba(100, 116, 139, 0.15);
    position: relative;
    overflow: hidden;
}

.support-ticket-closed-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #94a3b8, #64748b);
    opacity: 0.5;
}

.support-ticket-closed-notice svg {
    width: 48px;
    height: 48px;
    color: #94a3b8;
    animation: pulse 2s ease-in-out infinite;
}

.support-ticket-closed-notice p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Admin Modal Styles */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.admin-modal {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.admin-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.admin-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 1rem 1rem;
}

/* Admin Form Group */
.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .support-header-content {
        padding: 0 1rem;
    }

    .support-user-details {
        display: none;
    }

    .support-main {
        padding: 1.5rem 1rem;
    }

    .support-ticket-item {
        padding: 0.875rem 1rem;
    }

    .admin-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* User Avatar */
.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.admin-table tr:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 16px -2px rgba(99, 102, 241, 0.5);
}

/* Admin Checkbox */
.admin-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    color: #0369a1;
    cursor: pointer;
}

.admin-checkbox:checked {
    background-color: #0369a1;
    border-color: #0369a1;
}

.admin-checkbox-label {
    font-size: 0.875rem;
    color: #475569;
}

/* Role Card Styles */
.role-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(124, 58, 237, 0.2);
    border-color: #a78bfa !important;
}

.role-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #f3e8ff 0%, #d8b4fe 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(124, 58, 237, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card:hover .role-icon {
    transform: scale(1.1) rotate(-5deg);
}

.role-icon svg {
    width: 26px;
    height: 26px;
    color: #6d28d9;
    stroke-width: 1.75;
    transition: all 0.3s ease;
}

.role-card:hover .role-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

.role-action-btn {
    padding: 0.5rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.role-action-btn:hover {
    color: #0369a1;
    background: #f1f5f9;
}

.role-action-btn-danger:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Permissions List */
.permissions-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.permission-label {
    font-size: 0.875rem;
    color: #475569;
}

/* Admin Select */
.admin-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-select:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

/* Settings Page Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover .settings-icon {
    transform: scale(1.1) rotate(-5deg);
}

.settings-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
    transition: all 0.3s ease;
}

.admin-card:hover .settings-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

.settings-icon.blue {
    background: linear-gradient(145deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
    box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.3);
}

.settings-icon.green {
    background: linear-gradient(145deg, #dcfce7 0%, #86efac 100%);
    color: #15803d;
    box-shadow: 0 6px 16px -4px rgba(22, 163, 74, 0.3);
}

.settings-icon.yellow {
    background: linear-gradient(145deg, #fef3c7 0%, #fcd34d 100%);
    color: #b45309;
    box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.3);
}

.settings-icon.purple {
    background: linear-gradient(145deg, #f3e8ff 0%, #d8b4fe 100%);
    color: #6d28d9;
    box-shadow: 0 6px 16px -4px rgba(124, 58, 237, 0.3);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Toggle Switch */
.settings-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.settings-toggle-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.settings-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.settings-toggle-description {
    font-size: 0.75rem;
    color: #64748b;
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.settings-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-toggle input:checked + .settings-toggle-slider {
    background-color: #0369a1;
}

.settings-toggle input:checked + .settings-toggle-slider:before {
    transform: translateX(20px);
}

/* Settings Actions */
.settings-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.settings-save-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Home & Product Pages - Modern Styles
   ============================================ */

/* Product Card Color Variants */
.card-hover.product-blue {
    --card-accent: #0077BE;
    --card-accent-light: #60a5fa;
    --card-glow: rgba(0, 119, 190, 0.15);
    --card-shadow: rgba(0, 119, 190, 0.25);
}

.card-hover.product-green {
    --card-accent: #22c55e;
    --card-accent-light: #86efac;
    --card-glow: rgba(34, 197, 94, 0.15);
    --card-shadow: rgba(34, 197, 94, 0.25);
}

.card-hover.product-purple {
    --card-accent: #8b5cf6;
    --card-accent-light: #c4b5fd;
    --card-glow: rgba(139, 92, 246, 0.15);
    --card-shadow: rgba(139, 92, 246, 0.25);
}

.card-hover.product-orange {
    --card-accent: #f97316;
    --card-accent-light: #fdba74;
    --card-glow: rgba(249, 115, 22, 0.15);
    --card-shadow: rgba(249, 115, 22, 0.25);
}

.card-hover.product-red {
    --card-accent: #ef4444;
    --card-accent-light: #fca5a5;
    --card-glow: rgba(239, 68, 68, 0.15);
    --card-shadow: rgba(239, 68, 68, 0.25);
}

/* Product Card Default Shadow */
.card-hover {
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.1), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

/* Product Icon Container */
.product-icon {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
}

.card-hover:hover .product-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-hover:hover .product-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

/* Service Card Styles */
.service-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0077BE, #60a5fa);
    border-radius: 0 0 3px 3px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 119, 190, 0.2);
}

.service-card:hover::before {
    width: 100px;
    opacity: 1;
}

/* Service Icon */
.service-icon {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, #0077BE 0%, #005A8E 100%);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon::after,
.group:hover .service-icon::after {
    opacity: 1;
}

/* Stats Section */
.stats-card {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stats-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Box */
.feature-box {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--feature-accent, #0077BE), var(--feature-accent-light, #60a5fa));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--feature-glow, rgba(0, 119, 190, 0.1)) 0%, transparent 70%);
    opacity: 0.5;
    transition: all 0.4s ease;
    pointer-events: none;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(0, 119, 190, 0.15);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

/* Feature Icon */
.feature-icon {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-box:hover .feature-icon svg {
    animation: iconFloat 1s ease-in-out infinite;
}

/* CTA Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #0077BE, #60a5fa, #0077BE);
    border-radius: inherit;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 0.6;
}

/* Section Title Underline */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0077BE, #60a5fa);
    border-radius: 2px;
}

/* Contact Info Card */
.contact-info-card {
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(0,119,190,0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Contact Form Card */
.contact-form-card {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.1);
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077BE, #60a5fa);
    border-radius: 1rem 1rem 0 0;
}

/* Input Focus Glow */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.15), 0 4px 12px -2px rgba(0, 119, 190, 0.1);
}

/* Badge/Tag Styles */
.tech-badge {
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: rgba(0, 119, 190, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 119, 190, 0.15);
}

/* About Section Values Grid */
.value-card {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #0077BE, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px -6px rgba(0, 119, 190, 0.15);
}

.value-card:hover::before {
    opacity: 1;
}

/* Product Detail Page Styles */
.product-hero {
    position: relative;
    overflow: hidden;
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.product-feature-card {
    --feature-accent: #0077BE;
    --feature-accent-light: #60a5fa;
    --feature-glow: rgba(0, 119, 190, 0.1);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--feature-accent), var(--feature-accent-light));
    opacity: 0.6;
}

.product-feature-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--feature-glow) 0%, transparent 70%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.product-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -10px rgba(0, 119, 190, 0.2);
}

.product-feature-card:hover::before {
    opacity: 1;
}

.product-feature-card:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

/* Benefit Card */
.benefit-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0077BE, #60a5fa);
    opacity: 0.5;
    border-radius: 16px 16px 0 0;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(0, 119, 190, 0.15);
}

.benefit-card:hover::before {
    opacity: 1;
}

/* Use Case / Industry Card */
.usecase-card {
    --usecase-accent: #0077BE;
    --usecase-glow: rgba(0, 119, 190, 0.15);
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px -4px var(--usecase-glow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--usecase-accent), var(--usecase-accent));
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.usecase-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--usecase-glow) 0%, transparent 70%);
    opacity: 0.5;
    transition: all 0.4s ease;
    pointer-events: none;
}

.usecase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px var(--usecase-glow), 0 8px 16px -8px rgba(0,0,0,0.08);
    border-color: var(--usecase-accent);
    border-color: rgba(0, 0, 0, 0.08);
}

.usecase-card:hover::before {
    opacity: 1;
}

.usecase-card:hover::after {
    opacity: 0.8;
    transform: scale(1.3);
}

/* Compatibility Platform Badge */
.platform-badge {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 119, 190, 0.15);
    border-color: rgba(0, 119, 190, 0.2);
}