/**
 * Roya Shipping — shared design system & layout styles
 */

/* ------------------------------------------------------------------ */
/* Design tokens                                                       */
/* ------------------------------------------------------------------ */

:root {
    /* Legacy aliases (used by existing templates) */
    --primary: #0d1b3e;
    --topbar-height: 64px;

    /* Color */
    --color-bg: #eef1f6;
    --color-surface: #ffffff;
    --color-border: #dde4ee;
    --color-border-light: #e8ecf1;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-subtle: #78909c;
    --color-primary: #1a3365;
    --color-primary-dark: #0d1b3e;
    --color-primary-hover: #0f2447;
    --color-accent: #2563eb;
    --color-gold: #c9a962;
    --color-gold-light: #e8d5a8;
    --color-gold-muted: rgba(201, 169, 98, 0.14);
    --color-nav-text: #314256;
    --color-nav-hover-bg: #eff4fb;

    /* Spacing (4px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;

    /* Radius & shadow */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(13, 27, 62, 0.06);
    --shadow-md: 0 6px 24px rgba(13, 27, 62, 0.08);
    --shadow-lg: 0 14px 40px rgba(13, 27, 62, 0.11);
    --shadow-xl: 0 24px 56px rgba(13, 27, 62, 0.14);
    --shadow-nav: 0 4px 24px rgba(13, 27, 62, 0.08);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 85% 55% at 50% -15%, rgba(26, 51, 101, 0.07), transparent),
        radial-gradient(ellipse 50% 35% at 100% 100%, rgba(201, 169, 98, 0.05), transparent);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------ */
/* Top navigation                                                      */
/* ------------------------------------------------------------------ */

.navbar-top {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-height: var(--topbar-height);
    height: auto;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-6) var(--space-3);
    border-bottom: 1px solid rgba(221, 228, 238, 0.85);
    box-shadow: var(--shadow-nav);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.navbar-top-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-top-row--head {
    justify-content: center;
    position: relative;
    padding-top: 0.15rem;
    padding-bottom: 0.35rem;
}

.navbar-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-2px);
}

