* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7fa;
}

/* Admin Dashboard CSS */
/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #1a202c;
    color: #ffffff;
    padding: 20px 0;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #2d3748;
}

.sidebar-header h2 {
    font-size: 24px;
    color: #ffffff;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu a i {
    margin-right: 10px;
}

.sidebar-menu a:hover {
    background-color: #2d3748;
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
}

/* Admin Header */
.admin-header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.admin-header h1 {
    font-size: 28px;
    color: #2d3748;
}

/* Content */
.content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Upload Form */
.upload-form {
    max-width: 600px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* Product Table */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-table th,
.product-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.product-table th {
    background-color: #4a90e2;
    color: #ffffff;
    font-weight: 600;
}

.product-table td {
    color: #2d3748;
}

.product-table img {
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #4a90e2;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-danger {
    background-color: #e53e3e;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .product-table th,
    .product-table td {
        padding: 8px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .product-table {
        font-size: 12px;
    }

    .product-table th,
    .product-table td {
        padding: 6px;
    }
}

/* Admin login CSS */
.login-container {
    min-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #2d3748;
}



.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-form .form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Edit Product Page */
.edit-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

.edit-container h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edit-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edit-container label {
    color: #34495e;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.edit-container input[type="text"],
.edit-container input[type="number"],
.edit-container textarea,
.edit-container select,
.edit-container input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.edit-container input[type="text"]:focus,
.edit-container input[type="number"]:focus,
.edit-container textarea:focus,
.edit-container select:focus,
.edit-container input[type="file"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
    outline: none;
}

.edit-container textarea {
    resize: vertical;
    min-height: 100px;
}

.image-preview {
    margin: 10px 0;
    text-align: center;
}

.image-preview img {
    border-radius: 10px;
    border: 2px solid #ecf0f1;
    padding: 5px;
    background: #fff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3498db;
}

.edit-container button[type="submit"] {
    background: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.edit-container button[type="submit"]:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Manage Categories */
.manage-categories table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.manage-categories th,
.manage-categories td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.manage-categories th {
    background-color: #4a90e2;
    color: #ffffff;
    font-weight: 600;
}

.manage-categories td {
    color: #2d3748;
}

/* Premium Upload Section */
.premium-upload {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

.premium-upload h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

  /* Premium Look CSS */
  body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.edit-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    color: #34495e;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="number"],
textarea,
select,
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
input[type="file"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.image-preview {
    margin: 10px 0;
    text-align: center;
}

.image-preview img {
    border-radius: 10px;
    border: 2px solid #ecf0f1;
    padding: 5px;
    background: #fff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3498db;
}

button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

a.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

a.back-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Category Management Styles */
.category-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.category-table th, 
.category-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.category-table th {
    background-color: #4a90e2;
    color: #ffffff;
    font-weight: 600;
}

.category-table td {
    color: #2d3748;
}

.btn-edit {
    background-color: #38a169;
    color: white;
    padding: 8px 12px;
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #2f855a;
}


/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-link {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: #2d3748;
    text-align: center;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #4a90e2;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #c6f6d5;
    color: #22543d;
}

.alert-danger {
    background-color: #fed7d7;
    color: #9b2c2c;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-edit {
    background-color: #38a169;
    color: white;
}

.btn-edit:hover {
    background-color: #2f855a;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}


/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
    border: 1px solid #4a90e2;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #718096;
    color: white;
    border: 1px solid #718096;
}

.btn-secondary:hover {
    background-color: #5a6b82;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Card Count */
.card-count {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #4a90e2;
}

/* Add Product Button */
.btn-add-product {
    background-color: #38a169;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-add-product:hover {
    background-color: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-add-product i {
    font-size: 18px;
}

/* Add Product Form */
.add-product-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.add-product-form h2 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.file-upload {
    position: relative;
    margin-top: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #4a90e2;
    background-color: #f8fafc;
}

.file-upload-label i {
    font-size: 24px;
    color: #4a90e2;
    margin-right: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Featured checkbox */
.featured-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a90e2;
}

/* Product Management Table */
.product-management {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.product-title {
    font-size: 24px;
    color: #2d3748;
    margin: 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.product-table th {
    background-color: #4a90e2;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.product-table td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.product-table tr:hover {
    background-color: #f8fafc;
}

.product-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-active {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-inactive {
    background-color: #fed7d7;
    color: #9b2c2c;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 15px;
    width: 300px;
    max-width: 100%;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

.search-bar button {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
}

.pagination a {
    color: #4a5568;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.pagination .active {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

/* Responsive Table */
@media (max-width: 768px) {
    .product-table {
        display: block;
        overflow-x: auto;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-bar {
        width: 100%;
    }
}

/* Add to admin-style.css */
@media (max-width: 768px) {
    .product-table {
        display: block;
        width: 100%;
    }

    .product-table thead {
        display: none; /* Hide headers on mobile */
    }

    .product-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px;
    }

    .product-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .product-table td:last-child {
        border-bottom: none;
    }

    .product-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a5568;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .search-bar {
        width: 100%;
        margin-top: 10px;
    }

    .product-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .product-actions .btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .product-table td .text-muted {
        display: none;
    }
}


