* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -1;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 120px;
    gap: 30px;
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
    max-width: 500px;
    width: 100%;
}

.glass-card.welcome-card {
    padding: 25px 40px;
}

.admin-login-btn {
    display: block;
    margin: 10px auto 20px;
    padding: 8px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-accounts-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 0 auto 20px;
    max-width: 500px;
    text-align: center;
    color: white;
    font-size: 0.85rem;
}

.admin-accounts-info p {
    margin: 5px 0;
}

.admin-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.text-card {
    max-width: 1200px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.filter-card {
    max-width: 1200px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.tab {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tab.active {
    background: rgba(0, 0, 0, 0.3);
}

.search-bar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.seller-filter {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 160px;
}

.seller-filter option {
    background: #333;
    color: white;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-card h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.glass-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 12px 40px;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    width: 100%;
    padding: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-self: center;
    width: 100%;
    max-width: 280px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 9 / 4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
}

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

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

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.seller-name {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 40px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ade80;
}

.purchase-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    min-width: 36px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-display:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-display:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.add-btn:active {
    transform: scale(0.95);
}

.checkout-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
    margin: 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.checkout-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-label {
    opacity: 0.8;
    font-size: 0.95rem;
}

.checkout-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ade80;
}

.custom-alert-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.custom-alert-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

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

.custom-alert {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.custom-alert h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.custom-alert p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    white-space: pre-line;
}

.custom-alert-btn {
    margin-top: 25px;
    padding: 12px 35px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* Login Form Styles */
.login-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
    color: white;
}

.login-form h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* Order List Styles */
.order-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    color: white;
}

.order-list h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.order-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.order-info {
    flex: 1;
}

.order-id {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.order-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.order-date {
    font-size: 0.85rem;
    opacity: 0.7;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status.pending {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.order-status.completed {
    background: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.order-status.cancelled {
    background: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.order-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ade80;
    margin-left: 20px;
}

.checkout-btn {
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.modal-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
}

.clickable-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

@media (max-width: 768px) {
    .glass-card {
        padding: 30px 20px;
    }

    .glass-card h1 {
        font-size: 1.8rem;
    }

    .filter-card {
        padding: 15px 20px;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .seller-filter {
        min-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }

    .product-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}