

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Section Header */
    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 10px;
    }

    .section-header p {
        color: #666;
        font-size: 1.1rem;
    }

    /* Menu Management */
    .menu-management {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
        overflow: hidden;
    }

    .management-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        border-bottom: 1px solid #e9ecef;
    }

    .management-header h3 {
        margin: 0;
        color: #333;
    }

    .btn-toggle {
        background: #28a745;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .btn-toggle:hover {
        background: #218838;
        transform: translateY(-2px);
    }

    .add-item-form {
        padding: 25px;
        background: #f8f9fa;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

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

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        color: #333;
    }

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

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

    .dietary-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .tag-option {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        font-size: 14px;
    }

    .tag-option input[type="checkbox"] {
        width: auto;
    }

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

    /* Buttons */
    .btn-primary {
        background: #0066cc;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .btn-primary:hover {
        background: #0056b3;
    }

    .btn-secondary {
        background: #f8f9fa;
        color: #333;
        border: 1px solid #dee2e6;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .btn-secondary:hover {
        background: #e9ecef;
    }

    .btn-edit {
        background: #ffc107;
        color: #333;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
    }

    .btn-edit:hover {
        background: #e0a800;
    }

    .btn-delete {
        background: #dc3545;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
    }

    .btn-delete:hover {
        background: #c82333;
    }

    /* Menu Categories */
    .menu-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        justify-content: center;
    }

    .category-btn {
        background: white;
        color: #666;
        border: 1px solid #dee2e6;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .category-btn:hover,
    .category-btn.active {
        background: #0066cc;
        color: white;
        border-color: #0066cc;
    }

    /* Search */
    .search-container {
        position: relative;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .search-input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 14px;
        transition: border-color 0.3s ease;
    }

    .search-input:focus {
        outline: none;
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

    .search-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        padding: 5px;
    }

    /* Menu Grid */
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }

    .menu-item {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .menu-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .item-image {
        position: relative;
        height: 200px;
        overflow: hidden;
    }

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .item-tags {
        position: absolute;
        top: 10px;
        left: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tag {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .tag.vegetarian {
        background: #28a745;
        color: white;
    }

    .tag.vegan {
        background: #20c997;
        color: white;
    }

    .tag.gluten-free {
        background: #ffc107;
        color: #333;
    }

    .tag.spicy {
        background: #dc3545;
        color: white;
    }

    .tag.popular {
        background: #fd7e14;
        color: white;
    }

    .item-info {
        padding: 20px;
    }

    .item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .item-header h3 {
        margin: 0;
        color: #333;
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #0066cc;
        white-space: nowrap;
        margin-left: 10px;
    }

    .description {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .item-actions {
        display: flex;
        gap: 8px;
    }

    /* Modal */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }

    .modal-content {
        background: white;
        border-radius: 12px;
        max-width: 600px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        border-bottom: 1px solid #e9ecef;
    }

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .close-btn:hover {
        background: #f8f9fa;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
    }

    .empty-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        color: #666;
        margin-bottom: 10px;
    }

    .empty-state p {
        color: #999;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .form-grid {
            grid-template-columns: 1fr;
        }

        .menu-categories {
            justify-content: flex-start;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .category-btn {
            white-space: nowrap;
            flex-shrink: 0;
        }

        .menu-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .dietary-tags {
            flex-direction: column;
            gap: 10px;
        }

        .item-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }

        .price {
            margin-left: 0;
        }
    }

    /* Animation */
    .menu-item {
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Reset & Base */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        color: #333;
    }

    /* Layout */
    .vendor-details {
        background: #f8f9fa;
        padding: 40px 0;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Breadcrumb */
    .breadcrumb {
        margin-bottom: 30px;
        font-size: 14px;
    }

    .breadcrumb a {
        color: #0066cc;
        text-decoration: none;
    }

    .breadcrumb span {
        margin: 0 8px;
        color: #666;
    }

    /* Vendor Header */
    .vendor-header {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
    }

    .hero-image {
        position: relative;
        height: 250px;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #28a745;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .vendor-intro {
        padding: 30px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px;
    }

    .vendor-info {
        display: flex;
        gap: 20px;
        flex: 1;
    }

    .logo {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
    }

    .details h1 {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .details p {
        color: #666;
        margin-bottom: 10px;
    }

    .rating {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .stars {
        color: #ffc107;
    }

    .status {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #28a745;
        font-size: 14px;
    }

    .dot {
        width: 8px;
        height: 8px;
        background: #28a745;
        border-radius: 50%;
    }

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

    /* Buttons */
    .btn-primary {
        background: #0066cc;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s;
    }

    .btn-primary:hover {
        background: #0056b3;
    }

    .btn-secondary {
        background: #f8f9fa;
        color: #333;
        border: 1px solid #dee2e6;
        padding: 12px 24px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s;
    }

    .btn-secondary:hover {
        background: #e9ecef;
    }

    /* Content Grid */
    .content-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }

    /* Cards */
    .card {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
    }

    .card h2 {
        margin-bottom: 20px;
        color: #333;
    }

    .card h3 {
        margin-bottom: 15px;
        color: #333;
    }

    /* Highlights */
    .highlights {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .highlight {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .highlight .icon {
        font-size: 24px;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 10px;
    }

    .highlight h4 {
        margin-bottom: 5px;
    }

    .highlight p {
        color: #666;
        font-size: 14px;
    }

    /* Services */
    .services {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .service {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e9ecef;
        transition: transform 0.2s;
    }

    .service:hover {
        transform: translateY(-5px);
    }

    .service img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .service h3 {
        padding: 15px 15px 5px;
        font-size: 16px;
    }

    .service p {
        padding: 0 15px 15px;
        color: #666;
        font-size: 14px;
    }

    /* Location */
    .location {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }

    .location-info {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .info-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .info-item .icon {
        font-size: 20px;
        width: 40px;
        text-align: center;
    }

    .info-item strong {
        display: block;
        margin-bottom: 5px;
    }

    .info-item p {
        color: #666;
        font-size: 14px;
    }

    /* Reviews */
    .review-summary {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 30px;
        margin-bottom: 30px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .rating-big {
        text-align: center;
    }

    .score {
        font-size: 3rem;
        font-weight: bold;
        color: #0066cc;
    }

    .rating-big .stars {
        font-size: 1.5rem;
        margin: 10px 0;
    }

    .rating-bars {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bar {
        display: grid;
        grid-template-columns: 40px 1fr 30px;
        gap: 10px;
        align-items: center;
        font-size: 14px;
    }

    .progress {
        height: 6px;
        background: #e9ecef;
        border-radius: 3px;
        overflow: hidden;
    }

    .progress div {
        height: 100%;
        background: #ffc107;
        transition: width 0.5s;
    }

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

    .review {
        display: flex;
        gap: 15px;
        padding: 20px;
        border: 1px solid #e9ecef;
        border-radius: 10px;
    }

    .review img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .review-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .review-header h4 {
        margin: 0;
        font-size: 16px;
    }

    .review-header .stars {
        font-size: 14px;
    }

    .review-header span {
        color: #666;
        font-size: 12px;
    }

    .review p {
        color: #666;
        font-style: italic;
    }

    /* Review Form */
    .review-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .rating-input label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .star-rating {
        display: flex;
        gap: 5px;
    }

    .star {
        font-size: 30px;
        color: #ddd;
        cursor: pointer;
        transition: color 0.2s;
    }

    .star:hover,
    .star.active {
        color: #ffc107;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .review-form input,
    .review-form textarea {
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
    }

    .review-form input:focus,
    .review-form textarea:focus {
        outline: none;
        border-color: #0066cc;
    }

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

    /* Sidebar */
    .sidebar .card {
        padding: 20px;
    }

    .contact-list,
    .certifications {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .contact-item,
    .cert {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .contact-item .icon,
    .cert .icon {
        font-size: 20px;
        width: 40px;
        text-align: center;
    }

    .contact-item strong,
    .cert strong {
        display: block;
        margin-bottom: 2px;
    }

    .contact-item p,
    .cert p {
        color: #666;
        font-size: 14px;
    }

    /* Stats */
    .stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .number {
        font-size: 24px;
        font-weight: bold;
        color: #0066cc;
    }

    .label {
        font-size: 12px;
        color: #666;
    }

    /* Social */
    .social {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        font-weight: bold;
        transition: transform 0.2s;
    }

    .social-link:hover {
        transform: translateY(-2px);
    }

    .facebook {
        background: #1877f2;
    }

    .twitter {
        background: #1da1f2;
    }

    .instagram {
        background: #e4405f;
    }

    .linkedin {
        background: #0077b5;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .content-grid {
            grid-template-columns: 1fr;
        }

        .vendor-intro {
            flex-direction: column;
            align-items: stretch;
        }

        .vendor-info {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .actions {
            justify-content: center;
        }

        .location {
            grid-template-columns: 1fr;
        }

        .review-summary {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .form-row {
            grid-template-columns: 1fr;
        }

        .highlights {
            grid-template-columns: 1fr;
        }

        .services {
            grid-template-columns: 1fr;
        }
    }

    /* Base Styles */
.gallery-section {
    padding: 60px 0;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Gallery Management */
.gallery-management {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.management-header h3 {
    margin: 0;
    color: #333;
}

.btn-toggle {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background: #218838;
    transform: translateY(-2px);
}

.upload-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px;
    background: #f8f9fa;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-zone h4 {
    margin-bottom: 10px;
    color: #333;
}

.upload-zone p {
    color: #666;
    margin-bottom: 5px;
}

.file-info {
    font-size: 0.9rem;
    color: #999;
}

.upload-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* Buttons */
.btn-primary {
    background: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-btn {
    background: white;
    color: #666;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateY(-2px);
}

/* Search */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 30px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-info {
    align-self: flex-end;
    color: white;
}

.item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.item-info p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.category-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-actions {
    align-self: flex-start;
    display: flex;
    gap: 8px;
}

.btn-view,
.btn-edit,
.btn-delete {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view:hover { background: #0066cc; color: white; }
.btn-edit:hover { background: #ffc107; color: white; }
.btn-delete:hover { background: #dc3545; color: white; }

/* Load More */
.load-more-container {
    text-align: center;
}

.btn-load-more {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    max-width: 500px;
}

.modal-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.modal-info p {
    margin: 0 0 10px 0;
    color: #666;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Edit Modal */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.edit-header h3 {
    margin: 0;
    color: #333;
}

.edit-body {
    padding: 25px;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .item-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-navigation {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Animation */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}