/* ==================== ENHANCED ADMIN PANEL STYLING ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #2D3436;
}

.admin-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar - Enhanced */
.sidebar {
    background: linear-gradient(180deg, #2D3436 0%, #1a1a1a 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.logo-section {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 159, 67, 0.25);
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo-section h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FF9F43;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.logo-section i {
    font-size: 28px;
}

.nav-menu {
    list-style: none;
    padding: 0 10px;
}

.nav-menu ul {
    list-style: none;
    padding-bottom: 120px;
}

.nav-menu li {
    margin: 5px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #dfe6e9;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid transparent;
    margin: 3px 10px;
    width: calc(100% - 20px);
}

.nav-link:hover {
    background-color: rgba(255, 159, 67, 0.15);
    color: #FF9F43;
    border-left-color: #FF9F43;
    padding-left: 20px;
    box-shadow: inset 0 0 10px rgba(255, 159, 67, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.25) 0%, rgba(255, 159, 67, 0.1) 100%);
    color: #FF9F43;
    border-left-color: #FF9F43;
    font-weight: 700;
    box-shadow: inset 0 0 10px rgba(255, 159, 67, 0.15);
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    position: fixed;
    bottom: 20px;
    left: 10px;
    right: 10px;
    width: calc(280px - 20px);
    z-index: 101;
    padding: 10px 0;
}

.logout-btn {
    width: calc(100% - 20px);
    padding: 13px 18px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(231, 76, 60, 0.1) 100%);
    color: #e74c3c;
    border: 1.5px solid #e74c3c;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 280px);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f5f6fa;
    flex: 1;
}

