/* admin.css
   Auto-extracted from inline <style> blocks
   Generated by css_extract.py
*/

/* ═══ Source: Areas/Admin/Views/Home/Index.cshtml ═══ */
.admin-dashboard {
        --card-bg: rgba(255, 255, 255, 0.05);
        --card-border: rgba(255, 255, 255, 0.1);
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --danger-color: #ef4444;
        --info-color: #3b82f6;
        --primary-color: #8b5cf6;
    }

    .stat-card {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-xl);
        padding: 1.25rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .stat-card:hover {
        transform: translateY(-2px);
        border-color: var(--glass-white-20);
        box-shadow: 0 8px 32px var(--glass-black-20);
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-color, var(--primary-color)), transparent);
    }

    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-2xl);
        background: rgba(139, 92, 246, 0.1);
        color: var(--primary-color);
    }

    .stat-card .stat-value {
        font-size: var(--fs-3xl);
        font-weight: 700;
        line-height: 1.2;
    }

    .stat-card .stat-label {
        font-size: var(--fs-body-sm);
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .dashboard-section {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-xl);
        overflow: hidden;
    }

    .section-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--card-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .section-header h5 {
        margin: 0;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .section-body {
        padding: 1.25rem;
    }

    .health-indicator {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.75rem;
        border-radius: var(--radius-2xl);
        font-size: var(--fs-body);
        font-weight: 500;
    }

    .health-indicator.healthy {
        background: rgba(16, 185, 129, 0.15);
        color: var(--success-color);
    }

    .health-indicator.warning {
        background: rgba(245, 158, 11, 0.15);
        color: var(--warning-color);
    }

    .health-indicator.critical {
        background: rgba(239, 68, 68, 0.15);
        color: var(--danger-color);
    }

    .health-indicator .pulse {
        width: 8px;
        height: 8px;
        border-radius: var(--radius-full);
        background: currentColor;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .mini-stat {
        text-align: center;
        padding: 1rem;
        border-radius: var(--radius-lg);
        background: var(--glass-white-3);
    }

    .mini-stat .value {
        font-size: var(--fs-2xl);
        font-weight: 700;
    }

    .mini-stat .label {
        font-size: var(--fs-sm);
        opacity: 0.6;
        text-transform: uppercase;
    }

    .activity-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--card-border);
    }

    .activity-item:last-child {
        border-bottom: none;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-body);
        flex-shrink: 0;
    }

    .activity-icon.get { background: rgba(59, 130, 246, 0.15); color: var(--info-color); }
    .activity-icon.post { background: rgba(16, 185, 129, 0.15); color: var(--success-color); }
    .activity-icon.error { background: rgba(239, 68, 68, 0.15); color: var(--danger-color); }
    .activity-icon.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning-color); }
    .activity-icon.audit { background: rgba(139, 92, 246, 0.15); color: var(--primary-color); }

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

    .activity-title {
        font-weight: 500;
        font-size: var(--fs-body);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .activity-meta {
        font-size: var(--fs-sm);
        opacity: 0.6;
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .project-card {
        background: var(--glass-white-3);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-bottom: 0.75rem;
        transition: all 0.2s ease;
    }

    .project-card:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .project-card:last-child {
        margin-bottom: 0;
    }

    .project-status {
        width: 10px;
        height: 10px;
        border-radius: var(--radius-full);
        display: inline-block;
    }

    .project-status.checking {
        background: var(--warning-color);
        animation: pulse 1s infinite;
    }

    .project-status.online {
        background: var(--success-color);
    }

    .project-status.offline {
        background: var(--danger-color);
    }

    .performance-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        font-size: var(--fs-sm);
        font-weight: 500;
    }

    .performance-badge.fast {
        background: rgba(16, 185, 129, 0.15);
        color: var(--success-color);
    }

    .performance-badge.medium {
        background: rgba(245, 158, 11, 0.15);
        color: var(--warning-color);
    }

    .performance-badge.slow {
        background: rgba(239, 68, 68, 0.15);
        color: var(--danger-color);
    }

    .controller-bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .controller-bar .name {
        width: 120px;
        font-size: var(--fs-body);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .controller-bar .bar-container {
        flex: 1;
        height: 8px;
        background: var(--glass-white-10);
        border-radius: var(--radius-xs);
        overflow: hidden;
    }

    .controller-bar .bar {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-color), var(--info-color));
        border-radius: var(--radius-xs);
        transition: width 0.5s ease;
    }

    .controller-bar .count {
        width: 60px;
        text-align: right;
        font-size: var(--fs-body);
        font-weight: 500;
    }

    .user-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--card-border);
    }

    .user-row:last-child {
        border-bottom: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--primary-color), var(--info-color));
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: var(--fs-body);
    }

    .role-badge {
        padding: 0.15rem 0.5rem;
        border-radius: var(--radius-xs);
        font-size: var(--fs-xs);
        font-weight: 500;
        text-transform: uppercase;
    }

    .role-badge.admin { background: rgba(239, 68, 68, 0.15); color: var(--danger-color); }
    .role-badge.basic { background: rgba(59, 130, 246, 0.15); color: var(--info-color); }
    .role-badge.family { background: rgba(16, 185, 129, 0.15); color: var(--success-color); }

    .chart-container {
        position: relative;
        height: 250px;
    }

    .nav-tabs-custom {
        border-bottom: 1px solid var(--card-border);
        gap: 0;
    }

    .nav-tabs-custom .nav-link {
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        padding: 0.75rem 1rem;
        color: inherit;
        opacity: 0.6;
        transition: all 0.2s ease;
    }

    .nav-tabs-custom .nav-link:hover {
        opacity: 0.8;
        border-color: transparent;
    }

    .nav-tabs-custom .nav-link.active {
        background: transparent;
        border-bottom-color: var(--primary-color);
        opacity: 1;
    }

    .quick-action-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: var(--radius-lg);
        background: var(--glass-white-3);
        border: 1px solid transparent;
        transition: all 0.2s ease;
        text-decoration: none;
        color: inherit;
    }

    .quick-action-btn:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--card-border);
        color: inherit;
    }

    .quick-action-btn i {
        font-size: var(--fs-2xl);
        opacity: 0.8;
    }

    .quick-action-btn span {
        font-size: var(--fs-body-sm);
        opacity: 0.7;
    }

    .refresh-btn {
        background: var(--glass-white-5);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-md);
        padding: 0.5rem 1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: inherit;
    }

    .refresh-btn:hover {
        background: var(--glass-white-10);
    }

    .refresh-btn.loading i {
        animation: spin 1s linear infinite;
    }

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

    .log-level-badge {
        padding: 0.15rem 0.5rem;
        border-radius: var(--radius-xs);
        font-size: var(--fs-xs);
        font-weight: 600;
        text-transform: uppercase;
    }

    .log-level-badge.error { background: rgba(239, 68, 68, 0.15); color: var(--danger-color); }
    .log-level-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning-color); }
    .log-level-badge.info { background: rgba(59, 130, 246, 0.15); color: var(--info-color); }
    .log-level-badge.debug { background: rgba(139, 92, 246, 0.15); color: var(--primary-color); }

