html{
    font-size: 18px;
}
@font-face {
    font-family: 'SF Pro';
    src: url('/assets/fonts/SFPro.ttf');
    font-family: 'InterVar';
    src: url('/assets/fonts/Inter.var.woff2');
}

body {
    font-family: 'SF Pro', sans-serif;
    background: #252525;
    color: #000;
    margin: 0;
    padding: 0;
    overflow: auto;
    font-size: 14px; /* Small text base */
    line-height: 1.4;
}

body *{
    transition: all 0.5s ease-in-out !important;
}

.dark body {
    background: #000;
    color: #fff;
}

.sidebar {
    background: #252525;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}
.sidebar button{
    letter-spacing: 1px;
    line-height: 1;
}

.dark .sidebar {
    background: #000;
    border-right: 1px solid #333;
}

.main-area {
    background: #fafafa;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100vh;
}

.dark .main-area {
    background: #000;
}

/* .btn, button {
    border: 1px solid #e0e0e0;
    border-radius: 4px; 
    background: #fff;
    color: #000;
    padding: 4px 8px; 
    font-size: 12px;
    transition: background 0.2s;
} */

.dark .btn, .dark button {
    border: 1px solid #333;
    background: #000;
    color: #fff;
}

.btn:hover, button:hover {
    background: #f0f0f0;
}

.dark .btn:hover, .dark button:hover {
    background: #111;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px; /* Compact */
    transition: border 0.2s;
}

.dark .card {
    border: 1px solid #333;
}

.card:hover {
    border-color: #000;
}

.dark .card:hover {
    border-color: #fff;
}

.modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#glass-lightbox {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.thumbnail:hover {
    transform: scale(1.02); /* Subtle hover */
}

input {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
    font-size: 12px;
}

.dark input {
    border: 1px solid #333;
    background: #000;
    color: #fff;
}

input:focus {
    border-color: #000;
    outline: none;
}

.dark input:focus {
    border-color: #fff;
}

::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #333;
}
/* @font-face {
    font-family: 'SF Pro';
    src: url('/assets/fonts/SFPro.ttf');
}

body {
    font-family: 'SF Pro', sans-serif;
    background: url('/assets/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #1d1d1f;
    margin: 0;
    padding: 0;
    overflow: auto;
    position: relative;
}

body::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff1f;
    top: 0;
    left: 0;
    backdrop-filter: blur(5px) saturate(150%);
    z-index: -1;
}

body * {
    transition: all 0.3s ease-in-out !important;
}

.login-box{
    background: rgb(0 0 0 / 50%) !important;
    box-shadow: 0px 10px 15px 5px #0000003b;
    outline: 5px solid rgb(95 95 95 / 50%);
}

.sidebar {
    background: rgb(235 235 235 / 65%);
    backdrop-filter: blur(10px) saturate(180%);
    transition: transform 0.3s ease;
}

.main-area {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px);
    transition: opacity 0.3s ease;
    box-shadow: -7px 0px 10px -5px #000000;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.thumbnail {
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.03);
}

.modal {
    transition: opacity 0.3s ease;
}

input, select, button {
    border-radius: 8px;
    font-size: 12px;
}

canvas {
    border-radius: 8px;
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
} */

