@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-navy: #102A43;
    --primary-navy-hover: #243B53;
    --secondary-blue: #334E68;
    --success-green: #10B981;
    --success-green-hover: #0EA371;
    --warning-amber: #F59E0B;
    --danger-red: #EF4444;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-navy);
}

/* ---------- Navbar ---------- */
.site-navbar {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.site-navbar .navbar-brand {
    color: var(--primary-navy) !important;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-navbar .nav-btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    color: var(--secondary-blue);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-navbar .nav-btn:hover {
    background-color: #E2E8F0;
    color: var(--primary-navy);
}

.site-navbar .nav-btn.active {
    background-color: var(--primary-navy);
    color: #fff;
    font-weight: 600;
}

.site-navbar .nav-btn.active:hover {
    background-color: var(--primary-navy-hover);
    color: #fff;
}

.site-navbar .nav-btn-primary {
    background-color: var(--primary-navy);
    color: #fff !important;
    border-color: var(--primary-navy);
}

.site-navbar .nav-btn-primary:hover {
    background-color: var(--primary-navy-hover);
    color: #fff;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #102A43 0%, #243B53 50%, #334E68 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 600px;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-accent {
    background-color: var(--success-green);
    border-color: var(--success-green);
    color: #fff;
}
.btn-hero-accent:hover {
    background-color: var(--success-green-hover);
    border-color: var(--success-green-hover);
    color: #fff;
}

/* =========================================
   HOW IT WORKS
   ========================================= */

.how-it-works-section {
   background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
   padding: 70px 0 90px;
}

.how-it-works-heading {
   max-width: 820px;
   margin: 0 auto 2.5rem;
}

.section-kicker {
   display: inline-block;
   margin-bottom: 0.9rem;
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.18em;
   text-transform: uppercase;
   color: #ef5b70;
}

.how-it-works-heading h2 {
   font-size: clamp(2.6rem, 3vw, 4.6rem);
   font-weight: 800;
   letter-spacing: -0.07em;
   line-height: 0.98;
   color: #1a2f52;
   margin-bottom: 1.2rem;
}

.how-it-works-heading p {
   margin: 0 auto;
   max-width: 700px;
   font-size: 1.15rem;
   line-height: 1.6;
   color: #5c6c7d;
}

.process-card {
   position: relative;
   height: 100%;
   min-height: 360px;
   padding: 2.2rem 1.5rem 1.8rem;
   border-radius: 1.7rem;
   border: 1px solid rgba(97, 124, 161, 0.18);
   box-shadow: 0 8px 24px rgba(31, 52, 78, 0.07);
   overflow: hidden;
   text-align: center;
   transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 16px 30px rgba(31, 52, 78, 0.12);
}

.process-card::before {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   top: 0;
   height: 170px;
   border-radius: 1.7rem 1.7rem 52% 52%;
   opacity: 0.08;
   background: rgba(255, 255, 255, 0.9);
}

.card-decoration {
   position: absolute;
   top: 18px;
   right: 24px;
   width: 38px;
   height: 38px;
   opacity: 0.18;
   background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
   background-size: 9px 9px;
   border-radius: 50%;
}

.process-blue {
   color: #0b63d9;
   background: linear-gradient(145deg, #dfeeff 0%, #d8ebff 100%);
}

.process-purple {
   color: #5e4fe7;
   background: linear-gradient(145deg, #efe7ff 0%, #e3d7ff 100%);
}

.process-amber {
   color: #ef9b13;
   background: linear-gradient(145deg, #fceec9 0%, #f7ddaa 100%);
}

.process-indigo {
   color: #2e5fe7;
   background: linear-gradient(145deg, #dfe5ff 0%, #d4dcff 100%);
}

.process-icon {
   position: relative;
   z-index: 1;
   width: 122px;
   height: 122px;
   margin: 0 auto 1.2rem;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(255, 255, 255, 0.22);
   box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.process-card:nth-child(1) .process-icon,
.process-card:nth-child(2) .process-icon,
.process-card:nth-child(3) .process-icon,
.process-card:nth-child(4) .process-icon {
   color: #ffffff;
}

.process-blue .process-icon { background: linear-gradient(145deg, #0f67df, #0d59c5); }
.process-purple .process-icon { background: linear-gradient(145deg, #6d52f5, #4d3dde); }
.process-amber .process-icon { background: linear-gradient(145deg, #f6ae2a, #ea9a14); }
.process-indigo .process-icon { background: linear-gradient(145deg, #3a6df4, #2d5be7); }

.process-icon svg {
   width: 52px;
   height: 52px;
   stroke-width: 2.2;
}

.step-number {
   position: relative;
   z-index: 1;
   width: 42px;
   height: 42px;
   margin: 0 auto 1rem;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.05rem;
   font-weight: 700;
   color: #fff;
   background: rgba(0, 0, 0, 0.12);
}

.process-blue .step-number { background: #1d6fe8; }
.process-purple .step-number { background: #5c4adf; }
.process-amber .step-number { background: #f29d19; }
.process-indigo .step-number { background: #2e63e4; }

.process-card h5 {
   position: relative;
   z-index: 1;
   margin: 0 0 1rem;
   font-size: clamp(1.8rem, 2vw, 2.25rem);
   font-weight: 800;
   line-height: 1.2;
   color: #1b2d45;
}

.step-line {
   width: 56px;
   height: 3px;
   margin: 0 auto 1.2rem;
   border-radius: 999px;
   background: rgba(20, 42, 68, 0.9);
}

.process-card p {
   position: relative;
   z-index: 1;
   margin: 0 auto;
   max-width: 250px;
   font-size: 1.02rem;
   line-height: 1.65;
   color: #4d5e76;
}

@media (max-width: 991px) {
   .process-card {
       min-height: 350px;
   }
}

@media (max-width: 575px) {
   .how-it-works-section {
       padding: 52px 0 70px;
   }
   .how-it-works-heading p {
       font-size: 1rem;
   }
   .process-card {
       min-height: 320px;
   }
}

.process-indigo {
    color: #405de6;
    background: linear-gradient(
            145deg,
            #eceeff 0%,
            #e0e4ff 100%
    );
}

.process-icon svg {
    width: 52px;
    height: 52px;
}


/*hover effect*/
.process-blue:hover {
    box-shadow: 0 18px 40px rgba(36, 116, 232, 0.20);
}

.process-green:hover {
    box-shadow: 0 18px 40px rgba(32, 168, 107, 0.20);
}

.process-amber:hover {
    box-shadow: 0 18px 40px rgba(233, 154, 22, 0.20);
}

.process-indigo:hover {
    box-shadow: 0 18px 40px rgba(64, 93, 230, 0.20);
}



/* Colored top section */

.process-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 190px;

    border-radius: 20px 20px 50% 50%;

    opacity: 0.12;
}


/* Decorative dots */

.card-decoration {
    position: absolute;

    top: 25px;
    right: 25px;

    width: 35px;
    height: 35px;

    opacity: 0.25;

    background-image: radial-gradient(
            currentColor 2px,
            transparent 2px
    );

    background-size: 10px 10px;
}


/* Icon */

.process-icon {
    position: relative;

    width: 105px;
    height: 105px;

    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    box-shadow:
            0 12px 25px rgba(0, 0, 0, 0.12);

    z-index: 2;
}


/* Number */

.step-number {
    position: relative;

    width: 40px;
    height: 40px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 700;

    z-index: 2;
}


/* Title */

.process-card h5 {
    position: relative;

    color: #12366b;

    font-size: 1.45rem;
    font-weight: 800;

    margin-bottom: 12px;

    z-index: 2;
}


/* Small line */

.step-line {
    width: 38px;
    height: 3px;

    margin: 0 auto 20px;

    border-radius: 10px;
}


/* Description */

.process-card p {
    position: relative;

    color: #52627a;

    font-size: 1rem;

    line-height: 1.7;

    margin: 0 auto;

    max-width: 240px;

    z-index: 2;
}



/* =========================================
   BLUE
   ========================================= */

.process-blue {
    color: #2474e8;
}

.process-blue::before {
    background: #2474e8;
}

.process-blue .process-icon {
    background: #2474e8;
}

.process-blue .step-number {
    background: #2474e8;
}

.process-blue .step-line {
    background: #2474e8;
}


/* =========================================
   GREEN
   ========================================= */

.process-green {
    color: #20b878;
}

.process-green::before {
    background: #20b878;
}

.process-green .process-icon {
    background: #20b878;
}

.process-green .step-number {
    background: #20b878;
}

.process-green .step-line {
    background: #20b878;
}


/* =========================================
   AMBER
   ========================================= */

.process-amber {
    color: #f5a623;
}

.process-amber::before {
    background: #f5a623;
}

.process-amber .process-icon {
    background: #f5a623;
}

.process-amber .step-number {
    background: #f5a623;
}

.process-amber .step-line {
    background: #f5a623;
}

/* =========================================
   PURPLE
   ========================================= */

.process-purple {
    color: #8b5cf6;
    background: linear-gradient(
            145deg,
            #f3efff 0%,
            #e9ddff 100%
    );
}

.process-purple::before {
    background: #8b5cf6;
}

.process-purple .process-icon {
    background: #8b5cf6;
}

.process-purple .step-number {
    background: #8b5cf6;
}

.process-purple .step-line {
    background: #8b5cf6;
}



/* =========================================
   INDIGO
   ========================================= */

.process-indigo {
    color: #405de6;
}

.process-indigo::before {
    background: #405de6;
}

.process-indigo .process-icon {
    background: #405de6;
}

.process-indigo .step-number {
    background: #405de6;
}

.process-indigo .step-line {
    background: #405de6;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 991px) {

    .how-it-works-heading h2 {
        font-size: 2.1rem;
    }

    .process-card {
        min-height: 450px;
    }

}


@media (max-width: 575px) {

    .how-it-works-section {
        padding: 45px 0 60px;
    }

    .how-it-works-heading h2 {
        font-size: 1.8rem;
    }

    .how-it-works-heading p {
        font-size: 0.95rem;
    }

    .process-card {
        min-height: 420px;
    }
}



/* ---------- Cards ---------- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-title {
    font-weight: 600;
    color: var(--primary-navy);
}

/* ---------- Item Listing Cards ---------- */
.item-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.item-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.item-card-img-container {
    height: 180px;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}
.item-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.item-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}
.item-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.item-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: #F8FAFC;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}
.btn-primary {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: white;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-navy-hover) !important;
    border-color: var(--primary-navy-hover) !important;
    color: white !important;
}
.btn-secondary {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--primary-navy);
}
.btn-outline-primary {
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}
.btn-outline-primary:hover {
    background-color: var(--primary-navy);
    color: #fff;
}
.btn-outline-white {
    color: white;
    border: 2px solid white;
}
.btn-outline-white:hover {
    background-color: white;
    color: var(--primary-navy);
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    background-color: #F8FAFC;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.08);
    background-color: #FFFFFF;
}
.form-label {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.form-alert {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #B42318;
    border-radius: 0.85rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-alert-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #B42318;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.field-error-message {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #B42318;
    font-weight: 500;
}
.form-control.is-invalid,
.form-control.is-invalid:focus,
.form-select.is-invalid,
.form-select.is-invalid:focus {
    border-color: #FCA5A5;
    background-color: #FFF7F7;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.invalid-feedback {
    display: block;
    color: #B42318;
    font-size: 0.8rem;
    font-weight: 500;
}
.privacy-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: #F1F5F9;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-navy);
    margin-bottom: 1rem;
}

/* ---------- Badges ---------- */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}
.badge-lost { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.badge-found { background-color: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.badge-pending { background-color: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.badge-approved, .badge-resolved { background-color: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }
.badge-rejected { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.badge-light { background-color: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }

/* ---------- Tables ---------- */
.table thead th {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    background-color: #F1F5F9;
}
.table tbody td {
    padding: 1rem;
    color: var(--text-main);
    border-color: var(--border-color);
}
.table-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ---------- Utilities ---------- */
.nav-user { font-size: 0.95rem; font-weight: 500; color: var(--text-main); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); background-color: var(--card-bg); border: 1px dashed var(--border-color); border-radius: var(--radius-lg); }

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}
.icon-blue { background-color: #E0F2FE; color: #0284C7; }
.icon-green { background-color: #DCFCE7; color: #16A34A; }
.icon-amber { background-color: #FEF3C7; color: #D97706; }
.icon-indigo { background-color: #E0E7FF; color: #4F46E5; }


/* =========================================================
   SUGGESTED ADDITIONS — append to the existing style.css
   Every value below reuses existing tokens (colors, radii,
   shadows, spacing scale) already defined in :root and the
   component classes above. No new colors are introduced.
   ========================================================= */

/* ---------- Breadcrumb (new, subtle wayfinding above the form) ---------- */
.form-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.form-breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
}
.form-breadcrumb a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}
.form-breadcrumb .sep {
    color: var(--border-color);
    margin: 0 0.4rem;
}

/* ---------- Form section headers (groups related fields) ---------- */
.form-section {
    margin-bottom: 2rem;
}
.form-section:last-of-type {
    margin-bottom: 1.5rem;
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}
.form-section-title svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Small icon badge used in the form-card header ---------- */
.icon-circle-sm {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem auto;
}
.icon-circle-sm svg {
    width: 24px;
    height: 24px;
}

/* Reuses the exact colors already defined for .badge-lost / .badge-found */
.icon-circle-sm.icon-lost { background-color: #FEE2E2; color: #991B1B; }
.icon-circle-sm.icon-found { background-color: #D1FAE5; color: #065F46; }

/* ---------- Upload dropzone (visual upgrade over the bare file input) ---------- */
.upload-dropzone {
    position: relative;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: #F8FAFC;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.upload-dropzone:hover,
.upload-dropzone.is-focused {
    border-color: var(--primary-navy);
    background-color: #FFFFFF;
}
.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-dropzone-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.6rem auto;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-dropzone-icon svg {
    width: 18px;
    height: 18px;
}
.upload-dropzone-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.upload-dropzone-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.upload-filename {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-navy);
}

/* ---------- Current image preview, tidied up as a labeled card ---------- */
.current-image-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #F8FAFC;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.current-image-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.6rem;
    flex-shrink: 0;
}
.current-image-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Slightly stronger focus ring for accessibility on required fields ---------- */
.form-control:required:focus,
.form-select:required:focus {
    box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.12);
}

/* ---------- Required-field marker (accessible, decorative asterisk) ---------- */
.required-mark {
    color: var(--danger-red);
    margin-left: 0.15rem;
}

/* =========================================
   LOST / FOUND DETAIL PAGE
   ========================================= */

.item-detail-page {
    width: 100%;
    padding: 32px 20px 50px;
}

.item-detail-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================
   MAIN DETAIL CARD
   ========================================= */

.item-detail-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(16, 42, 67, 0.08);
    overflow: hidden;
}


/* =========================================
   IMAGE SECTION
   ========================================= */

.item-detail-image-wrap {
    width: 100%;
    height: 430px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.item-detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.item-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b8794;
    font-size: 1rem;
}


/* =========================================
   DETAIL CONTENT
   ========================================= */

.item-detail-content {
    padding: 30px;
}

.item-detail-title {
    margin: 0 0 8px;
    color: #102a43;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
}

.item-detail-subtitle {
    margin: 0 0 25px;
    color: #627d98;
    font-size: 0.95rem;
}


/* =========================================
   DETAIL GRID
   ========================================= */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.detail-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px 17px;
    min-width: 0;
}

.detail-label {
    display: block;
    margin-bottom: 6px;
    color: #7b8794;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value {
    display: block;
    color: #243b53;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.detail-description {
    margin-top: 20px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.detail-description .detail-label {
    margin-bottom: 8px;
}

.detail-description .detail-value {
    white-space: pre-wrap;
}


/* =========================================
   STATUS
   ========================================= */

.detail-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================
   COMMENTS PANEL
   ========================================= */

.comment-panel {
    margin-top: 25px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(16, 42, 67, 0.06);
}

.comment-panel h3,
.comment-panel h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #102a43;
    font-weight: 700;
}


/* =========================================
   EMPTY COMMENTS
   ========================================= */

.empty-comment {
    padding: 25px 15px;
    text-align: center;
    color: #7b8794;
    background: #f8fafc;
    border: 1px dashed #d9e2ec;
    border-radius: 12px;
}


/* =========================================
   COMMENT LIST
   ========================================= */

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 5px;
}

.comment-list::-webkit-scrollbar {
    width: 6px;
}

.comment-list::-webkit-scrollbar-thumb {
    background: #bcccdc;
    border-radius: 10px;
}


/* =========================================
   SINGLE COMMENT
   ========================================= */

.comment-item {
    padding: 15px 17px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    color: #102a43;
    font-size: 0.9rem;
    font-weight: 700;
}

.comment-date {
    color: #829ab1;
    font-size: 0.75rem;
    white-space: nowrap;
}

.comment-body {
    color: #486581;
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}


/* =========================================
   COMMENT FORM
   ========================================= */

.comment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    border: 1px solid #bcccdc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: #2680c2;
    box-shadow: 0 0 0 3px rgba(38, 128, 194, 0.12);
}


/* =========================================
   RESPONSIVE - TABLET
   ========================================= */

@media (max-width: 768px) {

    .item-detail-page {
        padding: 22px 15px 40px;
    }

    .item-detail-image-wrap {
        height: 330px;
    }

    .item-detail-content {
        padding: 22px;
    }

    .item-detail-title {
        font-size: 1.65rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .comment-panel {
        padding: 20px;
    }
}


/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 480px) {

    .item-detail-page {
        padding: 15px 10px 30px;
    }

    .item-detail-card {
        border-radius: 14px;
    }

    .item-detail-image-wrap {
        height: 260px;
    }

    .item-detail-image-wrap img {
        padding: 10px;
    }

    .item-detail-content {
        padding: 18px;
    }

    .item-detail-title {
        font-size: 1.4rem;
    }

    .detail-item {
        padding: 13px 14px;
    }

    .comment-panel {
        padding: 16px;
        border-radius: 13px;
    }

    .comment-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .comment-date {
        white-space: normal;
    }
}