/* ═══ Source: Areas/Admin/Views/Home/UserDetails.cshtml ═══ */
.details-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .profile-header {
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: var(--radius-xl);
        overflow: hidden;
    }

    .profile-content {
        padding: 1rem;
    }

    .profile-avatar {
        width: 6rem;
        height: 6rem;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-4xl);
        font-weight: 600;
        text-transform: uppercase;
        border: 0.25rem solid var(--bs-body-bg);
        position: relative;
    }

    .avatar-primary {
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary-text-emphasis);
    }

    .avatar-danger {
        background: var(--bs-danger-bg-subtle);
        color: var(--bs-danger-text-emphasis);
    }

    .avatar-warning {
        background: var(--bs-warning-bg-subtle);
        color: var(--bs-warning-text-emphasis);
    }

    .status-badge {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: var(--radius-full);
        border: 0.1875rem solid var(--bs-body-bg);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .status-badge.active {
        background: var(--bs-success);
    }

    .status-badge.locked {
        background: var(--bs-danger);
    }

    .status-badge.unconfirmed {
        background: var(--bs-warning);
    }

    .detail-card {
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: var(--radius-xl);
        overflow: hidden;
    }

    .detail-card-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--bs-border-color);
        background: var(--bs-secondary-bg-subtle);
    }

    .detail-card-body {
        padding: 1.25rem;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-label {
        font-size: var(--fs-body);
        color: var(--bs-secondary-color);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .detail-label .mdi {
        font-size: 1.125rem;
    }

    .detail-value {
        font-size: var(--fs-body);
        color: var(--bs-body-color);
        text-align: right;
        word-break: break-word;
        max-width: 60%;
    }

    .stat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        background: var(--bs-secondary-bg-subtle);
        border-radius: var(--radius-lg);
        padding: 1rem;
        text-align: center;
        transition: all 0.3s ease;
    }

    .stat-item:hover {
        transform: translateY(-0.125rem);
        box-shadow: 0 0.25rem 0.75rem var(--glass-black-10);
    }

    [data-bs-theme="dark"] .stat-item:hover {
        box-shadow: 0 0.25rem 0.75rem var(--glass-black-30);
    }

    .stat-number {
        font-size: var(--fs-2xl);
        font-weight: 700;
        line-height: 1;
        margin-bottom: 0.25rem;
    }

    .stat-text {
        font-size: var(--fs-sm);
        color: var(--bs-secondary-color);
        text-transform: uppercase;
    }

    .role-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.375rem 0.75rem;
        border-radius: 2rem;
        font-size: var(--fs-body-sm);
        font-weight: 500;
    }

    .preference-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.625rem;
        background: var(--bs-secondary-bg-subtle);
        border-radius: var(--radius-sm);
        font-size: var(--fs-body-sm);
    }

    .fasting-schedule {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0.5rem;
    }

    .fasting-day {
        text-align: center;
        padding: 0.5rem;
        border-radius: var(--radius-md);
        background: var(--bs-secondary-bg-subtle);
        font-size: var(--fs-sm);
        font-weight: 500;
    }

    .fasting-day.active {
        background: var(--bs-success-bg-subtle);
        color: var(--bs-success-text-emphasis);
    }

    .action-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .measurement-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.625rem 0;
        border-bottom: 1px solid var(--bs-border-color-translucent);
        font-size: var(--fs-body);
    }

    .measurement-item:last-child {
        border-bottom: none;
    }

    .goal-progress-bar {
        height: 100%;
        border-radius: var(--radius-xs);
        transition: width 0.5s ease;
    }

    @media (max-width: 768px) {
        .profile-content {
            padding: 0 1rem 1rem;
        }

        .profile-avatar {
            width: 5rem;
            height: 5rem;
            font-size: var(--fs-2xl);
        }

        .stat-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .fasting-schedule {
            gap: 0.25rem;
        }

        .fasting-day {
            padding: 0.375rem;
            font-size: 0.625rem;
        }
    }

    @media (max-width: 576px) {
        .detail-row {
            flex-direction: column;
            gap: 0.25rem;
        }

        .detail-value {
            text-align: left;
            max-width: 100%;
        }

        .action-btn-group .btn {
            flex: 1;
        }
    }