.photo-card-container {
            transition: transform 0.2s;
        }

        .photo-card-container:not(.selected):hover .photo-card {
            transform: scale(1.05);
        }

        .photo-card-container:hover .selection-checkbox {
            display: block;
            opacity: 1;
        }

        .photo-card {
            width: 100%;
            height: auto;
            display: block;
        }

        .selection-checkbox {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            border: 4px solid #fafafa;
            background-color: #00000024;
            cursor: pointer;
            backdrop-filter: blur(5px);
            z-index: 10;
            opacity: 0;
            transition: opacity 0.2s;
            display: none;
        }

        .selection-checkbox:hover {
            background: rgba(255 255 255/30%);
        }

        /* .selection-mode .selection-checkbox {
            display: block;
            opacity: 1;
        } */

        .photo-card-container.selected .selection-checkbox {
            background-color: #8bc34ae0;
            opacity: 1;
            display: block;
            backdrop-filter: blur(5px) drop-shadow(0px 0px 1px black);
        }

        .photo-card-container.selected .selection-checkbox::after {
            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23252222' viewBox='0 0 256 256'%3E%3Cpath d='M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z'%3E%3C/path%3E%3C/svg%3E");
            color: rgb(0, 0, 0);
            width: 16px; /* Adjust size as needed */
            height: 16px;
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .photo-card-container img {
            user-select: none;
            -webkit-user-select: none;
        }

        .selected img.photo-card{
            filter: brightness(1.1) grayscale(1);
            border-radius: 1rem;
            transform: scale(0.8);
        }

        .delete-icon {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            width: 2rem;
            height: 2rem;
            background: rgb(61 3 3 / 25%);
            backdrop-filter: blur(5px);
            border: 2px solid rgb(255 255 255 / 60%);
            border-radius: 50%;
            color: rgb(255 255 255 / 90%);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .photo-card-container:hover .delete-icon {
            opacity: 1;
        }

        .delete-icon:hover {
            background: rgb(255 0 0 / 30%);
        }

        .delete-icon::after {
            content: '×';
            font-size: 1.2rem;
            font-weight: bold;
            line-height: 1;
        }

        /* --- FINAL Custom Glassy Lightbox --- */
        #glass-lightbox {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            background-color: rgb(0 0 0 / 70%);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }

        #glass-lightbox.show {
            opacity: 1;
            visibility: visible;
        }

        #lightbox-topbar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            color: white;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            z-index: 999;
        }

        #glass-lightbox.show #lightbox-topbar {
            opacity: 1;
            transform: translateY(0);
        }

        .topbar-filename {
            font-size: 0.9rem;
            font-weight: 500;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .topbar-actions button {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.2s, transform 0.2s;
            display: flex;
            align-items: center;
        }

        .topbar-actions button:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .topbar-actions svg {
            width: 24px;
            height: 24px;
            vertical-align: middle;
        }

        #slideshow-pause-icon {
            display: none;
        }

        .topbar-actions #select-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }

        .topbar-actions #select-btn svg {
            width: 18px;
            height: 18px;
            margin-right: 0.5rem;
        }

        .topbar-actions #select-btn.selected {
            color: #4ade80;
            border-color: rgba(74, 222, 128, 0.5);
            background: rgba(74, 222, 128, 0.15);
        }

        .topbar-actions #select-btn.selected .add-text {
            display: none;
        }

        .topbar-actions #select-btn .remove-text {
            display: none;
        }

        .topbar-actions #select-btn.selected .remove-text {
            display: inline;
        }

        .lightbox-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 2rem;
            cursor: grab; /* NEW: Cursor for dragging */
        }

        /* NEW: Canvas-Based Image Rendering */
        #lightbox-canvas {
            max-width: calc(100vw - 80px);
            max-height: calc(100vh - 80px);
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
            object-fit: contain;
            opacity: 0;
            transition: all 0.3s ease-in-out !important;
            pointer-events: none;
        }

        #glass-lightbox.is-dragging .lightbox-content {
             cursor: grabbing; /* NEW: Cursor while dragging */
        }

        .lightbox-image-element {
            position: absolute; display: block; max-width: calc(100vw - 80px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.5s ease-in-out;
            pointer-events: none; /* NEW: Prevent browser's native image drag */
        }

        #lightbox-canvas.is-active {
            opacity: 1;
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(5px);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.2s, transform 0.2s;
            line-height: 40px;
            text-align: center;
            z-index: 10;
        }

        .lightbox-nav:hover {
            background: rgb(207 207 207 / 50%);
            transform: translateY(-50%);
        }

        #lightbox-prev {
            left: 1rem;
        }

        #lightbox-next {
            right: 1rem;
        }

        .lightbox-loader {
            position: absolute;
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.3s ease;
            display: none;
        }

        #glass-lightbox.loading .lightbox-loader {
            display: block;
            opacity: 1;
        }

        #slideshow-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 3px;
            width: 100%;
            background-color: transparent;
            z-index: 20;
        }

        #slideshow-progress-bar {
            height: 100%;
            background-color: #ffffff;
            width: 0%;
            opacity: 1;
            transition: width 0s, opacity 0.3s;
            backdrop-filter: blur(5px);
            border-radius: 5rem;
        }

        #slideshow-progress-bar.animate {
            width: 100% !important;
            opacity: 0.5;
            transition: width 5s linear !important;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        
        .upload-progress {
            width: 100%;
            height: 8px;
            background-color: #f0f0f0;
            border-radius: 15px;
            overflow: hidden;
            margin-top: 10px;
            margin-bottom: 10px;
        }
        .progress-bar {
            height: 100%;
            background-color: #4caf50;
            width: 0;
            transition: width 0.3s ease;
            max-width: 100%; /* Cap the width */
        }

        .processing-message {
            text-align: center;
            padding: 20px;
            background-color: #f0f0f0;
            border-radius: 5px;
            margin-top: 10px;
            font-size: 1.2em;
            color: #666;
        }
        
        /* New styles for Upload Report Popup */
        #uploadReportModal {
            display: none;
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            overflow-y: auto;
        }

        #uploadReportContent {
            background-color: white;
            margin: 5% auto;
            padding: 20px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
        }

        .report-section ul {
            list-style-type: disc;
            padding-left: 20px;
            margin-top: 10px;
        }

        .report-section li {
            margin-bottom: 5px;
        }

        .btn {
            font-size: 14px;
            border-radius: 5rem;
            max-width: max-content;
            padding: 0.5rem 1.5rem;
        }
        .branding {
            width: 100%;
            text-align: center;
            font-size: 12px;
            letter-spacing: 1px;
            font-weight: 300;
            color: #e0e0e0;
            margin-top: 0.5rem;
        }
        
        /* Submit Shortlist Button */
        #submitShortlist {
            display: none;
            padding: 0.5rem 1.5rem;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        #submitShortlist:hover {
            background-color: #45a049;
        }

        .canvas-cont{
            position: relative;
        }

        .canvas-cont::after{
            content: "";
            width: 100%;
            height: 100%;
            position: absolute;
            background: transparent;
            top: 0;
            left: 0;
            display: block;
        }
        
        /* Enable Shortlisting Button */
        #enableShortlisting {
            display: none;
            padding: 0.5rem 1.5rem;
            background-color: #2196F3;
            color: white;
            border: none;
            border-radius: 5rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        #enableShortlisting:hover {
            background-color: #1976D2;
        }

        .btn-small-screen{
                display: none !important;
                opacity: 0 !important;
            }

        @media only screen and (max-width: 767px){
            
            .btn-large-screen{
                display: non !important;
                opacity: 0 !important;
            }

            .btn-small-screen{
                display: flex !important;
                opacity: 1 !important;
            }

            #lightbox-canvas{
                    max-width: calc(100vw - 2rem);
                    max-height: calc(100vh - 140px);
                    border-radius: 0.5rem;
                    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
                    opacity: 0;
                    /*transition: all 0.7s ease-in-out !important;*/
            }
            .lightbox-content{
                padding-top: 0;
            }
            #lightbox-prev{
                    bottom: 0;
                    top: auto;
                    transform: translateX(-130%) translateY(-20%);
                    left: 50%;
            }
            #lightbox-next{
                bottom: 0;
                top: auto;
                transform: translateX(130%) translateY(-20%);
                right: 50%;
            }
            .lightbox-nav-play-pause{
                bottom: 0;
                top: auto;
                transform: translateX(50%) translateY(-20%);
                right: 50%;
            }
            .topbar-filename, .topbar-actions #select-btn{
                    font-size: 0.7rem;
            }
            .topbar-actions svg{
                width: 18px;
                height: 18px;
            }
            .topbar-actions{
                gap: 0.5rem;
            }
            .selection-checkbox{
                    position: absolute;
                    top: 0.5rem;
                    right: 0.5rem;
                    width: 1.5rem;
                    height: 1.5rem;
                    border-radius: 50%;
                    border: 4px solid rgb(255, 255, 255);
                    background-color: rgb(255 255 255 / 31%);
                    cursor: pointer;
                    backdrop-filter: blur(5px);
                    z-index: 10;
                    opacity: 0.4;
                    transition: opacity 0.2s;
                    display: block;
            }

        }

.submitted{
    background: #DCEDC8;
    border: 1px Solid #AED581;
    font-weight: 600;
}
.not-submitted{
    background: #f0f0f0;
    border: 1px Solid rgb(209, 209, 209);
    font-weight: 400;
}

.projectDetails{
    background:rgba(0, 0, 0, 0.5);
    margin-top: 0 !important;
    padding-bottom: 5px !important;
}