﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn-wrap a {
    color: white;
}

.btn {
    border-radius: 8px 8px;
}

.field-validation-error {
    color: red;
    font-size: smaller;
}

.imggal-wrapper {
    font-family: sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.imggal-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.imggal-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.imggal-controls input[type="file"] {
    flex: 1;
}

.imggal-clear-btn {
    margin-left: 10px;
    padding: 8px 14px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.imggal-clear-btn:hover {
    background: #c0392b;
}

.imggal-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}
/* Force 4 columns on wide viewports */
@media (min-width: 1200px) {
    .imggal-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}
.imggal-options {
    margin-top: auto; /* pushes to tile bottom */
    padding: 8px;
    background: #fff; /* optional: matches your theme */
    border-top: 1px solid #ddd;
}

.imggal-tile {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* smoother corners */
    border: 2px solid #e0e0e0; /* light border around tile */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    background: #fafafa;
    padding-bottom: 10px; /* more breathing room below */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.imggal-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.imggal-tile img {
    display: block; /* remove inline spacing gaps */
    width: 100%; /* span the entire tile width */
    height: auto; /* preserve natural proportions */
    object-fit: contain; /* fit inside without cropping */
    background-color: #f0f0f0; /* optional: filler bg for letterboxing */
}

.imggal-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.imggal-remove-btn :hover {
    background: #c0392b;
}

.imggal-tile-options {
    /*padding: 10px 12px 4px;*/ /* increased vertical padding */
    /*font-size: 0.9em;*/ /* slightly larger text */
    flex-shrink: 0; /* prevent squeezing */
    padding: 12px;

}
.imggal-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px; /* extra spacing between rows */
    padding-bottom:15px;
}

.imggal-option-row label {
    font-weight: 500;
}

    .imggal-option-row input[type="number"] {
        width: 60px; /* wider number box */
        padding: 2px 4px;
        font-size: 0.9em;
    }

.imggal-radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
}

.imggal-actions {
    text-align: center;
}

.imggal-submit-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.imggal-img-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0f0f0; /* optional neutral background */
}
.imggal-submit-btn:hover {
    background: #2980b9;
}
.imggal-tile .imggal-img-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0f0f0;
}
.imggal-img-wrapper img {
    width: 100%; /* full tile width */
    height: auto; /* keep aspect ratio */
}

.imggal-tile .imggal-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
}
.imggal-tile-upper {
    height:100%
}

.invalid {
    border: 2px solid red;
    padding: 5px;
    border-radius: 5px;
}

.d-none {
    display:none;
}

.navi-icon{
    width:30px;
    height:30px
}

.dropdown-menu .tr{
    padding-left:0px !important;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
    }


.rainfall-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 2px, transparent 2px, transparent 18px ), repeating-linear-gradient( 45deg, transparent 0, transparent 18px, rgba(255, 255, 255, 0.15) 18px, rgba(255, 255, 255, 0.15) 20px );
    background-size: 150px 150px;
    z-index: 2;
    mix-blend-mode: overlay;
}


.tile-thumbnail:hover {
    opacity: 0.85;
    transition: opacity 0.2s ease-in-out;
}
body.loading {
    cursor: wait;
}
.card-title a:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
}

    .filter-form label {
        font-weight: bold;
    }

    .filter-form input[type="date"],
    .filter-form button,
    .filter-form a {
        padding: 0.4rem 0.6rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 0.95rem;
    }

    .filter-form button {
        background-color: #0078d4;
        color: white;
        border: none;
        cursor: pointer;
    }

        .filter-form button:hover {
            background-color: #005fa3;
        }

    .filter-form a {
        text-decoration: none;
        color: #0078d4;
    }

#ordersTable {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

    #ordersTable th,
    #ordersTable td {
        border: 1px solid #ddd;
        padding: 0.6rem;
        text-align: left;
    }

    #ordersTable thead {
        background-color: #f3f3f3;
    }

    #ordersTable tbody tr:hover {
        background-color: #f9f9f9;
    }

#printButton {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

    #printButton:hover {
        background-color: #218838;
    }
.admin-content-orders {
    padding: 2rem 3rem; /* 2rem vertical, 3rem horizontal */
}
.offcanvas-body {
    padding-right: 2rem;
    padding-left: 2rem;
}
.dropdown-menu {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* subtle depth */
    border: 1px solid #ccc; /* light gray border */
    border-radius: 4px; /* optional: soft corners */
}
.info-icon {
    display: inline-block;
    color: #0d6efd;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}
.forgot-password-link {
    position: relative;
    color: #6c757d;
    transition: color 0.3s ease;
}

    .forgot-password-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0%;
        height: 2px;
        background-color: #dc3545; /* Bootstrap danger red */
        transition: width 0.3s ease;
    }

    .forgot-password-link:hover {
        color: #dc3545;
    }

        .forgot-password-link:hover::after {
            width: 100%;
        }
    .forgot-password-link i {
        transition: transform 0.3s ease;
    }

    .forgot-password-link:hover i {
        transform: translateX(4px);
    }
.container-header {
    padding: 0px 20px 20px 20px;
}
/*
.img-fluid{
    max-width:90% !important;
}*/
.header-user-grp{
    display:none;
}
/*.header-user-cart {
    display: none;
}*/
.cart-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: block;
    border-radius: 6px;
}
.image-wrapper {
    position: relative;
}

.image-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.gallery-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: block;
    border-radius: 6px; /* Rounded corners */
    position: relative;
    z-index: 1;
}
.folder-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.folder-item {
    position: relative;
}

.add-folder {
    font-size: 1rem;
    color: #007bff;
}

.new-folder-input {
    display: none;
    width: 150px;
    margin-top: 5px;
}

.blob-explorer {
    width: 80%;
    max-width: 600px; /* Optional: limits width on large screens */
    margin: 0 auto; /* ✅ This centers it horizontally */
    background-color: #fff;
}
.import-guide {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    border-color: #b6d4fe;
}

    .import-guide h5 {
        font-weight: 600;
        color: #0d6efd;
    }

    .import-guide pre {
        font-family: monospace;
        font-size: 0.9rem;
        white-space: pre-wrap;
    }

    .import-guide ul {
        padding-left: 1.2rem;
    }

    .import-guide li {
        margin-bottom: 0.5rem;
    }

.vw-25 {
    width: 25% !important;
}

#uploadStatus {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
}

#uploadProgress {
    width: 100%;
    height: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}