/* ========================================
   DASHBOARD CLIENT RESPONSIVE STYLES
   ======================================== */

/* Mobile Styles - Tablets and Phones */
@media (max-width: 991px) {
    
    /* ========================================
       DASHBOARD CONTAINER - MOBILE LAYOUT
       ======================================== */
    
    .dashboard-container {
        flex-direction: column !important;
        min-height: 100vh !important;
    }
    
    /* ========================================
       SIDEBAR - MOBILE OPTIMIZATION
       ======================================== */
    
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    /* Sidebar Header */
    .sidebar-header {
        padding: 20px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-align: center !important;
    }
    
    .sidebar-title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
    }
    
    .user-welcome {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 0 !important;
    }
    
    /* Sidebar Menu */
    .sidebar-menu {
        padding: 15px 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    .sidebar-item {
        margin: 0 !important;
    }
    
    .sidebar-link {
        display: flex !important;
        align-items: center !important;
        padding: 15px 20px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border-left: 3px solid transparent !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    .sidebar-link:hover,
    .sidebar-link.active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        border-left-color: #ffffff !important;
        transform: translateX(5px) !important;
    }
    
    .sidebar-icon {
        margin-right: 12px !important;
        font-size: 18px !important;
        width: 24px !important;
        text-align: center !important;
    }
    
    /* ========================================
       MAIN CONTENT - MOBILE LAYOUT
       ======================================== */
    
    .main-content {
        margin-left: 0 !important;
        padding: 15px !important;
        width: 100% !important;
        min-height: 100vh !important;
        background: #f8f9fa !important;
    }
    
    /* ========================================
       SIDEBAR TOGGLE BUTTON
       ======================================== */
    
    .sidebar-toggle {
        position: fixed !important;
        top: 20px !important;
        left: 20px !important;
        z-index: 1001 !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border: none !important;
        color: #ffffff !important;
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .sidebar-toggle:hover {
        transform: scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    }
    
    /* ========================================
       CONTENT SECTIONS - MOBILE OPTIMIZATION
       ======================================== */
    
    .content-section {
        margin-top: 80px !important;
        padding: 0 !important;
    }
    
    /* ========================================
       SECTION HEADERS - MOBILE STYLING
       ======================================== */
    
    .section-header {
        text-align: center !important;
        margin-bottom: 30px !important;
        padding: 30px 20px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2) !important;
        color: #ffffff !important;
    }
    
    .section-title {
        font-size: 32px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin-bottom: 12px !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    .section-subtitle {
        font-size: 18px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }
    
    /* ========================================
       ORDERS GRID - MOBILE LAYOUT
       ======================================== */
    
    .grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin-top: 25px !important;
    }
    
    /* ========================================
       ORDER CARDS - MOBILE STYLING
       ======================================== */
    
    .card {
        background: #ffffff !important;
        border-radius: 16px !important;
        padding: 25px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(102, 126, 234, 0.1) !important;
    }
    
    .card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
        border-color: rgba(102, 126, 234, 0.2) !important;
    }
    
    .card-title {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #2d3748 !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 3px solid #e2e8f0 !important;
    }
    
    /* ========================================
       FORMATION INFO - MOBILE STYLING
       ======================================== */
    
    .formation-info {
        margin-bottom: 25px !important;
    }
    
    .formation-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #2d3748 !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    
    .formation-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .formation-price {
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #38a169 !important;
    }
    
    .formation-category {
        font-size: 16px !important;
        color: #718096 !important;
        background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        display: inline-block !important;
        font-weight: 500 !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    /* ========================================
       PRICE BREAKDOWN - MOBILE STYLING
       ======================================== */
    
    .price-breakdown {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .original-price {
        font-size: 14px !important;
    }
    
    .final-price {
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    
    .discount-info {
        font-size: 12px !important;
        margin-top: 5px !important;
    }
    
    /* ========================================
       CARD META - MOBILE STYLING
       ======================================== */
    
    .card-meta {
        background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
        padding: 20px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
        font-size: 16px !important;
        line-height: 1.7 !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .card-meta strong {
        color: #2d3748 !important;
        font-weight: 700 !important;
    }
    
    /* ========================================
       CARD DESCRIPTION - MOBILE STYLING
       ======================================== */
    
    .card-description {
        background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%) !important;
        padding: 20px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
        font-size: 16px !important;
        line-height: 1.7 !important;
        border-left: 5px solid #f56565 !important;
    }
    
    .card-description strong {
        color: #c53030 !important;
        font-weight: 700 !important;
    }
    
    /* ========================================
       ACTION BUTTONS - MOBILE STYLING
       ======================================== */
    
    .card .btn {
        display: inline-block !important;
        padding: 15px 25px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        margin: 8px 8px 8px 0 !important;
        border: none !important;
        min-width: 140px !important;
    }
    
    .card .btn:first-child {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
    }
    
    .card .btn:first-child:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    }
    
    .card .btn.btn-secondary {
        background: #ffffff !important;
        color: #4a5568 !important;
        border: 2px solid #e2e8f0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card .btn.btn-secondary:hover {
        background: #f7fafc !important;
        border-color: #cbd5e0 !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* ========================================
       EMPTY STATE - MOBILE STYLING
       ======================================== */
    
    .empty-state {
        text-align: center !important;
        padding: 50px 25px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%) !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .empty-state-icon {
        font-size: 64px !important;
        margin-bottom: 25px !important;
    }
    
    .empty-state h3 {
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #2d3748 !important;
        margin-bottom: 15px !important;
    }
    
    .empty-state p {
        font-size: 18px !important;
        color: #718096 !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }
    
    /* ========================================
       ALERTS - MOBILE STYLING
       ======================================== */
    
    .alert {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    
    .alert-success {
        background: #f0fff4 !important;
        color: #22543d !important;
        border: 1px solid #9ae6b4 !important;
    }
    
    .alert-error {
        background: #fed7d7 !important;
        color: #c53030 !important;
        border: 1px solid #feb2b2 !important;
    }
}

/* ========================================
   SMALL MOBILE DEVICES (max-width: 576px)
   ======================================== */

@media (max-width: 576px) {
    
    /* Sidebar */
    .sidebar {
        width: 100% !important;
    }
    
    .sidebar-header {
        padding: 20px 15px !important;
    }
    
    .sidebar-title {
        font-size: 20px !important;
    }
    
    .sidebar-link {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    
    /* Main Content */
    .main-content {
        padding: 15px !important;
    }
    
    /* Section Headers */
    .section-header {
        padding: 25px 15px !important;
        margin-bottom: 25px !important;
    }
    
    .section-title {
        font-size: 28px !important;
    }
    
    .section-subtitle {
        font-size: 16px !important;
    }
    
    /* Cards */
    .card {
        padding: 20px !important;
    }
    
    .card-title {
        font-size: 20px !important;
    }
    
    .formation-title {
        font-size: 18px !important;
    }
    
    .formation-price {
        font-size: 20px !important;
    }
    
    /* Buttons */
    .card .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        margin: 5px 5px 5px 0 !important;
        min-width: 120px !important;
    }
    
    /* Meta and Description */
    .card-meta,
    .card-description {
        padding: 15px !important;
        font-size: 14px !important;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 20px !important;
    }
    
    .empty-state-icon {
        font-size: 56px !important;
    }
    
    .empty-state h3 {
        font-size: 22px !important;
    }
    
    .empty-state p {
        font-size: 16px !important;
    }
}

/* ========================================
   TABLET SPECIFIC STYLES (768px - 991px)
   ======================================== */

@media (min-width: 768px) and (max-width: 991px) {
    
    /* Orders Grid - 2 columns on tablet */
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    /* Sidebar */
    .sidebar {
        width: 320px !important;
    }
    
    /* Main Content */
    .main-content {
        padding: 20px !important;
    }
}

/* ========================================
   OVERLAY FOR SIDEBAR
   ======================================== */

@media (max-width: 991px) {
    
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    .sidebar-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ========================================
   ANIMATIONS FOR MOBILE
   ======================================== */

@media (max-width: 991px) {
    
    /* Smooth transitions */
    .card,
    .btn,
    .sidebar-link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Card hover effects for touch devices */
    .card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    }
    
    /* Button hover effects */
    .btn:hover {
        transform: translateY(-2px) !important;
    }
} 