/* ═══ Source: Areas/Admin/Views/Home/Users.cshtml ═══ */
.users-header {
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: var(--radius-xl);
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        background: var(--bs-secondary-bg-subtle);
        border-radius: var(--radius-lg);
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-0.125rem);
        box-shadow: 0 0.25rem 0.75rem var(--glass-black-10);
    }

    [data-bs-theme="dark"] .stat-card:hover {
        box-shadow: 0 0.25rem 0.75rem var(--glass-black-30);
    }

    .stat-icon {
        width: 3rem;
        height: 3rem;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-xl);
        flex-shrink: 0;
    }

    .stat-value {
        font-size: var(--fs-2xl);
        font-weight: 700;
        line-height: 1;
    }

    .stat-label {
        font-size: var(--fs-sm);
        color: var(--bs-secondary-color);
        text-transform: uppercase;
        letter-spacing: 0.025rem;
    }

    .filter-card {
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: var(--radius-xl);
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .user-card {
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: var(--radius-xl);
        transition: all 0.3s ease;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .user-card:hover {
        transform: translateY(-0.25rem);
        box-shadow: 0 0.5rem 1.5rem var(--glass-black-10);
        border-color: var(--bs-primary);
    }

    [data-bs-theme="dark"] .user-card:hover {
        box-shadow: 0 0.5rem 1.5rem var(--glass-black-30);
    }

    .user-card-header {
        padding: 1.25rem;
        border-bottom: 1px solid var(--bs-border-color);
        background: var(--bs-secondary-bg-subtle);
    }

    .user-avatar {
        width: 4rem;
        height: 4rem;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-2xl);
        font-weight: 600;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    .avatar-primary {
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary-text-emphasis);
    }

    .avatar-danger {
        background: var(--bs-danger-bg-subtle);
        color: var(--bs-danger-text-emphasis);
    }

    .avatar-warning {
        background: var(--bs-warning-bg-subtle);
        color: var(--bs-warning-text-emphasis);
    }

    .avatar-success {
        background: var(--bs-success-bg-subtle);
        color: var(--bs-success-text-emphasis);
    }

    .user-card-body {
        padding: 1rem 1.25rem;
        flex: 1;
    }

    .user-info-item {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
        font-size: var(--fs-body);
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    .user-info-item:last-child {
        border-bottom: none;
    }

    .user-info-item .mdi {
        color: var(--bs-secondary-color);
        font-size: var(--fs-md);
        width: 1.25rem;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }

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

    .user-info-label {
        font-size: var(--fs-xs);
        color: var(--bs-secondary-color);
        text-transform: uppercase;
        letter-spacing: 0.025rem;
    }

    .user-info-value {
        color: var(--bs-body-color);
        word-break: break-word;
    }

    .role-badge {
        font-size: var(--fs-2xs);
        font-weight: 600;
        padding: 0.2rem 0.4rem;
        border-radius: var(--radius-xs);
        text-transform: uppercase;
        letter-spacing: 0.02rem;
    }

    .status-dot {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: var(--radius-full);
        display: inline-block;
    }

    .status-active {
        background: var(--bs-success);
        box-shadow: 0 0 0.375rem var(--bs-success);
    }

    .status-locked {
        background: var(--bs-danger);
        box-shadow: 0 0 0.375rem var(--bs-danger);
    }

    .status-unconfirmed {
        background: var(--bs-warning);
        box-shadow: 0 0 0.375rem var(--bs-warning);
    }

    .user-card-footer {
        padding: 1rem 1.25rem;
        border-top: 1px solid var(--bs-border-color);
        background: var(--bs-tertiary-bg);
    }

    .search-box {
        position: relative;
    }

    .search-box .mdi {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--bs-secondary-color);
        font-size: var(--fs-xl);
        pointer-events: none;
    }

    .search-box input {
        padding-left: 2.75rem;
    }

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

    .empty-state .mdi {
        font-size: 4rem;
        opacity: 0.4;
    }

    .sort-link.active {
        color: var(--bs-primary);
        font-weight: 600;
    }

    @media (max-width: 768px) {
        .stat-card {
            padding: 0.75rem 1rem;
        }

        .stat-icon {
            width: 2.5rem;
            height: 2.5rem;
            font-size: var(--fs-md);
        }

        .stat-value {
            font-size: var(--fs-xl);
        }

        .user-avatar {
            width: 3rem;
            height: 3rem;
            font-size: 1.125rem;
        }

        .user-card-header,
        .user-card-body,
        .user-card-footer {
            padding: 1rem;
        }
    }

    @media (max-width: 576px) {
        .users-header {
            padding: 1rem;
        }

        .filter-card {
            padding: 1rem;
        }

        .user-info-item {
            font-size: var(--fs-body-sm);
        }
    }

/* ═══ Source: Areas/Admin/Views/LocalizationAdmin/Index.cshtml ═══ */
/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-white-20);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(13, 20, 33, 0.95);
    border: 1px solid var(--glass-white-10);
}

