/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   BODY
===================================================== */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #fff;
    display: flex;
    min-height: 100vh;
}

/* =====================================================
   LAYOUT
===================================================== */
.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
    width: 250px;
    height: 100vh;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar h2 {
    margin-bottom: 30px;
}

.nav-item {
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.nav-item.active {
    background: #3b82f6;
}

/* =====================================================
   CARD (GLASS UI)
===================================================== */
.card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* =====================================================
   BUTTONS
===================================================== */
button, .btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(59,130,246,0.5);
}

/* =====================================================
   UPLOAD BOX
===================================================== */
.upload-box {
    border: 2px dashed #3b82f6;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    background: rgba(59,130,246,0.1);
}

.upload-box.dragover {
    background: rgba(59,130,246,0.2);
}

/* =====================================================
   IMAGE DISPLAY
===================================================== */
.image-container {
    position: relative;
}

.image-container img,
.slider-container img {
    width: 100%;
    max-width: 700px;      /* limit overall size */
    max-height: 500px;     /* prevent vertical overflow */
    object-fit: contain;   /* keep aspect ratio */
    display: block;
    margin: 0 auto;        /* center image */
    border-radius: 10px;
}

/* HEATMAP */
.heatmap {
    position: absolute;
    border: 2px solid red;
    width: 120px;
    height: 80px;
    top: 40%;
    left: 30%;
}

/* BOUNDING BOX */
.box {
    position: absolute;
    border: 2px dashed yellow;
    width: 150px;
    height: 100px;
    top: 20%;
    left: 50%;
}

/* =====================================================
   SLIDER (BEFORE / AFTER)
===================================================== */
.slider-container {
    position: relative;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
}

/* =====================================================
   TEXT
===================================================== */
.highlight {
    color: #60a5fa;
    font-weight: bold;
}

/* =====================================================
   STATUS BADGES
===================================================== */
.status {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    display: inline-block;
    margin-top: 8px;
}

.success { background: #16a34a; }
.warning { background: #facc15; color: black; }
.error { background: #dc2626; }
.approve { background: #16a34a; }
.review { background: #facc15; color: black; }
.reject { background: #dc2626; }

/* =====================================================
   PROGRESS BAR
===================================================== */
.progress {
    height: 10px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.5s ease;
}

/* =====================================================
   TIMELINE
===================================================== */
.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #3b82f6;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
}

/* =====================================================
   HEADER
===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* =====================================================
   LOADER
===================================================== */
.loader {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* =====================================================
   TOAST / NOTIFICATION
===================================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3b82f6;
    padding: 10px 15px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

/* =====================================================
   ANIMATIONS
===================================================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   SCROLLBAR
===================================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
    }

    .main {
        padding: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}
/* =====================================================
   FORM SECTION (TIMELINE INPUT UI)
===================================================== */

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

/* Label styling */
.form-group label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #cbd5f5;
}

/* Input styling */
.form-group input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
    transition: all 0.25s ease;
}

/* Input focus effect */
.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,0.5);
    background: rgba(255,255,255,0.08);
}

/* Fix date icon visibility */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* =====================================================
   BUTTON (RUN VALIDATION)
===================================================== */
button {
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover animation */
button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59,130,246,0.5);
}

/* Click animation */
button:active {
    transform: scale(0.97);
}

/* =====================================================
   CARD TITLE ALIGNMENT
===================================================== */
.card h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE (IMPORTANT)
===================================================== */
@media (max-width: 768px) {

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group input {
        width: 100%;
    }
}
/* =====================================================
   REVIEWER OVERRIDE SECTION
===================================================== */

/* Container layout */
.reviewer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button group */
.reviewer-buttons {
    display: flex;
    gap: 10px;
}

/* Buttons */
.reviewer-buttons button {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effect */
.reviewer-buttons button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 18px rgba(59,130,246,0.5);
}

/* Active press */
.reviewer-buttons button:active {
    transform: scale(0.96);
}

/* Textarea styling */
.reviewer-section textarea {
    flex: 1;
    min-width: 260px;
    height: 60px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    resize: none;
    outline: none;
    transition: all 0.25s ease;
}

/* Placeholder color */
.reviewer-section textarea::placeholder {
    color: #94a3b8;
}

/* Focus effect */
.reviewer-section textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
    background: rgba(255,255,255,0.08);
}

/* =====================================================
   TITLE SPACING
===================================================== */
.card h3 {
    margin-bottom: 15px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .reviewer-section {
        flex-direction: column;
        align-items: stretch;
    }

    .reviewer-buttons {
        justify-content: space-between;
        width: 100%;
    }

    .reviewer-section textarea {
        width: 100%;
    }
}