:root { --primary-gradient: #202023; --sidebar-width: 250px; --transition-speed: 0.3s; --primary-color: #667eea; --danger-color: #dc3545; --success-color: #28a745; --warning-color: #ffc107; --info-color: #17a2b8; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f8f9fa; overflow-x: hidden; } /* Sidebar Styles */ .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-width); background: var(--primary-gradient); padding: 20px; color: white; overflow-y: auto; transition: all var(--transition-speed) ease; z-index: 1000; } .sidebar-brand { font-size: 1.5rem; font-weight: 700; margin-bottom: 30px; text-align: center; padding: 10px; color: white; letter-spacing: 1px; } .sidebar-menu { list-style: none; padding: 0; margin: 0; } .sidebar-menu li { margin-bottom: 5px; } .sidebar-menu a { color: rgba(255, 255, 255, 0.85); text-decoration: none; display: flex; align-items: center; padding: 12px 15px; border-radius: 8px; transition: all 0.3s ease; font-size: 0.95rem; } .sidebar-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; transform: translateX(5px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .sidebar-menu a.active { background: #667eea; color: #ffffff; font-weight: 600; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); } .sidebar-menu i { margin-right: 12px; font-size: 1.2rem; width: 24px; text-align: center; } /* Main Content */ .main-content { margin-left: var(--sidebar-width); padding: 30px; min-height: 100vh; transition: margin-left var(--transition-speed) ease; } /* Top Bar */ .top-bar { background: white; padding: 25px 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); display: flex; justify-content: space-between; align-items: center; animation: slideDown 0.4s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .top-bar h3 { margin: 0; font-size: 1.75rem; color: #2c3e50; } .top-bar p { margin: 5px 0 0 0; color: #6c757d; } /* Actions Bar */ .actions-bar { background: white; padding: 20px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; } .search-box { position: relative; flex: 1; max-width: 400px; } .search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #6c757d; } .search-box input { width: 100%; padding: 10px 15px 10px 45px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 0.95rem; transition: all 0.3s ease; } .search-box input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } /* Cards */ .card { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: none; overflow: hidden; } /* Tables */ .table-responsive { overflow-x: auto; } .table { margin: 0; } .table thead { background: #f8f9fa; } .table thead th { font-weight: 600; color: #2c3e50; border-bottom: 2px solid #e9ecef; padding: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; } .table tbody td { padding: 15px; vertical-align: middle; color: #495057; } .table tbody tr { transition: background-color 0.2s ease; } .table tbody tr:hover { background-color: #f8f9fa; } /* Buttons */ .btn { padding: 10px 20px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .btn-primary { background: var(--primary-gradient); border: none; color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .btn-secondary { background: #6c757d; border: none; color: white; } .btn-success { background: var(--success-color); border: none; color: white; } .btn-danger { background: var(--danger-color); border: none; color: white; } .btn-warning { background: var(--warning-color); border: none; color: #212529; } .btn-info { background: var(--info-color); border: none; color: white; } .btn-logout { background: #dc3545; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .btn-logout:hover { background: #c82333; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); } .btn-sm { padding: 6px 12px; font-size: 0.875rem; } /* Badges */ .badge { padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 0.75rem; } .badge-success { background: #d4edda; color: #155724; } .badge-danger { background: #f8d7da; color: #721c24; } .badge-warning { background: #fff3cd; color: #856404; } .badge-info { background: #d1ecf1; color: #0c5460; } /* Loading Animation */ .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(102, 126, 234, 0.3); border-radius: 50%; border-top-color: #667eea; animation: spin 0.8s linear infinite; margin-right: 10px; } @keyframes spin { to { transform: rotate(360deg); } } /* Form Controls */ .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); } .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); } /* Modal Enhancements */ .modal-content { border-radius: 12px; border: none; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); } .modal-header { background: var(--primary-gradient); color: white; border-radius: 12px 12px 0 0; padding: 20px 25px; } .modal-header .btn-close { filter: brightness(0) invert(1); } .modal-body { padding: 25px; } .modal-footer { padding: 20px 25px; border-top: 1px solid #e9ecef; } /* Responsive Design */ /* Mobile First - Base Styles */ @media (max-width: 768px) { :root { --sidebar-width: 0px; } .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); } .sidebar.active { transform: translateX(0); } /* Backdrop for mobile menu */ .sidebar.active::before { content: ''; position: fixed; top: 0; left: 280px; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: -1; } .main-content { margin-left: 0; padding: 15px; } /* Mobile Menu Toggle Button */ .mobile-menu-toggle { display: block; position: fixed; top: 15px; left: 15px; z-index: 1001; background: var(--primary-gradient); color: white; border: none; border-radius: 8px; width: 44px; height: 44px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .mobile-menu-toggle:focus-visible { outline: 2px solid white; outline-offset: 2px; } .top-bar { flex-direction: column; gap: 15px; margin-top: 50px; padding: 15px; } .top-bar h1 { font-size: 1.5rem; } .actions-bar { flex-direction: column; align-items: stretch; gap: 10px; } .search-box { max-width: 100%; } /* Table Responsive */ .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; } table { min-width: 600px; } /* Cards Stack on Mobile */ .stats-grid { grid-template-columns: 1fr !important; } /* Modal Adjustments */ .modal-dialog { margin: 10px; } .modal-content { max-height: calc(100vh - 20px); overflow-y: auto; } /* Form Elements Full Width */ .form-control, .btn { font-size: 16px; /* Prevent iOS zoom */ } /* Hide certain columns on mobile */ .hide-mobile { display: none !important; } } /* Tablet Styles */ @media (min-width: 769px) and (max-width: 1024px) { :root { --sidebar-width: 220px; } .sidebar { width: 220px; padding: 15px; } .sidebar-brand { font-size: 1.3rem; } .sidebar-menu a { padding: 10px 12px; font-size: 0.9rem; } .main-content { padding: 20px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .mobile-menu-toggle { display: none; } } /* Desktop Styles */ @media (min-width: 1025px) { .mobile-menu-toggle { display: none; } .sidebar { width: var(--sidebar-width); } /* Larger cards grid */ .stats-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } } /* Large Desktop */ @media (min-width: 1400px) { :root { --sidebar-width: 280px; } .container-large { max-width: 1320px; } } /* Utility Classes */ .text-center { text-align: center; } .mt-3 { margin-top: 1rem; } .mb-3 { margin-bottom: 1rem; } .p-3 { padding: 1rem; } /* Section Headings */ .section-heading { font-size: 1.5rem; font-weight: 700; color: #2c3e50; margin: 40px 0 20px; display: flex; align-items: center; gap: 10px; } .section-heading::after { content: ""; flex: 1; height: 2px; background: linear-gradient(to right, #667eea, transparent); } /* Product Image Variants Styling */ .image-variant-item { transition: all 0.2s ease; } .image-variant-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } #imageVariantsContainer .form-control-sm { font-size: 0.875rem; } #imageVariantsContainer .form-label.small { font-size: 0.8rem; font-weight: 600; color: #495057; margin-bottom: 0.25rem; } #productDescriptionEditor { background: white; } #productDescriptionEditor .ql-editor { min-height: 200px; } /* Image Picker Grid for Color Variants */ .image-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; padding: 15px; background: white; border: 2px dashed #dee2e6; border-radius: 8px; margin-top: 5px; } .image-picker-item { position: relative; cursor: pointer; border: 3px solid transparent; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; background: #f8f9fa; aspect-ratio: 1; display: flex; flex-direction: column; } .image-picker-item:hover { border-color: #667eea; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); } .image-picker-item.selected { border-color: #28a745; background: #e8f5e9; } .image-picker-item img { width: 100%; height: calc(100% - 25px); object-fit: cover; display: block; } .image-picker-overlay { position: absolute; top: 5px; right: 5px; background: rgba(40, 167, 69, 0.95); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; font-size: 16px; } .image-picker-item.selected .image-picker-overlay { opacity: 1; } .image-picker-label { display: block; padding: 4px 6px; text-align: center; font-size: 11px; background: #f8f9fa; border-top: 1px solid #dee2e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #495057; height: 25px; line-height: 17px; } .image-picker-item.selected .image-picker-label { background: #e8f5e9; color: #28a745; font-weight: 600; } /* Responsive adjustments for image picker */ @media (max-width: 768px) { .image-picker-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; padding: 10px; } } @media (max-width: 480px) { .image-picker-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; } .image-picker-label { font-size: 10px; padding: 3px 4px; } } /* Toast Notifications */ .toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; } .toast { display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 500px; padding: 16px 20px; background: white; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15); pointer-events: auto; transform: translateX(400px); opacity: 0; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); font-weight: 500; } .toast-show { transform: translateX(0); opacity: 1; } .toast-hide { transform: translateX(400px); opacity: 0; } .toast-icon { font-size: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: bold; } .toast-message { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.4; color: #1a1a1a; } .toast-close { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.2s ease; flex-shrink: 0; } .toast-close:hover { background: rgba(0, 0, 0, 0.05); color: #666; } /* Toast Types */ .toast-success { border-left: 5px solid #10b981; background: linear-gradient(to right, #ecfdf5 0%, #ffffff 100%); } .toast-success .toast-icon { color: #10b981; } .toast-error { border-left: 5px solid #ef4444; background: linear-gradient(to right, #fef2f2 0%, #ffffff 100%); } .toast-error .toast-icon { color: #ef4444; } .toast-warning { border-left: 5px solid #f59e0b; background: linear-gradient(to right, #fffbeb 0%, #ffffff 100%); } .toast-warning .toast-icon { color: #f59e0b; } .toast-info { border-left: 5px solid #3b82f6; background: linear-gradient(to right, #eff6ff 0%, #ffffff 100%); } .toast-info .toast-icon { color: #3b82f6; } /* Responsive Toast */ @media (max-width: 768px) { .toast-container { top: 10px; right: 10px; left: 10px; } .toast { min-width: auto; max-width: none; } } /* Dark Mode Styles */ body.dark-mode { background-color: #1a1a1a; color: #f0f0f0; } body.dark-mode .main-content { background-color: #1a1a1a; } body.dark-mode .top-bar { background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%); color: #f0f0f0; } body.dark-mode .settings-section, body.dark-mode .modal-content { background: #2d3748; color: #f0f0f0; border-color: #4a5568; } body.dark-mode .settings-section h4 { color: #ffffff; border-bottom-color: #4a5568; font-weight: 600; } body.dark-mode .form-control, body.dark-mode .form-select { background-color: #1f2937; color: #ffffff; border-color: #4a5568; } body.dark-mode .form-control:focus, body.dark-mode .form-select:focus { background-color: #374151; border-color: #667eea; color: #ffffff; box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); } body.dark-mode .form-control::placeholder { color: #9ca3af; opacity: 1; } body.dark-mode label { color: #e5e7eb; font-weight: 500; } body.dark-mode .btn-outline-secondary { background-color: #374151; color: #e0e0e0; border-color: #4a5568; } body.dark-mode .btn-outline-secondary:hover { background-color: #4a5568; border-color: #667eea; } body.dark-mode .logo-preview, body.dark-mode .favicon-preview { background: #374151; border-color: #4a5568; } body.dark-mode .theme-option { background: #374151; border-color: #4a5568; color: #e0e0e0; } body.dark-mode .theme-option:hover { border-color: #667eea; background: #4a5568; } body.dark-mode .theme-option.active { border-color: #667eea; background: linear-gradient(135deg, #667eea22 0%, #764ba233 100%); } body.dark-mode .text-muted { color: #9ca3af !important; } body.dark-mode .modal-header { background: #2d3748; border-bottom-color: #4a5568; } body.dark-mode .modal-footer { background: #2d3748; border-top-color: #4a5568; } body.dark-mode .media-item { background: #374151; } body.dark-mode .media-item:hover { background: #4a5568; } body.dark-mode .toast { background: #2d3748; color: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); } body.dark-mode .toast-success { background: linear-gradient(to right, #064e3b 0%, #2d3748 100%); } body.dark-mode .toast-error { background: linear-gradient(to right, #7f1d1d 0%, #2d3748 100%); } body.dark-mode .toast-warning { background: linear-gradient(to right, #78350f 0%, #2d3748 100%); } body.dark-mode .toast-info { background: linear-gradient(to right, #1e3a8a 0%, #2d3748 100%); } body.dark-mode .toast-message { color: #ffffff; font-weight: 600; } body.dark-mode .btn-close { filter: invert(1); opacity: 0.8; } body.dark-mode .btn-close:hover { opacity: 1; } body.dark-mode .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; color: #ffffff; } body.dark-mode .btn-primary:hover { background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } body.dark-mode .card { background: #2d3748; border-color: #4a5568; } body.dark-mode .card-body { color: #f0f0f0; } body.dark-mode .table { color: #f0f0f0; } body.dark-mode .table thead th { background: #374151; color: #ffffff; border-color: #4a5568; } body.dark-mode .table tbody td { border-color: #4a5568; } body.dark-mode .table tbody tr:hover { background: #374151; } body.dark-mode select option { background: #1f2937; color: #ffffff; } body.dark-mode .input-group-text { background: #374151; color: #f0f0f0; border-color: #4a5568; } body.dark-mode .dropdown-menu { background: #2d3748; border-color: #4a5568; } body.dark-mode .dropdown-item { color: #f0f0f0; } body.dark-mode .dropdown-item:hover { background: #374151; color: #ffffff; } body.dark-mode hr { border-color: #4a5568; opacity: 1; } body.dark-mode .card-body { color: #f0f0f0; }