/home/awneajlw/public_html/codestechvista.com/admin/includes/header.php
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $page_title ?? 'Admin Dashboard'; ?> - OptiSlip</title>
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    
    <!-- DataTables CSS -->
    <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet">
    
    <!-- Custom Admin CSS -->
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f8f9fa;
            color: #333;
        }
        
        .main-content {
            margin-left: 260px;
            padding: 30px;
            min-height: 100vh;
            transition: all 0.3s ease;
        }
        
        .page-header {
            background: white;
            padding: 20px 30px;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            margin-bottom: 30px;
        }
        
        .page-title {
            font-size: 28px;
            font-weight: 700;
            color: #169D53;
            margin: 0;
        }
        
        .breadcrumb {
            background: none;
            padding: 0;
            margin: 10px 0 0 0;
        }
        
        .breadcrumb-item.active {
            color: #6c757d;
        }
        
        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border-left: 4px solid #169D53;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #169D53, #0d7a3f);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            margin-bottom: 15px;
        }
        
        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: #169D53;
            margin: 10px 0;
        }
        
        .stat-label {
            color: #6c757d;
            font-size: 14px;
            font-weight: 500;
        }
        
        .content-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .card-header-custom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .card-title-custom {
            font-size: 20px;
            font-weight: 700;
            color: #333;
            margin: 0;
        }
        
        .btn-primary-custom {
            background: #169D53;
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-primary-custom:hover {
            background: #128a43;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(22, 157, 83, 0.3);
        }
        
        .btn-success-custom {
            background: #28a745;
            border: none;
            color: white;
            padding: 8px 16px;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .btn-danger-custom {
            background: #dc3545;
            border: none;
            color: white;
            padding: 8px 16px;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .btn-warning-custom {
            background: #ffc107;
            border: none;
            color: #000;
            padding: 8px 16px;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .badge-custom {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .badge-success {
            background: #d4edda;
            color: #155724;
        }
        
        .badge-warning {
            background: #fff3cd;
            color: #856404;
        }
        
        .badge-danger {
            background: #f8d7da;
            color: #721c24;
        }
        
        .badge-info {
            background: #d1ecf1;
            color: #0c5460;
        }
        
        .table-custom {
            margin: 0;
        }
        
        .table-custom thead {
            background: #f8f9fa;
        }
        
        .table-custom th {
            border: none;
            color: #6c757d;
            font-weight: 600;
            font-size: 13px;
            text-transform: uppercase;
            padding: 15px;
        }
        
        .table-custom td {
            padding: 15px;
            vertical-align: middle;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .action-buttons {
            display: flex;
            gap: 5px;
        }
        
        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s ease;
        }
        
        .action-btn:hover {
            transform: scale(1.1);
        }
        
        .modal-custom .modal-content {
            border-radius: 10px;
            border: none;
        }
        
        .modal-custom .modal-header {
            background: #169D53;
            color: white;
            border-radius: 10px 10px 0 0;
        }
        
        .modal-custom .modal-header .btn-close {
            filter: brightness(0) invert(1);
        }
        
        .form-control:focus {
            border-color: #169D53;
            box-shadow: 0 0 0 0.2rem rgba(22, 157, 83, 0.25);
        }
        
        /* ========================================
           RESPONSIVE DESIGN - ALL DEVICES
        ======================================== */
        
        /* Large Tablets & Small Desktops (992px - 1200px) */
        @media (max-width: 1200px) {
            .main-content {
                padding: 25px;
            }
            
            .stat-value {
                font-size: 28px;
            }
        }
        
        /* Tablets & iPad (768px - 991px) */
        @media (max-width: 991px) {
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            
            .page-title {
                font-size: 24px;
            }
            
            .stat-icon {
                width: 50px;
                height: 50px;
                font-size: 24px;
            }
            
            .stat-value {
                font-size: 26px;
            }
            
            .card-header-custom {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .card-header-custom .btn-primary-custom {
                width: 100%;
                text-align: center;
            }
            
            .table-custom {
                font-size: 13px;
            }
            
            .table-custom th,
            .table-custom td {
                padding: 10px 8px;
            }
        }
        
        /* Mobile Landscape & Small Tablets (576px - 767px) */
        @media (max-width: 767px) {
            .main-content {
                margin-left: 0;
                padding: 15px;
            }
            
            .page-header {
                padding: 15px 20px;
                margin-bottom: 20px;
            }
            
            .page-title {
                font-size: 20px;
            }
            
            .breadcrumb {
                font-size: 12px;
            }
            
            /* Stat Cards - 2 columns on mobile landscape */
            .row.g-4 {
                gap: 15px !important;
            }
            
            .stat-card {
                margin-bottom: 15px;
                padding: 20px;
            }
            
            .stat-icon {
                width: 45px;
                height: 45px;
                font-size: 22px;
                margin-bottom: 12px;
            }
            
            .stat-value {
                font-size: 24px;
                margin: 8px 0;
            }
            
            .stat-label {
                font-size: 13px;
            }
            
            /* Content Cards */
            .content-card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .card-title-custom {
                font-size: 18px;
            }
            
            /* Tables */
            .table-responsive {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .table-custom {
                font-size: 12px;
                min-width: 600px;
            }
            
            .table-custom th,
            .table-custom td {
                padding: 8px 6px;
                white-space: nowrap;
            }
            
            /* Buttons */
            .btn-primary-custom,
            .btn-success-custom,
            .btn-danger-custom,
            .btn-warning-custom {
                padding: 10px 16px;
                font-size: 13px;
                width: 100%;
                margin-bottom: 8px;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 5px;
            }
            
            .action-btn {
                width: 100%;
                justify-content: center;
            }
            
            /* Forms */
            .form-control,
            .form-select {
                font-size: 14px;
            }
            
            /* Modals */
            .modal-dialog {
                margin: 10px;
            }
            
            .modal-custom .modal-header {
                padding: 15px;
            }
            
            .modal-custom .modal-title {
                font-size: 18px;
            }
            
            .modal-body {
                padding: 15px;
            }
        }
        
        /* Mobile Portrait (320px - 575px) */
        @media (max-width: 575px) {
            .main-content {
                padding: 10px;
            }
            
            .page-header {
                padding: 12px 15px;
                margin-bottom: 15px;
            }
            
            .page-title {
                font-size: 18px;
            }
            
            .breadcrumb {
                font-size: 11px;
                margin-top: 5px;
            }
            
            /* Stat Cards - 1 column on mobile portrait */
            .stat-card {
                padding: 18px;
                margin-bottom: 12px;
            }
            
            .stat-icon {
                width: 40px;
                height: 40px;
                font-size: 20px;
                margin-bottom: 10px;
            }
            
            .stat-value {
                font-size: 22px;
                margin: 6px 0;
            }
            
            .stat-label {
                font-size: 12px;
            }
            
            /* Content Cards */
            .content-card {
                padding: 12px;
                margin-bottom: 12px;
                border-radius: 8px;
            }
            
            .card-header-custom {
                margin-bottom: 15px;
                padding-bottom: 12px;
            }
            
            .card-title-custom {
                font-size: 16px;
            }
            
            /* Tables */
            .table-custom {
                font-size: 11px;
                min-width: 500px;
            }
            
            .table-custom th,
            .table-custom td {
                padding: 6px 4px;
            }
            
            .badge-custom {
                padding: 4px 8px;
                font-size: 10px;
            }
            
            /* Buttons */
            .btn-primary-custom,
            .btn-success-custom,
            .btn-danger-custom,
            .btn-warning-custom {
                padding: 10px 12px;
                font-size: 12px;
            }
            
            .action-btn {
                padding: 6px 10px;
                font-size: 11px;
            }
            
            /* Forms */
            .form-label {
                font-size: 13px;
                margin-bottom: 6px;
            }
            
            .form-control,
            .form-select {
                font-size: 13px;
                padding: 8px 10px;
            }
            
            /* Modals */
            .modal-dialog {
                margin: 5px;
                max-width: calc(100% - 10px);
            }
            
            .modal-custom .modal-header {
                padding: 12px;
            }
            
            .modal-custom .modal-title {
                font-size: 16px;
            }
            
            .modal-body {
                padding: 12px;
            }
            
            .modal-footer {
                padding: 10px;
            }
            
            /* Filter Forms */
            .row.g-3 {
                gap: 10px !important;
            }
            
            .col-md-2,
            .col-md-3,
            .col-md-4 {
                width: 100%;
                margin-bottom: 10px;
            }
        }
        
        /* Extra Small Devices (< 375px) */
        @media (max-width: 374px) {
            .page-title {
                font-size: 16px;
            }
            
            .stat-value {
                font-size: 20px;
            }
            
            .stat-label {
                font-size: 11px;
            }
            
            .table-custom {
                font-size: 10px;
            }
            
            .btn-primary-custom,
            .btn-success-custom,
            .btn-danger-custom,
            .btn-warning-custom {
                font-size: 11px;
                padding: 8px 10px;
            }
        }
        
        /* Landscape Orientation Optimization */
        @media (max-height: 500px) and (orientation: landscape) {
            .stat-card {
                padding: 15px;
            }
            
            .stat-icon {
                width: 35px;
                height: 35px;
                font-size: 18px;
                margin-bottom: 8px;
            }
            
            .stat-value {
                font-size: 20px;
            }
            
            .content-card {
                padding: 15px;
            }
        }
        
        /* Touch Device Optimizations */
        @media (hover: none) and (pointer: coarse) {
            .btn-primary-custom,
            .btn-success-custom,
            .btn-danger-custom,
            .btn-warning-custom,
            .action-btn {
                min-height: 44px; /* iOS recommended touch target */
                min-width: 44px;
            }
            
            .form-control,
            .form-select {
                min-height: 44px;
                font-size: 16px; /* Prevents iOS zoom on input focus */
            }
            
            .menu-item {
                min-height: 48px;
                display: flex;
                align-items: center;
            }
        }
        
        /* Print Styles */
        @media print {
            .sidebar,
            .sidebar-toggle,
            .btn-primary-custom,
            .action-buttons {
                display: none !important;
            }
            
            .main-content {
                margin-left: 0 !important;
                padding: 0 !important;
            }
            
            .page-header {
                border-bottom: 2px solid #000;
            }
            
            .content-card {
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }
    </style>
</head>
<body>