﻿/* ===== الأساسيات ===== */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/




/*header styles*/

.Dashboard-main-header {
    background-color: #c3d0cf;
    padding: 20px 10px;
    border-radius: 25px;
}
.Dashboard-main-header-title {

    display: inline-block;
    font-size: larger;
    font-weight: bold;
}
.Dashboard-main-header-button {
    display: inline-block;
}




    :root {
        --background: #ffffff;
        --foreground: #0f172a;
        --card: #ffffff;
        --card-foreground: #0f172a;
        --primary: #3b82f6;
        --primary-foreground: #f8fafc;
        --secondary: #f1f5f9;
        --secondary-foreground: #1e293b;
        --muted: #f1f5f9;
        --muted-foreground: #64748b;
        --accent: #f1f5f9;
        --accent-foreground: #1e293b;
        --destructive: #ef4444;
        --destructive-foreground: #f8fafc;
        --border: #e2e8f0;
        --input: #e2e8f0;
        --ring: #3b82f6;
        --radius: 0.5rem;
        --sidebar-background: #fafafa;
        --sidebar-foreground: #4b5563;
        --sidebar-primary: #18181b;
        --sidebar-primary-foreground: #fafafa;
        --sidebar-accent: #f4f4f5;
        --sidebar-accent-foreground: #18181b;
        --sidebar-border: #e4e4e7;
        --sidebar-ring: #3b82f6;
    }

.dark {
    --background: #0f172a;
    --foreground: #f8fafc;
    --card: #0f172a;
    --card-foreground: #f8fafc;
    --primary: #3b82f6;
    --primary-foreground: #1e293b;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #7f1d1d;
    --destructive-foreground: #f8fafc;
    --border: #1e293b;
    --input: #1e293b;
    --ring: #3b82f6;
    --sidebar-background: #18181b;
    --sidebar-foreground: #f4f4f5;
    --sidebar-primary: #fafafa;
    --sidebar-primary-foreground: #18181b;
    --sidebar-accent: #27272a;
    --sidebar-accent-foreground: #f4f4f5;
    --sidebar-border: #27272a;
    --sidebar-ring: #3b82f6;
}

/*body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    direction: rtl;
}*/

/* ===== تخطيط لوحة التحكم ===== */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}


/* ===== البطاقات ===== */
.card {
    background-color: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.card-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.card-content {
    padding: 1rem;
}

/* ===== بطاقات الإحصائيات ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: none;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-change {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.danger {
    color: var(--destructive);
}

/* ===== الرسوم البيانية ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-card.wide {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .charts-grid {
        grid-template-columns: 4fr 3fr;
    }
}


/* ===== بطاقات المعلومات ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-details {
    flex: 1;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.info-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.info-value {
    font-weight: 700;
}

/* ===== شارات الحالة ===== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .status-badge.active {
        background-color: rgba(34, 197, 94, 0.1);
        color: rgb(22, 163, 74);
    }

    .status-badge.expiring-soon {
        background-color: rgba(234, 179, 8, 0.1);
        color: rgb(202, 138, 4);
    }

    .status-badge.expired {
        background-color: rgba(239, 68, 68, 0.1);
        color: rgb(220, 38, 38);
    }

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

    .btn-outline:hover {
        background-color: var(--accent);
        color: var(--accent-foreground);
    }

.btn-icon {
    padding: 0.5rem;
    border: 1px solid var(--border);
    background-color: transparent;
}

/* ===== الأيقونات ===== */
.icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

/* تعريف الأيقونات باستخدام الخطوط أو SVG */
.icon-wrench::before {
    content: "🔧";
}

.icon-home::before {
    content: "🏠";
}

.icon-clipboard::before {
    content: "📋";
}

.icon-users::before {
    content: "👥";
}

.icon-shield::before {
    content: "🛡️";
}

.icon-file::before {
    content: "📄";
}

.icon-tool::before {
    content: "🔨";
}

.icon-briefcase::before {
    content: "💼";
}

.icon-chart::before {
    content: "📊";
}

.icon-package::before {
    content: "📦";
}

.icon-settings::before {
    content: "⚙️";
}

.icon-user::before {
    content: "👤";
}

.icon-menu::before {
    content: "☰";
}

.icon-bell::before {
    content: "🔔";
}

.icon-check-circle::before {
    content: "✓";
}

.icon-clock::before {
    content: "🕒";
}

.icon-dollar::before {
    content: "💲";
}

/* ===== تصميم متجاوب ===== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 100%;
        top: 0;
        bottom: 0;
        z-index: 100;
        transition: transform 0.3s ease-in-out;
    }

        .sidebar.open {
            transform: translateX(-100%);
        }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}
