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

        body {
            background: #000000e1;
            min-height: 100vh;
            color: #333;
        }

        .container {
            width: 100%;

            margin: auto;
            padding: 0 20px;
        }

        header {
            color: white;
            background-color: rgba(0, 0, 0, 0.744);
            backdrop-filter: blur(5px);
            top: 0;
            display: flex;
            z-index: 10;
            position: sticky;
        }

        header h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
        }

        header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        .upload-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin-bottom: 40px;
            text-align: center;
        }

        .upload-box {
            border: 3px dashed #4a6fc9;
            border-radius: 12px;
            padding: 40px 20px;
            transition: all 0.3s ease;
            cursor: pointer;
            background: rgba(74, 111, 201, 0.05);
        }

        .upload-box:hover,
        .upload-box.drag-over {
            background: rgba(74, 111, 201, 0.1);
            transform: translateY(-5px);
        }

        .upload-icon {
            font-size: 60px;
            color: #4a6fc9;
            margin-bottom: 15px;
        }

        .upload-box h2 {
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .upload-box p {
            margin-bottom: 20px;
            color: #7f8c8d;
        }

        .file-input {
            display: none;
        }

        .upload-btn {
            background: #4a6fc9;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(74, 111, 201, 0.4);
        }

        .upload-btn:hover {
            background: #3a5bb0;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(74, 111, 201, 0.5);
        }

        .upload-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .progress-container {
            margin-top: 20px;
            display: none;
        }

        .progress-bar {
            height: 10px;
            background: #ecf0f1;
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress {
            height: 100%;
            background: linear-gradient(to right, #4a6fc9, #6a89cc);
            width: 0%;
            transition: width 0.3s ease;
        }

        .status-text {
            font-weight: 500;
            color: #2c3e50;
        }

        .gallery-container {
            border-radius: 16px;
            padding: 10px 10px;
        }

        .gallery-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .section-title {
            color: #2c3e50;
            font-size: 1.8rem;
            position: relative;
            padding-bottom: 10px;
        }

        .section-title:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #4a6fc9, #6a89cc);
            margin-top: 10px;
            border-radius: 2px;
        }

        .search-container {
            position: relative;
            max-width: 400px;
            width: 100%;
        }

        .search-input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border-radius: 50px;
            border: 2px solid #ddd;
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .search-input:focus {
            outline: none;
            border-color: #4a6fc9;
            box-shadow: 0 2px 12px rgba(74, 111, 201, 0.3);
        }

        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #7f8c8d;
            font-size: 1.2rem;
        }

        /* Filter Buttons */
        .filter-buttons {
            display: flex;
            gap: 15px;
            margin: 10px 0 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: #4a6ec900;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .filter-btn:hover {
            background: #3a5bb0;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 25px;
        }

        .image-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            width: 100%;

        }

        .image-card:hover {
            transform: translateY(-10px);
        }

        .image-container {
            height: 300px;
            overflow: hidden;
            position: relative;
            box-shadow: 2px 2px 8px black;
            border-radius: 12px;
        }

        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .image-card:hover .image-container img {
            transform: scale(1.05);
        }

        .card-footer {
            padding: 15px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .image-name {
            font-weight: 500;
            color: #2c3e50;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .download-btn i {
            margin-right: 8px;
        }

        .download-btn:hover {
            background: #3a5bb0;
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(74, 111, 201, 0.4);
        }

        .empty-gallery {
            text-align: center;
            padding: 20px 10px;
            color: #7f8c8d;
            grid-column: 1 / -1;
        }

        .empty-gallery i {
            font-size: 60px;
            margin-bottom: 20px;
            color: #bdc3c7;
        }

        .instructions {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin-bottom: 40px;
        }

        .instructions h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #2c3e50;
            font-size: 1.8rem;
            position: relative;
        }

        .instructions h2:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #4a6fc9, #6a89cc);
            margin: 10px auto 20px;
            border-radius: 2px;
        }

        .instructions ol {
            padding-left: 30px;
            margin-bottom: 20px;
        }

        .instructions li {
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .instructions code {
            background: #f1f1f1;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: monospace;
        }

        footer {
            text-align: center;
            padding: 30px 0;
            color: white;
            margin-top: 30px;
            font-size: 1.1rem;
        }

        .loader {
            display: none;
            text-align: center;
            padding: 20px;
            grid-column: 1 / -1;
        }

        .spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border-left-color: #4a6fc9;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .load-more-container {
            text-align: center;
            margin-top: 30px;
            grid-column: 1 / -1;
        }

        .load-more-btn {
            background: #4a6fc9;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(74, 111, 201, 0.4);
        }

        .load-more-btn:hover {
            background: #3a5bb0;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(74, 111, 201, 0.5);
        }

        .load-more-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        @media (max-width: 768px) {

            header h1 {
                font-size: 2.2rem;
            }

            .gallery-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .section-title:after {
                margin: 10px auto 0;
            }

            .filter-buttons {
                margin-top: 15px;
            }
        }

        @media (max-width: 480px) {

            .upload-container,
            .gallery-container {
                padding: 10px;
            }

            .instructions {
                padding: 20px;
            }

            header h1 {
                font-size: 1.8rem;
            }

            .filter-buttons {
                gap: 10px;
            }

            .filter-btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 1200px) {
            .gallery {
                grid-template-columns: repeat(3, 1fr);
                /* 3 columns on medium screens */
            }
        }

        @media (max-width: 900px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr);
                /* 2 columns on tablets */
            }
        }

        @media (max-width: 600px) {
            .gallery {
                grid-template-columns: 1fr;
                /* 1 column on mobile */
            }
        }

        .header-wrapper {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            padding: 10px 15px;
            width: 100%;
        }

        .logo {
            width: 50px;
            height: 50px;
            margin-right: 10px;
            float: left;
        }

        .menu-toggle {
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            display: none;
        }

        .search-bar {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-left: auto;
        }

        .search-bar input {
            padding: 10px;
            width: 250px;
            border-radius: 25px;
            font-size: 1rem;
            background: none;
            border: thin solid white;
            color: white;
            border-top: none;
            border-right: none;
        }

        .search-bar button {
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 1rem;
            background: #4a6ec900;
            color: white;
            border: none;
            border: thin solid white;
            border-bottom: none;
            border-left: none;
        }

        .sidebar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-left: auto;
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }

            .sidebar {
                display: none;
                flex-direction: column;
                background-color: rgba(0, 0, 0, 0.9);
                padding: 20px;
                position: absolute;
                top: 60px;
                left: 0;
                right: 0;
                z-index: 999;
            }

            .sidebar.active {
                display: flex;
            }

            .search-bar {
                width: 70%;
                justify-content: center;
                flex-wrap: wrap;
                margin-top: 10px;
            }

            .search-bar input {
                width: 55%;
            }

            .filter-btn {
                width: 100%;
                text-align: center;
                font-size: 1rem;
            }
        }