:root {
    /* الألوان الأساسية من النظام الأصلي */
    --bg-dark: #020617;
    --bg-glass: rgba(15, 23, 42, 0.65);
    --bg-glass-heavy: rgba(15, 23, 42, 0.85);
    --border-glass: rgba(148, 163, 184, 0.12);
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-main: 0 18px 50px rgba(0, 0, 0, 0.35);
    --glass-blur: blur(12px);
    --font-main: 'Cairo', sans-serif;
}

* {
    font-family: var(--font-main);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(ellipse at center, #0f172a 0%, #020617 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Dashboard Shell --- */
.active-tab {
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.inactive-tab {
    opacity: 0.4;
    transform: scale(1);
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    box-shadow: var(--shadow-main);
    animation: fadeInDown 0.8s ease-out;
}

.dashboard-logo-ring {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-logo-ring img {
    max-width: 85%;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.animated-text {
    background: linear-gradient(to right, #f8fafc, #3b82f6, #06b6d4, #f8fafc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 800;
    line-height: 1.3;
}

h1.animated-text { font-size: 2.2rem; margin-bottom: 0.25rem; }
h2.animated-text { font-size: 1.4rem; opacity: 0.8; }
h3.animated-text { font-size: 1rem; opacity: 0.6; }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 1100px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.dashboard-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: var(--shadow-main);
}

.dashboard-card i {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--bg-glass-heavy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dashboard-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.dashboard-card span { font-size: 1.2rem; font-weight: 700; color: #fff; display: block; }
.dashboard-card .subtitle { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-top: 0.2rem; }

/* ألوان مخصصة */
.dashboard-search i { color: var(--accent-cyan); text-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
.dashboard-ships i { color: var(--accent-blue); text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.dashboard-stations i { color: var(--accent-emerald); text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.dashboard-admin i { color: var(--accent-amber); text-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.dashboard-chart i { color: var(--accent-red); text-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

/* Footer & Marquee */
.dashboard-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
}

.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; }
.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-right: 50px;
}

/* زر DES المخفي */
.dashboard-des {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    z-index: 100;
    cursor: default;
}

/* Animations */
@keyframes shine { to { background-position: 200% center; } }
@keyframes marquee { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Utility */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modals */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}