.navbar-top-row--head .user-info {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-top-row--search {
    justify-content: center;
    padding-bottom: 0.55rem;
}

.navbar-top-row--nav {
    justify-content: center;
    border-top: 1px solid rgba(221, 228, 238, 0.55);
    padding-top: 0.45rem;
}

.navbar-search-wrap {
    width: 100%;
    max-width: 520px;
    min-width: 0;
    position: relative;
    z-index: 1040;
}

.master-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.master-search-icon {
    position: absolute;
    inset-inline-start: 0.75rem;
    color: var(--text-muted, #6b7280);
    pointer-events: none;
    font-size: 0.95rem;
}

.master-search-input {
    width: 100%;
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: 999px;
    padding: 0.45rem 4.5rem 0.45rem 2.25rem;
    font-size: 0.875rem;
    background: rgba(248, 250, 252, 0.95);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[dir="rtl"] .master-search-input {
    padding: 0.45rem 2.25rem 0.45rem 4.5rem;
}

.master-search-input:focus {
    outline: none;
    border-color: var(--accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.master-search-kbd {
    position: absolute;
    inset-inline-end: 0.55rem;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(221, 228, 238, 0.95);
    color: var(--text-muted, #6b7280);
    background: #fff;
    pointer-events: none;
}

.master-search-panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    background: #fff;
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    overflow: auto;
}

.master-search-status {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    border-bottom: 1px solid rgba(221, 228, 238, 0.6);
}

.master-search-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
}

.master-search-item {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.master-search-item:hover,
.master-search-item.is-active {
    background: rgba(37, 99, 235, 0.08);
}

.master-search-item-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.master-search-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.1rem;
}

.master-search-item-type {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent, #2563eb);
    margin-bottom: 0.15rem;
}

.navbar-top.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
}

.navbar-top .brand-image {
    height: 64px;
    width: auto;
    display: block;
    transition: opacity var(--transition-fast);
}

.navbar-top a.navbar-brand-link:hover .brand-image {
    opacity: 0.92;
}

.navbar-top .nav-center {
    display: flex;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.navbar-top .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.navbar-top .nav-link {
    color: var(--color-nav-text);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar-top .nav-link:hover,
.navbar-top .nav-link:focus {
    background: var(--color-nav-hover-bg);
    color: var(--color-primary-dark);
}

.navbar-top .nav-link.active {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #243d6e 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(13, 27, 62, 0.22);
}

.navbar-top .nav-link i,
.navbar-top .dropdown-item i {
    margin-inline-end: 0.35rem;
    opacity: 0.85;
}

.navbar-top .dropdown-menu {
    border: 1px solid rgba(221, 228, 238, 0.9);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.45rem;
}

.navbar-top .dropdown-item {
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    padding: 0.5rem 0.75rem;
}

.navbar-top .dropdown-item:hover,
.navbar-top .dropdown-item:focus {
    background: var(--color-nav-hover-bg);
    color: var(--color-primary-dark);
}

.navbar-top .user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: #607284;
}

.navbar-top .user-info a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.navbar-top .user-info a:hover {
    color: var(--color-accent);
}

.user-info .user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(180deg, #f4f7fb 0%, var(--color-nav-hover-bg) 100%);
    border: 1px solid rgba(221, 228, 238, 0.9);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.lang-switcher-link {
    color: var(--color-nav-text);
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.lang-switcher-link:hover {
    color: var(--color-primary-dark);
    background: var(--color-nav-hover-bg);
}

.lang-switcher-link.is-active {
    color: var(--color-primary-dark);
    background: var(--color-nav-hover-bg);
}

.lang-switcher-sep {
    color: #b0bec5;
    user-select: none;
}

/* ------------------------------------------------------------------ */
/* Main layout                                                         */
/* ------------------------------------------------------------------ */

.main-content {
    padding: var(--space-6);
    min-height: 100vh;
    animation: luxuryFadeIn 0.45s ease-out both;
}

@keyframes luxuryFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ------------------------------------------------------------------ */
/* Cards & surfaces                                                    */
/* ------------------------------------------------------------------ */

.card-custom {
    background: var(--color-surface);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-card .stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    text-transform: uppercase;
}

.stat-value.is-danger {
    color: #dc2626;
}

.stat-value.is-success {
    color: #16a34a;
}

.panel-card {
    background: var(--color-surface);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.panel-card:hover {
    box-shadow: var(--shadow-md);
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
}

.panel-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.panel-card-body {
    padding: 0;
}

.panel-card-body.padded {
    padding: var(--space-4) 1.1rem;
}

.panel-card-header--tabs {
    padding-bottom: 0;
    border-bottom: none;
    background: #fff;
}

.panel-card-header--tabs .nav-tabs {
    margin-bottom: -1px;
}

.panel-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.panel-card-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                           */
/* ------------------------------------------------------------------ */

.btn-primary {
    background: linear-gradient(180deg, #243d6e 0%, var(--color-primary) 100%);
    border: 1px solid rgba(13, 27, 62, 0.15);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.18);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: rgba(13, 27, 62, 0.2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.26);
}

.btn-secondary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 27, 62, 0.15);
}

.btn-ghost {
    border: 1px solid var(--color-border);
    color: var(--color-nav-text);
    background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--color-nav-hover-bg);
    border-color: var(--color-border);
    color: var(--color-primary-dark);
}

/* Legacy aliases — kept for any third-party references */
.btn-primary-custom {
    background: linear-gradient(180deg, #243d6e 0%, var(--color-primary) 100%);
    border: 1px solid rgba(13, 27, 62, 0.15);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.18);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: rgba(13, 27, 62, 0.2);
    color: #fff;
}

.btn-outline-custom {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    font-weight: 600;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

.table-custom thead th {
    background: linear-gradient(180deg, #1e3a6e 0%, var(--color-primary) 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.65rem 0.55rem;
    border: none;
}

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

.table-custom tbody tr:hover {
    background: rgba(232, 240, 254, 0.4);
}

.table-custom tbody td {
    font-size: 0.82rem;
    padding: 0.55rem;
    border-bottom: 1px solid #eef2f6;
}

.row-danger-soft {
    background: #fff5f5;
}

.row-highlight-info {
    background: #f0f4ff;
}

.row-highlight-success {
    background: #e8f5e9;
}

.filter-search {
    min-width: 220px;
}

.filter-select-auto {
    width: auto;
}

.filter-select-pod {
    max-width: 280px;
}

.input-w-120 {
    width: 120px;
}

.input-w-150 {
    width: 150px;
}

.select-w-100 {
    width: 100px;
}

/* ------------------------------------------------------------------ */
/* Badges & status                                                     */
/* ------------------------------------------------------------------ */

.badge-status {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background-color: #9e9e9e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.01em;
}

/* Dynamic colors applied via static/js/app.js from data-bg-color */

/* ------------------------------------------------------------------ */
/* Page headers                                                        */
/* ------------------------------------------------------------------ */

.page-header h2 {
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.page-header p {
    color: var(--color-text-subtle);
    margin: 0;
    font-size: 0.85rem;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: '';
    width: 3px;
    height: 0.85rem;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    flex-shrink: 0;
}

.meta-date {
    font-size: 0.8rem;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.form-label-custom {
    font-weight: 600;
    font-size: 0.8rem;
    color: #37474f;
    margin-bottom: 0.2rem;
}

.form-section {
    background: #fafbfd;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin-bottom: var(--space-4);
}

.form-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}

/* ------------------------------------------------------------------ */
/* Page hero (legacy — kept until Phase 3 flat headers)                */
/* ------------------------------------------------------------------ */

.page-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3365 48%, #264a7a 100%);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.85;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.14) 0%, transparent 68%);
    top: -90px;
    right: -50px;
    pointer-events: none;
}

.page-hero-main {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
    position: relative;
    z-index: 1;
}

.page-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.page-hero-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.page-hero-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(6px);
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    position: relative;
    z-index: 1;
}

.page-hero-actions .btn {
    font-size: 0.82rem;
    font-weight: 600;
}

.page-hero-actions .btn-light {
    color: var(--color-primary-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.page-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------------ */
/* Dashboard & workflow                                                */
/* ------------------------------------------------------------------ */

.action-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--color-surface);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: var(--space-4) 1.1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    height: 100%;
}

.action-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 212, 234, 0.95);
    color: inherit;
}

a.action-tile {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.action-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-tile-icon.import { background: #e8f0fe; color: #1a56db; }
.action-tile-icon.export { background: #e6f7f5; color: #0d9488; }
.action-tile-icon.containers { background: #fef3e2; color: #d97706; }
.action-tile-icon.finance { background: #f0fdf4; color: #16a34a; }
.action-tile-icon.ops { background: #f3e8ff; color: #7c3aed; }

.action-tile-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.action-tile-desc {
    font-size: 0.72rem;
    color: var(--color-text-subtle);
    margin-top: 0.15rem;
}

.kpi-card {
    background: var(--color-surface);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: var(--space-4) 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kpi-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kpi-card-icon.blue { background: #e8f0fe; color: #1a56db; }
.kpi-card-icon.teal { background: #e6f7f5; color: #0d9488; }
.kpi-card-icon.amber { background: #fef3e2; color: #d97706; }
.kpi-card-icon.green { background: #f0fdf4; color: #16a34a; }
.kpi-card-icon.red { background: #fef2f2; color: #dc2626; }
.kpi-card-icon.purple { background: #f3e8ff; color: #7c3aed; }

.kpi-card-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.kpi-card-value.danger { color: #dc2626; }
.kpi-card-value.success { color: #16a34a; }

.kpi-card-label {
    font-size: 0.72rem;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.2rem;
}

.workflow-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    background: var(--color-surface);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: 0.85rem var(--space-4);
    box-shadow: var(--shadow-sm);
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a5d73;
    background: var(--color-bg);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
}

.workflow-step:hover {
    background: #e8f0fe;
    color: var(--color-primary);
}

.workflow-step.is-active {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #243d6e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.2);
}

.workflow-step.is-active:hover {
    background: var(--color-primary-dark, #0d47a1);
    color: #fff;
}

.workflow-step.is-done {
    background: #e8f5e9;
    color: #2e7d32;
}

.workflow-step.is-done:hover {
    background: #c8e6c9;
    color: #1b5e20;
}

.workflow-step i {
    font-size: 0.9rem;
}

.workflow-arrow {
    color: #b0bec5;
    font-size: 0.75rem;
    align-self: center;
}

/* ------------------------------------------------------------------ */
/* Alerts & empty states                                               */
/* ------------------------------------------------------------------ */

.alert-banner {
    border-radius: var(--radius-md);
    padding: 0.75rem var(--space-4);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.84rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-banner.warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #7c5e10;
}

.alert-banner.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-banner.info {
    background: #e8f0fe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-banner.danger .panel-card-link {
    color: #991b1b;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    color: #b0bec5;
    margin-bottom: 0.75rem;
}

.empty-state h5 {
    color: var(--color-primary);
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                */
/* ------------------------------------------------------------------ */

.nav-tabs .nav-link {
    font-weight: 600;
    font-size: 0.84rem;
    color: #4a5d73;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

.nav-tabs .nav-link i {
    margin-inline-end: 0.3rem;
}

/* ------------------------------------------------------------------ */
/* Login page                                                          */
/* ------------------------------------------------------------------ */

body.login-page {
    background: linear-gradient(145deg, #e8edf4 0%, #d4dce8 45%, #c5d0e0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.login-card {
    max-width: 420px;
    width: 100%;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem var(--space-8);
    border: 1px solid rgba(221, 228, 238, 0.9);
    border-top: 3px solid var(--color-gold);
    position: relative;
    overflow: hidden;
}

.login-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold-muted) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.login-card .brand-image {
    max-width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.login-card .form-label {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.login-card .btn-login {
    width: 100%;
    padding: 0.65rem var(--space-4);
    font-weight: 600;
}

.login-card .login-footer {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: var(--space-8);
    margin-bottom: 0;
    font-size: var(--text-sm);
}

/* ------------------------------------------------------------------ */
/* Voyage hub (import/partials/voyage_hub_nav.html)                    */
/* ------------------------------------------------------------------ */

.voyage-hub {
    background: #fff;
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.voyage-hub-top {
    background: linear-gradient(135deg, #0a1628 0%, #1a3365 48%, #264a7a 100%);
    color: #fff;
    padding: 1.1rem 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.voyage-hub-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.85;
}

.voyage-hub-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.voyage-hub-back:hover {
    color: #fff;
}

.voyage-hub-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.voyage-hub-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0.25rem 0 0;
}

.voyage-hub-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.voyage-hub-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    text-align: center;
    min-width: 4.5rem;
}

.voyage-hub-stat strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.1;
}

.voyage-hub-stat small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.72);
}

.voyage-hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    background: #fafbfd;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid #eef2f6;
}

.voyage-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5d73;
    background: #fff;
    border: 1px solid #e3e8ef;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.voyage-hub-link:hover {
    background: #e8f0fe;
    border-color: #bfdbfe;
    color: #1a3365;
}

.voyage-hub-link.active {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #243d6e 100%);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.18);
}

.voyage-hub-link.done:not(.active) {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0d9488;
}

.voyage-hub-link i {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ------------------------------------------------------------------ */
/* Delivery order form sections                                        */
/* ------------------------------------------------------------------ */

.do-form-section {
    background: #fff;
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.do-form-section .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3365;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8ecf1;
}

.do-form-section.section-do {
    border-top: 4px solid #1a3365;
}

.do-form-section.section-guarantee {
    border-top: 4px solid #009688;
}

.do-form-section.section-extra {
    border-top: 4px solid #ff9800;
}

/* ------------------------------------------------------------------ */
/* Excel-style tables (stock report + shared)                          */
/* ------------------------------------------------------------------ */

.cm-excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    margin-bottom: 0;
}

.cm-excel-table th,
.cm-excel-table td {
    border: 1px solid #b8c2ce;
    padding: 5px 7px;
    vertical-align: middle;
    white-space: nowrap;
}

.cm-excel-table thead th {
    background: linear-gradient(180deg, #c5d9f1 0%, #dce6f2 100%);
    color: #0d1b3e;
    font-weight: 700;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Luxury UI polish — forms, modals, micro-interactions (Phase 5)      */
/* ------------------------------------------------------------------ */

.form-control,
.form-select {
    border-color: var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-section {
    background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.empty-state {
    border-radius: var(--radius-md);
}

.empty-state-icon {
    font-size: 2.5rem;
    color: #b0bec5;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.lang-switcher-link.is-active {
    color: var(--color-primary-dark);
    background: var(--color-gold-muted);
    border: 1px solid rgba(201, 169, 98, 0.25);
}

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom-color: var(--color-border-light);
    background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
}

/* Bootstrap backdrop is appended to body; keep dialog above it. */
.modal-backdrop {
    z-index: 1050;
}

.modal {
    z-index: 1055;
}

.dropdown-menu {
    border: 1px solid rgba(221, 228, 238, 0.9);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.stat-card {
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* Micro-polish                                                        */
/* ------------------------------------------------------------------ */

.btn-primary:active,
.btn-secondary:active,
.btn-primary-custom:active,
.btn-outline-custom:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.main-content > .alert {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
}

.cm-history-table thead th,
.cm-stock-table thead tr:first-child th,
#containerMovementTable thead th {
    background: linear-gradient(180deg, #c5d9f1 0%, #dce6f2 100%);
    color: #0d1b3e;
    font-weight: 700;
    text-align: center;
}

.stock-filter-panel {
    background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.stock-filter-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stock-carrier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
}

.stock-carrier-options label {
    font-size: 0.76rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.stock-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 600;
}

.stock-live-pill .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: stockPulse 1.5s ease-in-out infinite;
}

@keyframes stockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .stock-live-pill .pulse {
        animation: none;
    }
}

.btn-sm {
    border-radius: var(--radius-sm);
}

.table-responsive {
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .main-content {
        animation: none;
    }

    .action-tile:hover,
    .kpi-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ------------------------------------------------------------------ */
/* RTL (Arabic) polish                                                 */
/* ------------------------------------------------------------------ */

[dir="rtl"] {
    --font-sans: 'Noto Sans Arabic', 'Segoe UI', 'Traditional Arabic', Tahoma, sans-serif;
}

[dir="rtl"] body {
    font-family: var(--font-sans);
}

/* Latin codes, IDs, numeric cells, and container mix stay readable in RTL */
.keep-ltr,
.container-mix,
[dir="rtl"] .num,
[dir="rtl"] td.num {
    direction: ltr;
    unicode-bidi: isolate;
}

[dir="rtl"] .section-label,
[dir="rtl"] .kpi-card-label,
[dir="rtl"] .voyage-hub-stat small {
    letter-spacing: 0;
    text-transform: none;
}

[dir="rtl"] .page-hero,
[dir="rtl"] .voyage-hub-top {
    background: linear-gradient(-135deg, #0a1628 0%, #1a3365 48%, #264a7a 100%);
}

[dir="rtl"] body.login-page {
    background: linear-gradient(-145deg, #e8edf4 0%, #d4dce8 45%, #c5d0e0 100%);
}

[dir="rtl"] .section-label::before {
    background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

[dir="rtl"] .workflow-arrow i {
    transform: scaleX(-1);
}

[dir="rtl"] .dir-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

[dir="rtl"] .bi-arrow-left::before,
[dir="rtl"] .bi-arrow-right::before,
[dir="rtl"] .bi-arrow-right-short::before,
[dir="rtl"] .bi-arrow-right-circle::before,
[dir="rtl"] .bi-box-arrow-right::before {
    display: inline-block;
    transform: scaleX(-1);
}

/* Bilingual EN|AR panels keep a fixed column order */
[dir="rtl"] .mr-translate-grid,
[dir="rtl"] .tw-split {
    direction: ltr;
}

[dir="rtl"] .mr-ar-input,
[dir="rtl"] .tw-arabic-input {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .cm-pipeline {
    flex-direction: row-reverse;
}

[dir="rtl"] .cm-excel-table thead th,
[dir="rtl"] .cm-history-table thead th {
    text-align: center;
}

[dir="rtl"] .form-section-title i,
[dir="rtl"] .panel-card-title i,
[dir="rtl"] .page-header h2 i,
[dir="rtl"] .do-form-section .section-title i {
    margin-inline-end: 0.35rem;
}

[dir="rtl"] .alert-banner .panel-card-link {
    margin-inline-start: auto;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
    .navbar-top {
        padding: 0.75rem var(--space-4) var(--space-3);
    }

    .navbar-top-row--head {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 0.5rem;
    }

    .navbar-top-row--head .user-info {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
        order: 2;
    }

    .navbar-brand-link {
        order: 1;
        transform: none;
    }

    .navbar-search-wrap {
        max-width: none;
    }

    .master-search-kbd {
        display: none;
    }

    .navbar-top .brand-image {
        height: 52px;
    }

    .navbar-top-row--nav {
        padding-top: 0.35rem;
    }

    .navbar-top .nav-center {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .navbar-top .navbar-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .navbar-top .user-info {
        width: auto;
    }

    .voyage-hub-nav {
        gap: 0.25rem;
    }

    .voyage-hub-link {
        font-size: 0.74rem;
        padding: 0.4rem 0.65rem;
    }
}

/* ------------------------------------------------------------------ */
/* Backup management (Settings → Backup tab) — Phase 5 luxury        */
/* ------------------------------------------------------------------ */

.backup-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.backup-stat-pill {
    background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
}

.backup-stat-pill-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-subtle);
    margin-bottom: 0.25rem;
}

.backup-stat-pill-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.backup-prefs-panel {
    background: var(--color-surface);
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.backup-luxury-card {
    background: #fff;
    border: 1px solid rgba(221, 228, 238, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.backup-card-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a3365 48%, #264a7a 100%);
    color: #fff;
    padding: 1rem 1.15rem;
    position: relative;
}

.backup-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.85;
}

.backup-card-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.backup-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.backup-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.backup-card-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.15rem 0 0;
}

.backup-card-body {
    padding: 1.15rem;
}

.backup-meta-line {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.backup-meta-line strong {
    color: var(--color-text);
}

.backup-table-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.backup-table {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.backup-table thead th {
    background: linear-gradient(180deg, #1e3a6e 0%, var(--color-primary) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
}

.backup-table thead th:first-child {
    border-start-start-radius: 0;
}

.backup-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.85);
}

.backup-table tbody tr:hover {
    background: var(--color-gold-muted);
}

.backup-table tbody td {
    padding: 0.6rem 0.85rem;
    vertical-align: middle;
    border-color: var(--color-border-light);
}

.backup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.backup-action-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
}

.backup-action-restore {
    color: #b45309;
    border-color: #fbbf24;
    background: #fffbeb;
}

.backup-action-restore:hover {
    color: #92400e;
    background: #fef3c7;
    border-color: #f59e0b;
}

.backup-action-download {
    color: var(--color-primary);
    border-color: var(--color-border);
    background: #fff;
}

.backup-action-download:hover {
    background: #f8fafc;
}

.backup-action-delete {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff;
}

.backup-action-delete:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.backup-empty-state {
    text-align: center;
    padding: 2rem 1.25rem;
    color: var(--color-text-muted);
}

.backup-empty-state i {
    font-size: 2.25rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    display: block;
}

.backup-danger-zone {
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

.backup-danger-zone .backup-card-header {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 48%, #b91c1c 100%);
}

[dir="rtl"] .backup-actions {
    justify-content: flex-start;
}