.admin-header {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h1 {
    font-size: 32px;
    color: #2D3436;
    font-weight: 700;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info span {
    font-weight: 700;
    color: #2D3436;
    font-size: 14px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #FF9F43;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
}

.avatar:hover {
    transform: scale(1.1);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.content-area::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dashboard Grid - Enhanced Premium */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
    padding: 0;
    width: 100%;
}

.stat-card {
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #f5f5f5;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 180px;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 159, 67, 0.5) 50%, transparent 100%);
    border-radius: 0 0 18px 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-12px);
    border-color: #FF9F43;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, #FF9F43 0%, #ff7f00 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #1dd1a1 0%, #00b894 100%);
    box-shadow: 0 12px 30px rgba(29, 209, 161, 0.3);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #0984e3 0%, #0770d3 100%);
    box-shadow: 0 12px 30px rgba(9, 132, 227, 0.3);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #a29bfe 0%, #8e7cef 100%);
    box-shadow: 0 12px 30px rgba(162, 155, 254, 0.3);
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.stat-content h3 {
    color: #8b9dc3;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
    min-height: 20px;
}

.stat-value {
    color: #1a1a1a;
    font-size: 56px;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    display: block;
    min-height: 62px;
    background: linear-gradient(135deg, #2D3436 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: 12px;
    color: #27ae60;
    margin-top: 10px;
    font-weight: 700;
}

.stat-change.negative {
    color: #e74c3c;
}

/* Recent Activity Section - Premium */
.recent-activity {
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #f5f5f5;
}

.recent-activity h2 {
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recent-activity h2::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, #FF9F43 0%, #ff7f00 100%);
    border-radius: 3px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding: 20px 0;
    width: 100%;
}

.product-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #f5f5f5;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9F43, #00b894, #0984e3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-item:hover {
    transform: translateY(-14px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.16);
    border-color: #FF9F43;
}

.product-item:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-item:hover .product-image img {
    transform: scale(1.08);
}

.product-details {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h4 {
    color: #1a1a1a;
    font-size: 17px;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.product-details p {
    color: #7a8fa3;
    font-size: 13px;
    margin: 6px 0;
    font-weight: 500;
}

.product-price {
    color: #FF9F43;
    font-weight: 900;
    font-size: 22px;
    margin-top: 16px;
    font-family: 'Courier New', monospace;
}

.product-stock {
    color: #1dd1a1;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

.product-stock.low {
    color: #f39c12;
}

.product-stock.out {
    color: #e74c3c;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.product-card-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2D3436;
}

.product-card-price {
    font-size: 14px;
    color: #FF9F43;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-small {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Section Header - Enhanced */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #2D3436;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.section-header h2::before {
    content: '';
    width: 5px;
    height: 32px;
    background: linear-gradient(135deg, #FF9F43 0%, #ff7f00 100%);
    border-radius: 3px;
}

.section-header .btn {
    margin: 0;
    white-space: nowrap;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

/* Tables - Enhanced */
.table-container {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    display: table;
}

th {
    background: linear-gradient(135deg, #2D3436 0%, #1a1a1a 100%);
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

td {
    padding: 16px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #636e72;
    font-size: 14px;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Forms - Enhanced */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2D3436;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF9F43;
    box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.1);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* Fieldsets */
fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

legend {
    padding: 0 10px;
    font-weight: 600;
    color: #2D3436;
    margin-left: -5px;
}

legend i {
    margin-right: 8px;
    color: #FF9F43;
}

/* Buttons - Enhanced */
.btn {
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF9F43 0%, #ff7f00 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 159, 67, 0.4);
}

.btn-secondary {
    background: white;
    color: #FF9F43;
    border: 2px solid #FF9F43;
}

.btn-secondary:hover {
    background: #fff9f0;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
}

.btn-block {
    width: 100%;
}

/* Image Upload Zones */
.image-drop-zone {
    border: 2px dashed #FF9F43;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff9f0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-drop-zone:hover {
    background-color: #ffe8cc;
    border-color: #ff7f00;
}

.image-drop-zone i {
    font-size: 40px;
    color: #FF9F43;
    margin-bottom: 10px;
}

.image-drop-zone p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 10px;
}

/* Modals - Enhanced */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 14px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    color: #2D3436;
    font-size: 24px;
    font-weight: 700;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #FF9F43;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    display: none;
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
}

.toast.show {
    display: block;
}

.toast.success {
    background-color: #27ae60;
}

.toast.error {
    background-color: #e74c3c;
}

.toast.warning {
    background-color: #f39c12;
}

.toast.info {
    background-color: #3498db;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Spinner */
.spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner-content {
    text-align: center;
    color: white;
}

.spinner-content i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

/* Status Badges - Enhanced */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.15) 0%, rgba(0, 184, 148, 0.08) 100%);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(231, 76, 60, 0.08) 100%);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(243, 156, 18, 0.08) 100%);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.08) 100%);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Filters */
.filter-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-bar input::placeholder {
    color: #999;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .admin-container {
        flex-direction: row;
    }

    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .stat-card {
        padding: 30px 20px;
        min-height: 160px;
    }

    .stat-icon {
        width: 90px;
        height: 90px;
        min-width: 90px;
        font-size: 42px;
    }

    .stat-value {
        font-size: 42px;
        min-height: 48px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .section {
        padding: 25px;
    }

    table.data-table {
        font-size: 13px;
    }

    th, td {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        width: 250px;
        transition: left 0.3s;
        z-index: 200;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .stat-card {
        padding: 25px 15px;
        min-height: 150px;
        flex-direction: column;
    }

    .stat-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        font-size: 36px;
    }

    .stat-value {
        font-size: 36px;
        min-height: 42px;
    }

    .stat-content h3 {
        font-size: 11px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .section {
        padding: 20px;
        min-height: auto;
        display: none !important;
    }

    .section.active {
        display: block !important;
    }

    .content-area {
        padding: 15px;
    }

    .admin-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
    }

    .table-container {
        overflow-x: auto;
        box-sizing: border-box;
    }

    table.data-table {
        font-size: 13px;
        width: 100%;
    }

    th, td {
        padding: 10px 8px;
    }

    .filter-controls {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-select,
    .filter-input {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 10px;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 15px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    table {
        font-size: 12px;
        width: 100%;
    }

    th, td {
        padding: 8px 6px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Blog Section Responsive */
    .blog-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .image-upload-container {
        flex-direction: column;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-card {
        flex-direction: column;
    }
}

/* ==================== BLOG SECTION STYLING ==================== */

.blog-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3436;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF9F43;
    box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.1);
    background-color: #fffaf5;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Image Upload */
.image-upload-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-upload-container input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    border: 3px dashed #FF9F43;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.05) 0%, rgba(255, 159, 67, 0.02) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #FF9F43;
}

.upload-label:hover {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.15) 0%, rgba(255, 159, 67, 0.08) 100%);
    border-color: #ff8c00;
    transform: scale(1.01);
}

.upload-label i {
    font-size: 32px;
    margin-bottom: 10px;
}

.upload-label span {
    text-align: center;
}

.image-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 59, 48, 0.9);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.remove-image-btn:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.form-actions .btn {
    flex: 1;
}

.form-container {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blogs Grid/List */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f6fa 0%, #e0e0e0 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Date Badge (Orange, top-right) */
.blog-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF9F43;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
    z-index: 2;
}

/* Category Badge (bottom-left) */
.blog-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(45, 52, 54, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.blog-card-footer .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more {
    background: linear-gradient(135deg, #FF9F43 0%, #ff8c00 100%);
    color: white;
}

.btn-read-more:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
}

.btn-edit-blog,
.btn-delete-blog {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-edit-blog {
    background: #3498db;
    color: white;
}

.btn-edit-blog:hover {
    background: #2980b9;
}

.btn-delete-blog {
    background: #e74c3c;
    color: white;
}

.btn-delete-blog:hover {
    background: #c0392b;
}

/* Loading State */
.blog-loading {
    text-align: center;
    padding: 40px;
    color: #636e72;
}

.blog-loading i {
    font-size: 32px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ==================== PROJECTS GRID STYLING ==================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card-header {
    height: 180px;
    background: linear-gradient(135deg, #5F7FFF 0%, #7F5FFF 100%);
    position: relative;
    overflow: hidden;
}

.project-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-header img {
    transform: scale(1.05);
}

.project-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #FF9F43;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-card-description {
    font-size: 14px;
    color: #636e72;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #636e72;
}

.project-meta-item i {
    color: #FF9F43;
    font-size: 14px;
}

.project-card-footer {
    display: flex;
    gap: 10px;
}

.project-card-footer button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-edit-btn {
    background-color: #FF9F43;
    color: white;
}

.project-edit-btn:hover {
    background-color: #e68a2f;
}

.project-delete-btn {
    background-color: #ff6b6b;
    color: white;
}

.project-delete-btn:hover {
    background-color: #e05555;
}

.project-featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* Projects Upload Area */
#project-drop-zone {
    border: 2px dashed #FF9F43;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

#project-drop-zone:hover {
    background-color: #FFF8F0;
    border-color: #e68a2f;
}

#project-drop-zone.dragover {
    background-color: #FFF0E6;
    border-color: #e68a2f;
    transform: scale(1.02);
}

#project-drop-zone i {
    font-size: 32px;
    color: #FF9F43;
    margin-bottom: 10px;
}

#project-drop-zone p {
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #2D3436;
}

