/* Professional CSS Design for Million Hair by Star */
/* Elegant, Clean, and Professional Look */

:root {
    /* Primary Colors - Professional Pink & Gold */
    --primary-pink: #e91e63;
    --primary-pink-light: #f8bbd0;
    --primary-pink-dark: #c2185b;
    --primary-gold: #ffd700;
    --primary-gold-light: #fff9c4;
    --primary-gold-dark: #ffab00;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --text-dark: #212121;
    --text-light: #424242;
    
    /* Accent Colors */
    --accent-blue: #2196f3;
    --accent-green: #4caf50;
    --accent-orange: #ff9800;
    --accent-red: #f44336;
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.16);
    
    /* Gradients */
    --gradient-pink-gold: linear-gradient(135deg, var(--primary-pink), var(--primary-gold));
    --gradient-light: linear-gradient(135deg, var(--white), var(--light-gray));
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Professional Header */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-pink-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.logo h1 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-dark);
}

.logo .by-star {
    color: var(--primary-pink);
    font-weight: 500;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-pink);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-pink-gold);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .admin-btn {
    background: var(--gradient-pink-gold);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    font-weight: 600;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.nav-links .admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-links .admin-btn::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 35px;
    max-width: 500px;
}

/* Buttons - Professional Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 160px;
    text-align: center;
}

.btn-gold {
    background: var(--primary-gold);
    color: var(--text-dark);
    border-color: var(--primary-gold);
}

.btn-gold:hover {
    background: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-pink {
    background: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
}

.btn-pink:hover {
    background: var(--primary-pink-dark);
    border-color: var(--primary-pink-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: var(--white);
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-pink-gold);
    margin: 20px auto;
    border-radius: 2px;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.category-filter {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 2px solid var(--medium-gray);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.category-filter:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    transform: translateY(-2px);
}

.category-filter.active {
    background: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
}

.product-count {
    background: var(--white);
    color: var(--primary-pink);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.category-filter.active .product-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid var(--medium-gray);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-pink-light);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-pink-gold);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 60px;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
    flex-wrap: wrap;
    gap: 10px;
}

.product-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.product-details i {
    color: var(--primary-gold);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.btn-order {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-order:hover {
    background: var(--primary-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* Order Form Section */
.order-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.order-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    max-width: 1000px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-gold);
    width: 18px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background-color: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background: var(--gradient-pink-gold);
    color: var(--white);
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.btn-submit i {
    font-size: 1.2rem;
}

.form-note {
    margin-top: 15px;
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-pink-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform var(--transition-normal);
}

.feature-icon.gold {
    background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
    color: var(--primary-gold-dark);
}

.feature-icon.pink {
    background: linear-gradient(135deg, var(--primary-pink-light), var(--primary-pink));
    color: var(--primary-pink-dark);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 40px;
}

.contact-info,
.hours {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.contact-info h3,
.hours h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-pink-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-gold);
    margin-top: 5px;
    min-width: 24px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-gold));
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: var(--shadow-medium);
}

.hours ul {
    list-style: none;
}

.hours li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-light);
}

.hours li:last-child {
    border-bottom: none;
}

.hours li span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.footer-logo span {
    color: var(--primary-gold);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--gradient-pink-gold);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =========================================== */
/* MODAL STYLES - UPDATED WITH SCROLL FUNCTIONALITY */
/* =========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-lg {
    max-width: 800px;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 140px); /* Account for header and footer */
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex-shrink: 0;
}

/* Delete Modal Specific Styles */
.delete-info {
    margin: 20px 0;
    padding: 15px;
    background: #fff8f8;
    border-radius: 8px;
    border: 1px solid #ffcccc;
    max-height: 200px;
    overflow-y: auto;
}

.delete-info::-webkit-scrollbar {
    width: 6px;
}

.delete-details {
    color: #2c3e50;
}

.delete-details p {
    margin: 8px 0;
    font-size: 14px;
}

.delete-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 20px;
}

.delete-warning i {
    color: #f39c12;
}

/* Reorder Modal Specific Styles */
.reorder-instructions {
    padding: 15px;
    background: #e8f4fc;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 14px;
    flex-shrink: 0;
}

.reorder-instructions i {
    color: #3498db;
    margin-right: 8px;
}

/* Nestable Container with Scroll */
#nestable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

