/* =====================================
   FZMB Operations Portal
   Tactical Dark Theme
===================================== */

:root{

    --bg:#0f172a;
    --bg2:#111827;

    --card:#1e293b;
    --card2:#273549;

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --success:#22c55e;
    --danger:#dc2626;

    --text:#f8fafc;
    --muted:#94a3b8;

    --border:#334155;

    --shadow:0 20px 40px rgba(0,0,0,.35);

    --radius:18px;

}

/* ========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Arial,Helvetica,sans-serif;
}

/* ========================= */

html{

    scroll-behavior:smooth;

}

/* ========================= */

body{

    background:
    linear-gradient(
    135deg,
    #0f172a,
    #111827,
    #172554);

    color:var(--text);

    min-height:100vh;

    padding:20px;

}

/* ========================= */

.card{

    width:100%;

    max-width:820px;

    margin:30px auto;

    background:

    rgba(30,41,59,.82);

    backdrop-filter:blur(18px);

    border:

    1px solid rgba(255,255,255,.05);

    border-radius:22px;

    box-shadow:var(--shadow);

    padding:36px;

}

/* ========================= */

h1{

    text-align:center;

    color:white;

    margin-bottom:28px;

    font-size:clamp(2rem,5vw,2.4rem);

    font-weight:700;

    letter-spacing:.3px;

}

h2{

    color:white;

}

/* ========================= */

p{

    color:var(--muted);

}

/* ========================= */

label{

    display:block;

    margin-top:18px;

    margin-bottom:8px;

    font-weight:600;

    color:#dbeafe;

}

/* ========================= */

input,
textarea,
select{

    width:100%;

    padding:15px;

    border-radius:14px;

    border:1px solid var(--border);

    background:#334155;

    color:white;

    font-size:15px;

    transition:.25s;

}

input::placeholder,
textarea::placeholder{

    color:#94a3b8;

}

textarea{

    resize:vertical;

}

/* ========================= */

input:focus,
textarea:focus,
select:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:

    0 0 0 3px rgba(37,99,235,.25);

}

/* ========================= */

button{

    width:100%;

    margin-top:28px;

    padding:15px;

    border:none;

    border-radius:14px;

    background:var(--primary);

    color:white;

    font-size:17px;

    font-weight:600;

    cursor:pointer;

    transition:
    background .25s,
    transform .2s,
    box-shadow .2s;

}

button:hover{

    background:var(--primary-hover);

    transform:translateY(-2px);

    box-shadow:

    0 10px 22px rgba(37,99,235,.35);

}

button:active{

    transform:scale(.98);

}

button:disabled{

    opacity:.65;

    cursor:not-allowed;

}

/* ========================= */

.back-btn{

    position:fixed;

    top:20px;

    left:20px;

    padding:12px 18px;

    background:#1e293b;

    color:white;

    text-decoration:none;

    border-radius:12px;

    border:1px solid var(--border);

    backdrop-filter:blur(10px);

    transition:.2s;

    z-index:1000;

}

.back-btn:hover{

    background:#334155;

    border-color:var(--primary);

    transform:translateY(-2px);

}

/* ========================= */

.success{
    display:none;
    margin-top:22px;
    background:#14532d;
    color:#dcfce7;
    border-radius:12px;
    padding:14px;
}

.error{
    display:none;
    margin-top:22px;
    background:#7f1d1d;
    color:#fee2e2;
    border-radius:12px;
    padding:14px;
}

/* ========================= */

table{

    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:14px;

}

th{

    background:#273549;

    color:white;

}

th,
td{

    padding:14px;

}

tr:nth-child(even){

    background:#223047;

}

/* ========================= */

.file-box{

    background:#334155;

    border-radius:14px;

    padding:15px;

}

/* ========================= */

hr{

    border:none;

    border-top:1px solid rgba(255,255,255,.08);

    margin:26px 0;

}

/* ========================= */

::selection{

    background:#2563eb;

    color:white;

}

/* ========================= */

@media(max-width:900px){

.card{

    max-width:95%;

}

}

@media(max-width:700px){

body{

    padding:14px;

}

.card{

    padding:24px;

    border-radius:18px;

}

button{

    font-size:16px;

}

.back-btn{

    top:14px;

    left:14px;

    padding:10px 14px;

}

}

@media(max-width:480px){

.card{

    padding:20px;

}

h1{

    font-size:1.8rem;

}

input,
textarea,
select{

    padding:13px;

}

button{

    padding:14px;

}

}
/* =========================================
   SECONDARY BUTTON
========================================= */

.secondary-btn{
    background:#475569;
}

.secondary-btn:hover{
    background:#64748b;
}

/* =========================================
   SUBTITLE
========================================= */

.subtitle{
    text-align:center;
    color:var(--muted);
    margin:-10px 0 28px;
    font-size:15px;
}

/* =========================================
   TWO COLUMN LAYOUT
========================================= */