#project-drop-zone small {
    color: #636e72;
    font-size: 12px;
}

/* Responsive Projects Grid */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .project-card-header {
        height: 150px;
    }

    .project-card-content {
        padding: 15px;
    }

    .project-card-title {
        font-size: 16px;
    }

    .project-card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-header {
        height: 180px;
    }

    .project-card-footer {
        flex-direction: column;
    }

    .project-card-footer button {
        width: 100%;
    }
}
/* ==================== NEW BLOGS MANAGEMENT SECTION ==================== */
.blogs-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.admin-blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    object-fit: cover;
}

.admin-blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.admin-blog-card-category {
    display: inline-block;
    background: #667eea;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-blog-card-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.admin-blog-card-status.published {
    background: #4caf50;
    color: white;
}

.admin-blog-card-status.draft {
    background: #ff9800;
    color: white;
}

.admin-blog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D3436;
    margin-bottom: 8px;
    line-height: 1.4;
}

.admin-blog-card-excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.admin-blog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-blog-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.admin-blog-card-actions button {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

.btn-view {
    background: #4caf50;
    color: white;
}

.btn-view:hover {
    background: #45a049;
}

@media (max-width: 768px) {
    .blogs-grid-admin {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .admin-blog-card-title {
        font-size: 15px;
    }

    .admin-blog-card-excerpt {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .blogs-grid-admin {
        grid-template-columns: 1fr;
    }

    .admin-blog-card-image {
        height: 180px;
    }

    .admin-blog-card-actions {
        flex-direction: column;
    }

    .admin-blog-card-actions button {
        width: 100%;
    }
}

/* ==================== CLIENTS MANAGEMENT STYLING ==================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.client-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.client-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.client-logo-container {
    width: 120px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.client-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.client-order {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.client-status {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.client-status.active {
    background: #d4edda;
    color: #155724;
}

.client-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.client-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.client-actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-actions .btn-edit {
    background: #3498db;
    color: white;
}

.client-actions .btn-edit:hover {
    background: #2980b9;
}

.client-actions .btn-delete {
    background: #e74c3c;
    color: white;
}

.client-actions .btn-delete:hover {
    background: #c0392b;
}

.client-actions .btn-toggle {
    background: #9b59b6;
    color: white;
}

.client-actions .btn-toggle:hover {
    background: #8e44ad;
}

/* Responsive design for clients */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ORDER MANAGEMENT REDESIGN STYLES ==================== */

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    white-space: nowrap;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
    border-left: 3px solid #0d6efd;
}

.status-shipped {
    background: #e2e3e5;
    color: #41464b;
    border-left: 3px solid #6c757d;
}

.status-delivered {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 3px solid #198754;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
    border-left: 3px solid #dc3545;
}

.status-verified {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.status-complete {
    background: #d5f4e6;
    color: #1a5c3a;
    border-left: 3px solid #27ae60;
}

/* Review Status Styles */
.status-pending {
    background: #fff3cd !important;
    color: #856404 !important;
    border-left: 3px solid #ffc107 !important;
}

.status-approved {
    background: #d1e7dd !important;
    color: #0f5132 !important;
    border-left: 3px solid #198754 !important;
}

.status-rejected {
    background: #f8d7da !important;
    color: #842029 !important;
    border-left: 3px solid #dc3545 !important;
}

/* Review Modal Specific Styles */
#review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#review-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-in;
}

#review-modal .modal-content {
    background: white;
    padding: 35px;
    border-radius: 14px;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

#review-modal .modal-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

#review-modal .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Review Management Table Styling */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn.btn-small.btn-info {
    background: #0d6efd;
    color: white;
}

.btn.btn-small.btn-info:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn.btn-small.btn-success {
    background: #198754;
    color: white;
}

.btn.btn-small.btn-success:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn.btn-small.btn-danger {
    background: #dc3545;
    color: white;
}

.btn.btn-small.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Order Management Tabs */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.section-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Box Styling */
.info-box {
    background: #d5f4e6;
    border-left: 4px solid #27ae60;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #27ae60;
    font-weight: 500;
}

.info-box i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Completed Orders Table Styling */
#completed-orders-tbody tr {
    opacity: 0.9;
    background: #f9f9f9;
}

#completed-orders-tbody tr:hover {
    background: #f0f8f5;
}

/* Responsive adjustments for order management */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header > div {
        width: 100%;
    }
    
    .section-header select {
        width: 100%;
    }
}