#nestable::-webkit-scrollbar {
    width: 8px;
}

#nestable::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

#nestable::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 4px;
}

#nestable::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

/* Long Form Content Handling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-preview {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.form-preview h4 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 14px;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding-bottom: 5px;
}

.preview-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.preview-card strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.preview-card small {
    color: #7f8c8d;
    font-size: 12px;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        max-height: 85vh;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(85vh - 130px);
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #nestable {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 80vh;
    }
    
    .modal-body {
        max-height: calc(80vh - 120px);
        padding: 15px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .reorder-instructions {
        padding: 12px;
        font-size: 13px;
    }
    
    #nestable {
        max-height: 250px;
    }
}

/* Fix for modal content that's too tall */
.modal-content.scrollable {
    max-height: 95vh;
}

.modal-content.scrollable .modal-body {
    max-height: calc(95vh - 140px);
}

/* Animation for modal scroll appearance */
@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Smooth scrolling for the entire modal */
.modal-content {
    scroll-behavior: smooth;
}

/* Ensure form elements don't overflow */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    max-width: 100%;
    box-sizing: border-box;
}

/* For very long category descriptions in modals */
textarea#description {
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
}

/* Nestable items styling for better scroll experience */
.dd-item {
    margin-bottom: 8px;
}

.dd-handle {
    padding: 15px 20px;
    margin: 5px 0;
    transition: all 0.2s ease;
}

.dd-handle:hover {
    transform: translateX(2px);
}

/* Prevent modal content from being too wide on large screens */
@media (min-width: 1200px) {
    .modal-content {
        max-width: 700px;
    }
    
    .modal-lg {
        max-width: 900px;
    }
}

/* Admin Panel Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-gray);
}

.sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    max-width: calc(100% - 260px);
}

.admin-header {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Order Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Order Table Styles */
.orders-table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.orders-table th {
    background: var(--light-gray);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--medium-gray);
}

.orders-table td {
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: top;
}

.orders-table tr:hover {
    background: rgba(233, 30, 99, 0.02);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.customer-info strong {
    display: block;
    margin-bottom: 5px;
}

.customer-contact small {
    display: block;
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.order-details .detail-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-amount strong {
    color: var(--primary-pink);
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-view {
    background: var(--accent-blue);
    color: var(--white);
}

.btn-edit {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-delete {
    background: var(--accent-red);
    color: var(--white);
}

.btn-action:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.3s ease;
        gap: 0;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .admin-container.sidebar-active .main-content {
        filter: blur(2px);
        pointer-events: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 150px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-submit {
        min-width: auto;
        width: 100%;
    }
    
    .order-form {
        padding: 30px 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink-dark);
}

/* Simple Order Button Styling */
.btn-order-simple {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-dark));
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 140px;
}

.btn-order-simple:hover {
    background: linear-gradient(135deg, var(--primary-pink-dark), var(--primary-pink));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.btn-quick-order {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.product-card:hover .btn-quick-order {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-order:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
}

/* Product hover effects */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-15px);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Elegant Gradient Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        #0a0a0a 0%,
        #1a1a1a 25%,
        #2a1e3d 50%,
        #3d1e2a 75%,
        #0a0a0a 100%
    );
    color: var(--white);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-pink), transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-gold), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.circle-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff69b4, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.circle-4 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #d4af37, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-gold));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white), var(--primary-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, 
        rgba(233, 30, 99, 0.2), 
        rgba(255, 215, 0, 0.2)
    );
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.hero-features .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-features .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-pink-light);
    transform: translateY(-10px);
}

.hero-features .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.hero-features h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.hero-features p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.scroll-down {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-down span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Updated Product Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-pink-light), var(--primary-gold-light));
    color: var(--primary-pink);
    font-size: 60px;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-gold));
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-order {
    background: var(--white);
    color: var(--primary-pink);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-quick-order:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 15px;
}

