﻿/* ==========================================================================
   Improved & Modified by ALGOHRY 😃
   Description: CSS styles for the dashboard and UI enhancements
   GitHub: https://github.com/algohry
   Behance: https://www.behance.net/ah_abdellatif
   ==========================================================================
*/

:root {
    --primary-color: #2799a3;
    --secondary-color: #0F4B85;
    --primary-font: 'Tajawal', 'Cairo', 'Arial', sans-serif;
    --light-gray: #F5F5F5;
    --border-color: #ddd;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    --box-shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.15);
    --card-padding: 10px;
    --radius: 8px;
}

body {
    height: 100vh;
    background: var(--light-gray);
    font-family: var(--primary-font);
}

/* Utility Classes */
.shadow { box-shadow: var(--box-shadow); }
.shadow-hover:hover { box-shadow: var(--box-shadow-hover); }
.rounded { border-radius: var(--radius); }
.center-flex { display: flex; justify-content: center; align-items: center; }
.text-bold { font-weight: bold; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-center { text-align: center; }

/* Card Styles */
.sys-action .card {
    padding: var(--card-padding);
    border-radius: var(--radius);
}

.sys-action .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sys-action .card-header i { color: var(--secondary-color); }
.sys-action .more-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
}

/* Quick Links */
.system-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.system-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 15px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    color: #333;
    will-change: transform, box-shadow;
}

.system-link:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-hover);
}

/* Icons */
.system-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 24px;
}

.pink { background: #e91e63; }
.blue { background: #1e88e5; }
.green { background: #2e7d32; }
.orange { background: #ff9800; }
.purple { background: #673ab7; }
.red { background: #d32f2f; }
.cyan { background: #00bcd4; }

/* Statistics Section */
.stats-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.stats-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    padding: 0;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.stats-header {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.stats-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
}

.stats-icon {
    font-size: 32px;
    color: var(--primary-color);
    background: #F0F4F8;
    padding: 10px;
    border-radius: var(--radius);
}

.stats-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
}

.stats-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.stats-chart i { color: var(--primary-color); font-size: 24px; }

/* Dashboard */
.dashboard .col { padding: 10px; }

.dashboard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
}

.dashboard-item:hover { transform: translateY(-5px); }
.dashboard-item .material-icons { font-size: 36px; color: var(--primary-color); }
.dashboard-item p { margin-top: 10px; font-size: 14px; font-weight: bold; color: #444; }

/* Other Styles */
#card-stats .card { border-radius: var(--radius); }
.breadcrumbs { display: none; }

.apexcharts-xaxistooltip { opacity: 1 !important; }
#chart { min-height: 350px; }

.white-text {
    color: #fff !important;
    font-weight: bold;
    font-size: 16px;
    display: contents;
}

.move-up.cyan.darken-1 { background-color: #eceff1 !important; }

.apexcharts-text tspan {
    font-family: var(--primary-font);
    font-weight: bold;
}

.tata .tata-text {
    margin: 0;
    font-size: 20px;
    color: black;
}

.tata .tata-icon {
    font-size: 2em;
    display: none;
}

.swal2-popup {
    font-size: 14px !important;
    font-family: Georgia, serif;
    height: 400px !important;
}

.swal2-html-container {
    font-size: 20px !important;
    font-weight: bold;
}

.card {
    margin: 5px;
    display: flex;
    flex-direction: column;
    object-fit: cover;
}

ul.dropdown-content { width: auto !important; }

.theme-customizer-trigger {
    position: fixed;
    z-index: 99;
}

.btn-customizer { float: left; }

.sysName { display: contents; }

.material-icons { text-align: center !important; }

img { vertical-align: middle; }

.spanmenue {
    font-weight: 600 !important;
    font-size: 14px;
    color: white;
    font-family: var(--primary-font);
}

a i {
    float: right;
    color: white;
}

.limenue { margin: 5px; font-size: 20px; }

.cyan { background-color: #62c1b2 !important; }