.two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

/* =========================================
   SECTION TITLES
========================================= */

.section-title{
    margin-top:12px;
    margin-bottom:8px;
    font-size:20px;
    font-weight:700;
    color:#fff;
}

.section-desc{
    color:var(--muted);
    margin-bottom:16px;
    line-height:1.5;
}

/* =========================================
   SCORE ROW
========================================= */

.score-row{
    display:flex;
    align-items:center;
    gap:12px;
}

.score-row input{
    width:90px;
}

.score-suffix{
    color:var(--muted);
    font-weight:600;
}

/* =========================================
   RADIO BUTTONS
========================================= */

.radio-group{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.radio-option{
    display:flex;
    align-items:center;
    gap:8px;
    background:#273549;
    padding:12px 16px;
    border-radius:12px;
    cursor:pointer;
}

.radio-option input{
    width:auto;
}

/* =========================================
   YES / NO
========================================= */

.yn-row{
    display:flex;
    gap:20px;
    margin:10px 0 20px;
}

.yn-row label{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
}

.yn-row input{
    width:auto;
}

/* =========================================
   LOGS PAGE
========================================= */

.logs-card{
    max-width:1300px;
}

.controls{
    display:grid;
    grid-template-columns:minmax(280px,2fr) minmax(180px,1fr) minmax(180px,1fr);
    gap:14px;
    margin-bottom:24px;
    align-items:center;
}

.controls input,
.controls select{
    flex:1;
    min-width:220px;
}

.action-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.action-btns{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.action-btns button{
    width:auto;
    margin-top:0;
}

.count{
    color:var(--muted);
}

.log-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.log-card{
    background:#273549;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    transition:.25s;
}

.log-card:hover{
    border-color:var(--primary);
}

.log-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px;
    cursor:pointer;
}

.log-header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-weight:bold;
}

.log-meta{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.log-username{
    font-weight:700;
}

.type-badge{
    display:inline-block;
    color:white;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
}

.log-date{
    color:var(--muted);
    font-size:14px;
}

.chevron{
    font-size:18px;
    transition:.25s;
}

.log-card.open .chevron{
    transform:rotate(180deg);
}

.log-body{
    display:none;
    padding:22px;
    border-top:1px solid var(--border);
}

.log-card.open .log-body{
    display:block;
}

.field{
    margin-bottom:16px;
}

.field-label{
    font-weight:700;
    margin-bottom:6px;
    color:#cbd5e1;
}

.field-value{
    background:#334155;
    border-radius:10px;
    padding:12px;
    word-break:break-word;
}

.empty{
    text-align:center;
    color:var(--muted);
    padding:40px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:768px){

.two-col{
    grid-template-columns:1fr;
}

.score-row{
    flex-wrap:wrap;
}

.radio-group{
    flex-direction:column;
}

.action-bar{
    flex-direction:column;
    align-items:stretch;
}

.action-btns{
    flex-direction:column;
}

.action-btns button{
    width:100%;
}

.log-header{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
}

.log-date{
    margin-left:60px;
}

}

/* =====================================
   LOGS VIEWER
===================================== */

.logs-card{
    max-width:1300px;
}

.controls{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:14px;
    margin-bottom:24px;
}

.action-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:12px;
}

.action-btns{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.log-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.log-card{
    background:#2a364b;
    border:1px solid #3b82f6;
    border-radius:18px;
    overflow:hidden;
    transition:.25s;
}

.log-card:hover{
    transform:translateY(-2px);
}

.log-header{
    display:flex;
    align-items:center;
    padding:18px 22px;
    cursor:pointer;
    gap:16px;
}

.log-header-left{
    display:flex;
    align-items:center;
    gap:16px;
    flex:1;
}

.avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    color:white;
    font-size:18px;
}

.log-meta{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.log-username{
    color:white;
    font-size:18px;
    font-weight:700;
}

.type-badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    color:white;
    font-size:12px;
    font-weight:600;
}

.log-date{
    color:#94a3b8;
    font-size:14px;
    white-space:nowrap;
}

.chevron{
    font-size:22px;
    transition:.25s;
}

.log-body{
    display:none;
    padding:24px;
    border-top:1px solid rgba(255,255,255,.08);
    background:#1f2937;
}

.log-card.open .log-body{
    display:block;
}

.log-card.open .chevron{
    transform:rotate(180deg);
}

.field{
    margin-bottom:18px;
}

.field-label{
    color:#60a5fa;
    font-weight:700;
    margin-bottom:6px;
}

.field-value{
    background:#334155;
    padding:12px;
    border-radius:10px;
    color:white;
    white-space:pre-wrap;
    word-break:break-word;
}

.empty{
    text-align:center;
    color:#94a3b8;
    padding:40px;
}
@media (max-width: 900px){

    .controls{
        grid-template-columns:1fr;
    }

}