.product-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-category {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.category-tag, .texture-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.category-tag {
    background: var(--primary-pink-light);
    color: var(--primary-pink-dark);
}

.texture-tag {
    background: var(--primary-gold-light);
    color: var(--primary-gold-dark);
}

.product-specs {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec i {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 15px 0;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.stock-badge {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: fit-content;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.pre-order {
    background: #fff3cd;
    color: #856404;
}

.btn-order-simple {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-order-simple:hover {
    background: var(--primary-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--medium-gray);
}

.section-note {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn-order-simple {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .product-specs {
        flex-direction: column;
        gap: 10px;
    }
}

/* Categories Management Styles */
.view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
}

.tab-btn.active {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

/* Tree View */
.categories-tree {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tree-item {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.tree-item[data-level="0"] {
    border-left: 4px solid #e91e63;
}

.tree-item[data-level="1"] {
    border-left: 4px solid #2196f3;
    margin-left: 30px;
}

.tree-item[data-level="2"] {
    border-left: 4px solid #4caf50;
    margin-left: 60px;
}

.tree-content {
    padding: 15px;
    background: white;
}

.tree-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tree-toggle {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.tree-toggle i {
    transition: transform 0.3s ease;
}

.tree-toggle.expanded i {
    transform: rotate(90deg);
}

.tree-info {
    flex: 1;
}

.tree-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.tree-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.tree-status {
    min-width: 80px;
}

.tree-actions {
    display: flex;
    gap: 5px;
}

.tree-description {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
}

.tree-children-container {
    display: none;
    padding-left: 30px;
    border-top: 1px solid #eee;
}

.tree-children-container.expanded {
    display: block;
}

/* List View */
.categories-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.list-table {
    width: 100%;
}

.list-header {
    display: flex;
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.list-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.list-row:hover {
    background: #f8f9fa;
}

.list-cell {
    flex: 1;
    padding: 0 10px;
}

.list-cell:nth-child(1) { flex: 2; }
.list-cell:nth-child(5) { flex: 0.5; }

.category-desc {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Grid View */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-header {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-header h3 {
    margin: 0;
    font-size: 18px;
}

.category-body {
    padding: 20px;
}

.category-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.category-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.stat i {
    color: #e91e63;
}

.category-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.category-slug {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.category-actions {
    display: flex;
    gap: 5px;
}

/* Category Statistics Summary */
.category-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-stats-summary .stat-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-stats-summary .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.category-stats-summary .stat-icon:nth-child(1) { background: #e91e63; }
.category-stats-summary .stat-icon:nth-child(2) { background: #2196f3; }
.category-stats-summary .stat-icon:nth-child(3) { background: #4caf50; }
.category-stats-summary .stat-icon:nth-child(4) { background: #ff9800; }

.category-stats-summary .stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
}

.category-stats-summary .stat-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Badges */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.none {
    background: #f5f5f5;
    color: #666;
}

/* Nestable Styles */
.dd { position: relative; display: block; margin: 0; padding: 0; max-width: 600px; list-style: none; font-size: 13px; line-height: 20px; }
.dd-list { display: block; position: relative; margin: 0; padding: 0; list-style: none; }
.dd-list .dd-list { padding-left: 30px; }
.dd-collapsed .dd-list { display: none; }
.dd-item,
.dd-empty,
.dd-placeholder { display: block; position: relative; margin: 0; padding: 0; min-height: 20px; font-size: 13px; line-height: 20px; }
.dd-handle { display: block; margin: 5px 0; padding: 10px 15px; text-decoration: none; border: 1px solid #e5e5e5; background: #f8f9fa; border-radius: 5px; box-sizing: border-box; -moz-box-sizing: border-box; cursor: move; }
.dd-handle:hover { background: #e9ecef; }
.dd-handle i { margin-right: 10px; color: #999; }
.dd-badge { float: right; background: #e91e63; color: white; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.dd-item > button { display: block; position: relative; cursor: pointer; float: left; width: 25px; height: 20px; margin: 5px 0; padding: 0; text-indent: 100%; white-space: nowrap; overflow: hidden; border: 0; background: transparent; font-size: 12px; line-height: 1; text-align: center; font-weight: bold; }
.dd-item > button:before { content: '+'; display: block; position: absolute; width: 100%; text-align: center; text-indent: 0; }
.dd-item > button[data-action="collapse"]:before { content: '-'; }

/* Form Preview */
.form-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    display: none;
}

.preview-card {
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Help */
.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .list-header, .list-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-cell {
        width: 100%;
        padding: 5px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-stats-summary {
        grid-template-columns: 1fr;
    }
    
    .view-tabs {
        flex-direction: column;
    }
}