/* Resource styling */
.resource-key {
    font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: var(--fs-body);
    font-weight: 500;
    color: #374151;
}

[data-bs-theme="dark"] .resource-key {
    color: #e5e7eb;
}

/* Entity resource styling */
.entity-resource .entity-type-badge {
    font-size: var(--fs-sm);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.entity-resource .entity-id {
    font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: var(--fs-sm);
}

.entity-resource .field-name {
    font-size: var(--fs-body);
    color: var(--bs-body-color);
}

.entity-resource .entity-value {
    font-size: var(--fs-sm);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Translation cells */
.translation-cell {
    position: relative;
    min-height: 60px;
    padding: 0.5rem;
}

.value-display {
    cursor: pointer;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.value-display:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.empty-value {
    border-style: dashed;
    border-color: #d1d5db;
}

.default-culture .value-display {
    background-color: rgba(59, 130, 246, 0.05);
}

.translation-value {
    word-break: break-word;
    line-height: 1.4;
}

.edit-input {
    resize: vertical;
    min-height: 60px;
}

/* Mobile translation cells */
.translation-mobile-cell {
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.translation-mobile-cell.default-culture {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.translation-display {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-xs);
    transition: background-color 0.2s;
}

.translation-display:hover {
    background-color: var(--bs-gray-100);
}

.translation-display.empty {
    border: 1px dashed var(--bs-border-color);
}

[data-bs-theme="dark"] .translation-display:hover {
    background-color: var(--bs-gray-800);
}

/* Progress bars */
.progress {
    border-radius: var(--radius-md);
}

/* Flag emojis */
.flag-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Sticky header */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Loading state */
.entity-value i.fa-spinner {
    color: var(--bs-gray-500);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .resource-key {
        font-size: var(--fs-sm);
    }
    
    .translation-cell {
        min-height: 40px;
        padding: 0.25rem;
    }
    
    .value-display {
        min-height: 2rem;
        padding: 0.25rem;
    }
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] .value-display:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

[data-bs-theme="dark"] .default-culture .value-display {
    background-color: rgba(59, 130, 246, 0.1);
}

[data-bs-theme="dark"] .empty-value {
    border-color: var(--bs-gray-600);
}

/* ═══ Source: Areas/Admin/Views/Logs/ActivityLogs.cshtml ═══ */
.stat-card {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px var(--glass-black-10);
    }
    .stat-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        font-size: var(--fs-xl);
        flex-shrink: 0;
    }
    .stat-card-primary .stat-icon { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
    .stat-card-success .stat-icon { background: rgba(25, 135, 84, 0.1); color: #198754; }
    .stat-card-warning .stat-icon { background: rgba(255, 193, 7, 0.15); color: #cc9a00; }
    .stat-card-info .stat-icon { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; }
    .stat-card-secondary .stat-icon { background: rgba(108, 117, 125, 0.1); color: #6c757d; }
    .stat-content {
        margin-left: 0.75rem;
        min-width: 0;
    }
    .stat-value {
        display: block;
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.2;
    }
    .stat-label {
        display: block;
        font-size: var(--fs-sm);
        color: var(--bs-secondary-color);
        white-space: nowrap;
    }
    .table-row-bot {
        background-color: rgba(255, 193, 7, 0.05) !important;
    }
    .detail-section-title {
        font-size: var(--fs-body-sm);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--bs-primary);
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
        border-bottom: 1px solid var(--bs-border-color);
    }
    .detail-list {
        font-size: var(--fs-body);
    }
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.25rem 0;
        gap: 0.5rem;
    }
    .detail-label {
        color: var(--bs-secondary-color);
        flex-shrink: 0;
    }
    .detail-item > span:last-child,
    .detail-item > a {
        text-align: right;
    }

    [data-bs-theme="dark"] .stat-card {
        background: rgba(33, 37, 41, 0.95);
        border-color: var(--glass-white-10);
    }
    [data-bs-theme="dark"] .stat-card-warning .stat-icon { color: #ffc107; }
    [data-bs-theme="dark"] .table-row-bot {
        background-color: rgba(255, 193, 7, 0.08) !important;
    }

    @media (max-width: 576px) {
        .stat-card { padding: 0.5rem 0.75rem; }
        .stat-icon { width: 32px; height: 32px; font-size: 1rem; }
        .stat-value { font-size: 1rem; }
        .stat-content { margin-left: 0.5rem; }
        .detail-item { flex-direction: column; gap: 0; }
        .detail-item > span:last-child, .detail-item > a { text-align: left; }
    }

/* ═══ Source: Areas/Admin/Views/Logs/ApplicationLogs.cshtml ═══ */
.filter-group {
        background-color: var(--bs-secondary-bg-subtle);
        border-radius: var(--radius-md);
        padding: 1.25rem;
        height: 100%;
        color: var(--bs-body-color);
    }

    .filter-group-title {
        color: var(--bs-body-color);
        margin-bottom: 1.25rem;
        font-weight: 600;
    }

    .table th {
        font-weight: 600;
        text-transform: uppercase;
        font-size: var(--fs-body);
        letter-spacing: 0.025em;
    }

    .table td {
        vertical-align: middle;
        font-size: var(--fs-body-lg);
    }

    .table-hover tbody tr:hover {
        background-color: rgba(0, 0, 0, .02);
    }

    .modal-content {
        box-shadow: 0 0.5rem 1rem var(--glass-black-15);
    }

/* ═══ Source: Areas/Admin/Views/Logs/AuditLogs.cshtml ═══ */
.table-warning {
        --bs-table-bg: rgba(255, 193, 7, 0.2);
    }

    .table-success {
        --bs-table-bg: rgba(25, 135, 84, 0.2);
    }

    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .json-diff {
        background: var(--bs-body-bg);
        color: var(--bs-body-color);
        border-radius: var(--radius-md);
        border: 1px solid var(--bs-border-color);
    }

    .json-diff-row {
        padding: 16px;
        border-bottom: 1px solid var(--bs-border-color);
        transition: background-color 0.15s ease;
    }

    .json-diff-row:last-child {
        border-bottom: none;
    }

    .json-diff-row:hover {
        background-color: var(--bs-tertiary-bg);
    }

    .json-diff-field {
        font-weight: 600;
        color: var(--bs-heading-color, inherit);
        font-size: 0.925rem;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        margin-bottom: 8px;
    }

    .json-diff-changed {
        background-color: rgba(var(--bs-warning-rgb), 0.1);
    }

    .json-diff-changed:hover {
        background-color: rgba(var(--bs-warning-rgb), 0.15);
    }

    .json-diff-value {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: var(--fs-body);
        word-break: break-word;
    }

    .json-diff-old {
        color: var(--bs-danger);
        text-decoration: line-through;
        margin-bottom: 8px;
        padding: 8px 12px;
        background: rgba(var(--bs-danger-rgb), 0.1);
        border-radius: var(--radius-xs);
        display: inline-block;
        max-width: 100%;
        white-space: pre-wrap;
    }

    .json-diff-new {
        color: var(--bs-success);
        padding: 8px 12px;
        background: rgba(var(--bs-success-rgb), 0.1);
        border-radius: var(--radius-xs);
        display: inline-block;
        max-width: 100%;
        white-space: pre-wrap;
    }

    .json-diff-unchanged {
        color: var(--bs-body-color);
        padding: 8px 12px;
        background: var(--bs-tertiary-bg);
        border-radius: var(--radius-xs);
        display: inline-block;
        max-width: 100%;
        white-space: pre-wrap;
    }

    .json-diff-header {
        position: sticky;
        top: 0;
        background-color: var(--bs-body-bg);
        padding: 16px;
        border-bottom: 1px solid var(--bs-border-color);
        margin-bottom: 0;
        z-index: 1;
        box-shadow: 0 1px 2px 0 var(--glass-black-5);
    }

    .json-diff-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .json-diff-legend-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: var(--fs-body);
        color: var(--bs-secondary-color);
    }

    .json-diff-legend-color {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        border: 1px solid var(--bs-border-color);
    }

    /* Modal improvements */
    .modal-dialog-scrollable .modal-content {
        max-height: 90vh;
    }

    /* Responsive adjustments */
        @media(max-width: 768px) {
            .json-diff-row {
                padding: 12px;
            }

            .json-diff-field {
                width: 100%;
            }

            .json-diff-value {
                width: 100%;
            }

            .modal-dialog {
                margin: 0.5rem;
            }

            .json-diff-old,
            .json-diff-new,
            .json-diff-unchanged {
                width: 100%;
                margin-bottom: 4px;
            }
        }

/* ═══ Source: Areas/Admin/Views/Logs/Index.cshtml ═══ */
/* Enhanced Glass Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-white-20);
    box-shadow: 0 8px 32px var(--glass-black-10);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--glass-white-10);
    box-shadow: 0 8px 32px var(--glass-black-30);
}

/* Stats Styling */
.stats-item {
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: rgba(var(--bs-primary-rgb), 0.02);
}

.stats-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.15);
}

.stats-value {
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-primary);
}

.stats-label {
    font-size: var(--fs-sm);
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Log Item Styling */
.log-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin: 0 -1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.log-item:hover, .hover-highlight:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
    transform: translateX(5px);
    border-left-color: var(--bs-primary);
}

.recent-logs {
    max-height: 400px;
}

/* Custom Scrollbar */
.recent-logs::-webkit-scrollbar {
    width: 3px;
}

.recent-logs::-webkit-scrollbar-track {
    background: var(--glass-black-10);
    border-radius: 3px;
}

.recent-logs::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 2px;
}

.recent-logs::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--bs-primary-rgb), 0.5);
}

