/* admin/assets/css/super-fast.css - تحسينات السرعة الفائقة */

/* ===== تحسينات الأداء ===== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* تحسين rendering */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    contain: content;
}

/* تحسين القائمة الجانبية */
.sidebar {
    width: 280px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.08);
    transform: translateX(0);
    transition: transform 0.2s ease;
    will-change: transform;
    z-index: 1050;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar.collapsed {
    transform: translateX(100%);
}

.main-content {
    flex: 1;
    margin-right: 280px;
    min-width: 0;
    transition: margin-right 0.2s ease;
}

/* ===== نظام الجريد السريع ===== */
.fast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ===== بطاقات فائقة السرعة ===== */
.fast-card {
    background: white;
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s ease;
    contain: content;
}

.fast-card:active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== جداول سريعة ===== */
.fast-table {
    width: 100%;
    border-collapse: collapse;
}

.fast-table th {
    background: #fff3e0;
    color: #f57c00;
    font-weight: 600;
    padding: 0.75rem;
    white-space: nowrap;
}

.fast-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== أزرار سريعة ===== */
.fast-btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    background: #f57c00;
    color: white;
    font-weight: 500;
    transition: opacity 0.1s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fast-btn:active {
    opacity: 0.8;
}

.fast-btn-outline {
    background: transparent;
    border: 1px solid #f57c00;
    color: #f57c00;
}

/* ===== نماذج سريعة ===== */
.fast-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.1s ease;
}

.fast-input:focus {
    border-color: #f57c00;
    outline: none;
}

/* ===== تحسينات الجوال ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        transform: translateX(100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .fast-grid {
        grid-template-columns: 1fr;
    }
    
    .fast-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* تحسين سرعة اللمس */
    .fast-btn {
        min-height: 48px;
    }
}

/* ===== تحسينات إضافية للسرعة ===== */
.fast-hide {
    display: none !important;
}

.fast-show {
    display: block !important;
}

.fast-flex {
    display: flex !important;
}

.fast-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== أنيميشن خفيف ===== */
@keyframes fastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fast-fade-in {
    animation: fastFadeIn 0.2s ease;
}

/* ===== تحسين التمرير ===== */
.fast-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.fast-scroll::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

.fast-scroll::-webkit-scrollbar-thumb {
    background: #f57c00;
    border-radius: 3px;
}