﻿html, body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #E0E0E0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4Mz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ODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    margin-bottom: 10px;
    color: #E0E0E0;
}

/* Accent Color */
:root {
    --accent-color: #4DD0E1; /* Cool Cyan */
}

/* ------------------------------
    Header Section
---------------------------------*/
.header {
    /*    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #1F1F1F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Slightly transparent background */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: fixed; /* Stick to the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Stay above other content */
}

    .header img.logo {
        width: 100px;
        height: 100px;
        object-fit: contain;
        border-radius: 8px;
    }

.header-links a {
    margin-left: 1.5rem;
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

    .header-links a:hover {
        color: white;
    }

/* ------------------------------
    Main Content Layout
---------------------------------*/
.main-content {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    padding-top: 150px; /* Adjust depending on header height */
    min-height: calc(100vh - 180px); /* Adjust for header & footer */
}

/* Product Section */
.product-section {
    flex: 4;
    overflow-y: auto;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Soft vertical line */
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background-color: #1F1F1F;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    }

    .product-item h3 {
        color: var(--accent-color);
        margin-bottom: 0.5rem;
    }

.product-image {
    width: 240px;
    height: 240px; /* Adjust height as needed */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AAAAAA;
    font-size: 0.9rem;
    font-style: italic;
    overflow: hidden;
}

/* News Section with visual distinction */
.news-section {
    flex: 1;
    max-width: 350px;
    overflow-y: auto;
    padding-left: 1rem; /* Add space to visually separate */
}

/* Updated news item look */
.news-item {
    background-color: rgba(31, 31, 31, 0.9); /* Slight transparency for contrast */
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color); /* Accent bar on the side */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-bottom: 10px;
}

    /* Adding a news icon before the title */
    .news-item h4::before {
        content: "📰 ";
        margin-right: 0.3rem;
    }

    /* Smaller and lighter news title */
    .news-item h4 {
        color: var(--accent-color);
        margin-bottom: 0.3rem;
        font-size: 1rem; /* Smaller title */
        font-weight: 600;
    }

    /* Subtle news content */
    .news-item p {
        color: #CCCCCC;
        font-size: 0.9rem;
        font-style: italic;
        line-height: 1.4;
        margin: 0;
    }


/* ------------------------------
    Footer Section
---------------------------------*/
.footer {
    position: fixed; /* Make it fixed on the screen */
    bottom: 0; /* Stick to the bottom */
    left: 0;
    width: 100%; /* Full width */
    background-color: #1F1F1F;
    padding: 1rem 2rem;
    text-align: center;
    color: #AAAAAA;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    z-index: 999; /* Ensure it's above other content */
}

/* ------------------------------
    Responsive
---------------------------------*/
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .product-section, .news-section {
        max-width: 100%;
    }

    .header img.logo {
        width: 60px;
        height: 60px;
    }

    .header-links a {
        margin-left: 1rem;
    }
}
/* Overlay Background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Box */
.modal-content {
    width: 80vw;
    height: 80vh;
    background: #1c1c1c; /* Use main page background */
    color: #e0b878; /* Use main page text color */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Grid Layout */
.modal-grid {
    display: flex;
    height: 100%;
    gap: 20px;
}

/* Left: Image Slider */
.image-slider {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slider-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Navigation Buttons */
.prev-button, .next-button {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 4px;
    transition: 0.3s;
}

    .prev-button:hover, .next-button:hover {
        background: rgba(0, 0, 0, 0.8);
    }

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Right: Product Details */
.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 20px;
}

    /* Title */
    .modal-details h2 {
         color: var(--accent-color);
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Description */
    .modal-details p {
        font-size: 1.2rem;
        line-height: 1.5;
    }

/* Shopee QR Code */
.qr-code {
    width: 150px;
    margin-top: 20px;
}

/* Close Button */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

    .close-button:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 90vw;
        height: auto;
        padding: 15px;
    }

    .modal-grid {
        flex-direction: column;
        align-items: center;
    }

    .image-slider {
        width: 100%;
        margin-bottom: 15px;
    }

    .modal-details {
        text-align: center;
    }
}

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

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.qr-code {
    margin-top: 10px;
    max-width: 150px;
    height: auto;
}

.image-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
}

.slider-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.prev-button, .next-button {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.prev-button:hover, .next-button:hover {
    background: rgba(0, 0, 0, 0.8);
}*/