/* Chart Toggle Buttons */
.chart-toggle .btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Badge Animations */
.badge {
    animation: fadeInUp 0.3s ease;
    font-weight: 600;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Message preview styling */
.message-preview {
    max-width: 400px;
    font-size: var(--fs-body-lg);
    line-height: 1.4;
}

/* Enhanced nav tabs */
.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .stats-value {
        font-size: var(--fs-2xl);
    }
    
    .chart-toggle .btn {
        padding: 0.375rem 0.75rem;
        font-size: var(--fs-body);
    }
    
    .log-item {
        margin: 0 -0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .message-preview {
        max-width: 250px;
    }
}

@media (max-width: 575.98px) {
    .stats-value {
        font-size: var(--fs-xl);
    }
    
    .chart-toggle {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }
    
    .chart-toggle .btn {
        width: 100%;
    }
}

/* ═══ Source: Areas/Admin/Views/ModuleAdmin/Claims.cshtml ═══ */
[data-bs-theme="dark"] .table-light {
        background-color: #2a2a2a !important;
        color: #fff;
    }

    code {
        padding: 0.2rem 0.4rem;
        border-radius: var(--radius-xs);
        background-color: rgba(0,0,0,0.05);
    }

    [data-bs-theme="dark"] code {
        background-color: rgba(255,255,255,0.1);
    }
.form-check {
        transition: background-color 0.2s ease;
    }

    .form-check:hover {
        background-color: rgba(0,0,0,0.02);
    }

    [data-bs-theme="dark"] .form-check:hover {
        background-color: rgba(255,255,255,0.05);
    }

/* ═══ Source: Areas/Admin/Views/ModuleAdmin/UserSubscriptions.cshtml ═══ */
[data-bs-theme="dark"] .table-light {
        background-color: #2a2a2a !important;
        color: #fff;
    }

/* ═══ Source: Areas/Admin/Views/SystemMonitor/Index.cshtml ═══ */
:root {
        --sm-bg-primary: #f8fafc;
        --sm-bg-secondary: #ffffff;
        --sm-bg-tertiary: #f1f5f9;
        --sm-text-primary: #0f172a;
        --sm-text-secondary: #475569;
        --sm-text-muted: #94a3b8;
        --sm-border: #e2e8f0;
        --sm-border-hover: #cbd5e1;
        --sm-accent-blue: #3b82f6;
        --sm-accent-purple: #8b5cf6;
        --sm-accent-orange: #f97316;
        --sm-accent-green: #22c55e;
        --sm-accent-pink: #ec4899;
        --sm-accent-teal: #14b8a6;
        --sm-accent-lime: #84cc16;
        --sm-success: #22c55e;
        --sm-warning: #f59e0b;
        --sm-danger: #ef4444;
        --sm-ring-bg: #e2e8f0;
        --sm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
        --sm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --sm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    [data-bs-theme="dark"] {
        --sm-bg-primary: #0a0a0b;
        --sm-bg-secondary: #141416;
        --sm-bg-tertiary: #1c1c1f;
        --sm-text-primary: #f8fafc;
        --sm-text-secondary: #a1a1aa;
        --sm-text-muted: #71717a;
        --sm-border: #27272a;
        --sm-border-hover: #3f3f46;
        --sm-ring-bg: #27272a;
        --sm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --sm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --sm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }

    .sm-wrapper {
        min-height: 100vh;
        padding: 24px 0;
        background-color: var(--sm-bg-primary);
    }

    .sm-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 32px;
    }

    .sm-title {
        font-size: 28px;
        font-weight: 700;
        color: var(--sm-text-primary);
        margin: 0 0 4px 0;
        letter-spacing: -0.5px;
    }

    .sm-subtitle {
        font-size: 14px;
        color: var(--sm-text-secondary);
        margin: 0;
    }

    .sm-controls {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sm-status {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        background-color: var(--sm-bg-secondary);
        border: 1px solid var(--sm-border);
        border-radius: 24px;
        font-size: 13px;
        font-weight: 500;
        color: var(--sm-text-secondary);
    }

    .sm-status-dot {
        width: 8px;
        height: 8px;
        border-radius: var(--radius-full);
        background-color: var(--sm-success);
        animation: sm-pulse 2s infinite;
    }

    .sm-status-dot.disconnected {
        background-color: var(--sm-danger);
        animation: none;
    }

    @keyframes sm-pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(0.9); }
    }

    .sm-refresh-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--sm-bg-secondary);
        border: 1px solid var(--sm-border);
        border-radius: var(--radius-md);
        color: var(--sm-text-secondary);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .sm-refresh-btn:hover {
        background-color: var(--sm-bg-tertiary);
        border-color: var(--sm-border-hover);
        color: var(--sm-text-primary);
    }

    .sm-refresh-btn:active {
        transform: scale(0.95);
    }

    .sm-refresh-btn.spinning .mdi {
        animation: sm-spin 0.8s linear infinite;
    }

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

    .sm-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .sm-card {
        background-color: var(--sm-bg-secondary);
        border: 1px solid var(--sm-border);
        border-radius: var(--radius-xl);
        overflow: hidden;
        transition: all 0.2s ease;
    }

    .sm-card:hover {
        border-color: var(--sm-border-hover);
        box-shadow: var(--sm-shadow-md);
    }

    .sm-card.full-width {
        grid-column: 1 / -1;
    }

    .sm-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--sm-border);
        cursor: pointer;
        user-select: none;
    }

    .sm-card-header-left {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .sm-card-icon {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }

    .sm-icon-cpu { background-color: rgba(59, 130, 246, 0.12); color: var(--sm-accent-blue); }
    .sm-icon-memory { background-color: rgba(139, 92, 246, 0.12); color: var(--sm-accent-purple); }
    .sm-icon-disk { background-color: rgba(249, 115, 22, 0.12); color: var(--sm-accent-orange); }
    .sm-icon-network { background-color: rgba(34, 197, 94, 0.12); color: var(--sm-accent-green); }
    .sm-icon-process { background-color: rgba(236, 72, 153, 0.12); color: var(--sm-accent-pink); }
    .sm-icon-system { background-color: rgba(20, 184, 166, 0.12); color: var(--sm-accent-teal); }
    .sm-icon-gpu { background-color: rgba(132, 204, 22, 0.12); color: var(--sm-accent-lime); }

    .sm-card-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--sm-text-primary);
        margin: 0 0 2px 0;
    }

    .sm-card-desc {
        font-size: 12px;
        color: var(--sm-text-muted);
        margin: 0;
    }

    .sm-card-toggle {
        color: var(--sm-text-muted);
        transition: transform 0.2s ease;
    }

    .sm-card.collapsed .sm-card-toggle {
        transform: rotate(-90deg);
    }

    .sm-card-body {
        padding: 20px;
        max-height: 600px;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .sm-card.collapsed .sm-card-body {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .sm-ring-container {
        display: flex;
        align-items: center;
        gap: 24px;
        margin-bottom: 20px;
    }

    .sm-ring {
        position: relative;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .sm-ring svg {
        transform: rotate(-90deg);
    }

    .sm-ring-bg {
        fill: none;
        stroke: var(--sm-ring-bg);
        stroke-width: 8;
    }

    .sm-ring-progress {
        fill: none;
        stroke-width: 8;
        stroke-linecap: round;
        transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
    }

    .sm-ring-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .sm-ring-value {
        font-size: 22px;
        font-weight: 700;
        color: var(--sm-text-primary);
        line-height: 1;
    }

    .sm-ring-label {
        font-size: 10px;
        color: var(--sm-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }

    .sm-ring-stats {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sm-ring-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background-color: var(--sm-bg-tertiary);
        border-radius: var(--radius-md);
    }

    .sm-ring-stat-label {
        font-size: 12px;
        color: var(--sm-text-secondary);
    }

    .sm-ring-stat-value {
        font-size: 13px;
        font-weight: 600;
        color: var(--sm-text-primary);
    }

    .sm-sparkline {
        display: flex;
        align-items: flex-end;
        gap: 2px;
        height: 32px;
        padding: 16px 0;
        border-top: 1px solid var(--sm-border);
        margin-top: 16px;
    }

    .sm-sparkline-bar {
        flex: 1;
        min-width: 4px;
        background-color: var(--sm-accent-blue);
        border-radius: 2px 2px 0 0;
        transition: height 0.3s ease;
        opacity: 0.7;
    }

    .sm-sparkline-bar:last-child {
        opacity: 1;
    }

    .sm-metric {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--sm-border);
    }

    .sm-metric:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .sm-metric:first-child {
        padding-top: 0;
    }

    .sm-metric-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: var(--sm-text-secondary);
    }

    .sm-metric-label .mdi {
        font-size: 18px;
        opacity: 0.6;
    }

    .sm-metric-value {
        font-size: 13px;
        font-weight: 600;
        color: var(--sm-text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sm-delta {
        font-size: 11px;
        font-weight: 500;
        padding: 2px 6px;
        border-radius: var(--radius-xs);
    }

    .sm-delta.up {
        background-color: rgba(239, 68, 68, 0.1);
        color: var(--sm-danger);
    }

    .sm-delta.down {
        background-color: rgba(34, 197, 94, 0.1);
        color: var(--sm-success);
    }

    .sm-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        border-radius: var(--radius-xl);
        font-size: 12px;
        font-weight: 600;
    }

    .sm-pill .mdi {
        font-size: 14px;
    }

    .sm-pill-success {
        background-color: rgba(34, 197, 94, 0.12);
        color: var(--sm-success);
    }

    .sm-pill-warning {
        background-color: rgba(245, 158, 11, 0.12);
        color: var(--sm-warning);
    }

    .sm-pill-danger {
        background-color: rgba(239, 68, 68, 0.12);
        color: var(--sm-danger);
    }

    .sm-sub-card {
        background-color: var(--sm-bg-tertiary);
        border-radius: var(--radius-lg);
        padding: 16px;
        margin-bottom: 12px;
    }

    .sm-sub-card:last-child {
        margin-bottom: 0;
    }

    .sm-sub-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .sm-sub-card-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--sm-text-primary);
    }

    .sm-sub-card-title .mdi {
        font-size: 18px;
        opacity: 0.7;
    }

    .sm-progress {
        height: 6px;
        background-color: var(--sm-ring-bg);
        border-radius: 3px;
        overflow: hidden;
        margin: 12px 0;
    }

    .sm-progress-bar {
        height: 100%;
        border-radius: 3px;
        transition: width 0.5s ease;
    }

    .sm-progress-success { background-color: var(--sm-success); }
    .sm-progress-warning { background-color: var(--sm-warning); }
    .sm-progress-danger { background-color: var(--sm-danger); }

    .sm-skeleton {
        background: linear-gradient(90deg, var(--sm-bg-tertiary) 25%, var(--sm-border) 50%, var(--sm-bg-tertiary) 75%);
        background-size: 200% 100%;
        animation: sm-skeleton-loading 1.5s infinite;
        border-radius: var(--radius-sm);
    }

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

    .sm-skeleton-ring {
        width: 100px;
        height: 100px;
        border-radius: var(--radius-full);
    }

    .sm-skeleton-text {
        height: 14px;
        margin-bottom: 8px;
    }

    .sm-skeleton-text:last-child {
        margin-bottom: 0;
        width: 60%;
    }

    .sm-update-toast {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background-color: var(--sm-bg-secondary);
        border: 1px solid var(--sm-border);
        border-radius: var(--radius-lg);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: var(--sm-shadow-lg);
        transform: translateY(100px);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .sm-update-toast.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .sm-update-toast .mdi {
        font-size: 20px;
        color: var(--sm-accent-blue);
    }

    .sm-update-toast span {
        font-size: 13px;
        font-weight: 500;
        color: var(--sm-text-primary);
    }

    @media (max-width: 1200px) {
        .sm-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .sm-wrapper {
            padding: 16px 0;
        }

        .sm-header {
            margin-bottom: 20px;
        }

        .sm-title {
            font-size: 22px;
        }

        .sm-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .sm-card.full-width {
            grid-column: 1;
        }

        .sm-ring-container {
            flex-direction: column;
            align-items: stretch;
        }

        .sm-ring {
            align-self: center;
        }

        .sm-card-body {
            padding: 16px;
        }

        .sm-update-toast {
            bottom: 16px;
            right: 16px;
            left: 16px;
        }

        .sm-status {
            display: none;
        }
    }

    @media (max-width: 480px) {
        .sm-controls {
            width: 100%;
            justify-content: flex-end;
        }

        .sm-metric {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

        .sm-metric-value {
            width: 100%;
            justify-content: flex-end;
        }
    }

/* ═══ Source: Areas/Admin/Views/Translation/ManageEntity.cshtml ═══ */
.translation-field.saving {
        border-color: #ffc107;
        box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    }

    .translation-field.saved {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    }

    .translation-field.error {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }
