* {

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

}



body {

background:#0f0f10;
color:#e6e6e6;

}



/* ==========================
HEADER
========================== */


header {

height:360px;
background:url("images/banner.jpg") center/cover no-repeat;
position:relative;
overflow:hidden;

}



.overlay {

height:100%;
width:100%;

background:rgba(0,0,0,0.72);

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

text-align:center;

position:relative;

}



/* LOGO WATERMARK */


.overlay::before {

content:"";

position:absolute;

width:340px;

height:340px;

background:url("images/fister.png")
center/contain
no-repeat;

opacity:0.15;

z-index:1;

}




.overlay h1,
.overlay p {

position:relative;

z-index:2;

}



.overlay h1 {

font-size:52px;

letter-spacing:3px;

color:white;

text-shadow:
0 3px 10px rgba(0,0,0,.8);

}



.overlay p {

font-size:20px;

color:#ccc;

margin-top:10px;

}







/* ==========================
NAVIGATION
========================== */


nav {

background:#0a0a0a;

display:flex;

justify-content:center;

gap:25px;

padding:15px;

border-bottom:1px solid #222;

}



nav a {

color:#ddd;

text-decoration:none;

font-weight:bold;

transition:.2s;

}



nav a:hover {

color:white;

}







/* ==========================
CONTAINER
========================== */


.container {

width:90%;

max-width:1100px;

margin:auto;

padding:50px 0;

}







h2 {

margin-top:25px;

margin-bottom:15px;

border-left:4px solid #777;

padding-left:12px;

color:white;

letter-spacing:1px;

}







/* ==========================
CARDS
========================== */


.card,
.aircraft-card,
.five-line-card,
.operation-status {

background:#1b1b1d;

padding:22px;

margin:18px 0;

border-left:4px solid #777;

border-radius:10px;

box-shadow:
0 6px 18px rgba(0,0,0,.4);

transition:.25s;

}



.card:hover {

background:#222225;

transform:translateY(-3px);

}




.card h3,
.aircraft-card h3,
.five-line-card h3 {

color:white;

margin-bottom:15px;

}





.cards {

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));

gap:20px;

}






/* ==========================
FORMS
========================== */


input,
select {

width:100%;

background:#18181b;

border:1px solid #333;

color:white;

padding:12px;

margin:6px 0;

border-radius:6px;

}



select {

cursor:pointer;

}



input:focus,
select:focus {

outline:none;

border-color:#888;

}







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


button {

background:#1f1f22;

color:white;

border:1px solid #444;

padding:12px 18px;

border-radius:6px;

cursor:pointer;

font-weight:bold;

margin-top:10px;

transition:.2s;

}



button:hover {

background:#333;

transform:translateY(-2px);

}







/* ==========================
AIRCRAFT
========================== */


.aircraft-card p {

line-height:1.7;

}



.remove-aircraft-button {

background:#650000;

border-color:#900;

width:100%;

}



.remove-aircraft-button:hover {

background:#a00000;

}







/* ==========================
5 LINE
========================== */


.five-line-card {

line-height:1.6;

}






/* ==========================
EMPTY STATES
========================== */


.empty-list {

color:#777;

padding:20px;

text-align:center;

}







/* ==========================
DELETE CONFIRMATION
========================== */


.delete-overlay {

position:fixed;

inset:0;

background:
rgba(0,0,0,.75);

display:flex;

justify-content:center;

align-items:center;

z-index:9999;

}



.delete-box {

background:#151517;

padding:30px;

border-radius:12px;

border:1px solid #444;

width:350px;

text-align:center;

}





/* ==========================
FOOTER
========================== */


footer {

text-align:center;

padding:30px;

margin-top:40px;

background:#0a0a0a;

color:#777;

border-top:1px solid #222;

}







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


@media(max-width:700px){


.overlay h1 {

font-size:32px;

}


nav {

flex-direction:column;

align-items:center;

}


.container {

width:95%;

}

* {

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

}



body {

background:#0f0f10;
color:#e6e6e6;

}



/* ==========================
HEADER
========================== */


header {

height:360px;
background:url("images/banner.jpg") center/cover no-repeat;
position:relative;
overflow:hidden;

}



.overlay {

height:100%;
width:100%;

background:rgba(0,0,0,0.72);

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

text-align:center;

position:relative;

}



/* LOGO WATERMARK */


.overlay::before {

content:"";

position:absolute;

width:340px;

height:340px;

background:url("images/fister.png")
center/contain
no-repeat;

opacity:0.15;

z-index:1;

}




.overlay h1,
.overlay p {

position:relative;

z-index:2;

}



.overlay h1 {

font-size:52px;

letter-spacing:3px;

color:white;

text-shadow:
0 3px 10px rgba(0,0,0,.8);

}



.overlay p {

font-size:20px;

color:#ccc;

margin-top:10px;

}







/* ==========================
NAVIGATION
========================== */


nav {

background:#0a0a0a;

display:flex;

justify-content:center;

gap:25px;

padding:15px;

border-bottom:1px solid #222;

}



nav a {

color:#ddd;

text-decoration:none;

font-weight:bold;

transition:.2s;

}



nav a:hover {

color:white;

}







/* ==========================
CONTAINER
========================== */


.container {

width:90%;

max-width:1100px;

margin:auto;

padding:50px 0;

}







h2 {

margin-top:25px;

margin-bottom:15px;

border-left:4px solid #777;

padding-left:12px;

color:white;

letter-spacing:1px;

}







/* ==========================
CARDS
========================== */


.card,
.aircraft-card,
.five-line-card,
.operation-status {

background:#1b1b1d;

padding:22px;

margin:18px 0;

border-left:4px solid #777;

border-radius:10px;

box-shadow:
0 6px 18px rgba(0,0,0,.4);

transition:.25s;

}



.card:hover {

background:#222225;

transform:translateY(-3px);

}




.card h3,
.aircraft-card h3,
.five-line-card h3 {

color:white;

margin-bottom:15px;

}





.cards {

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));

gap:20px;

}






/* ==========================
FORMS
========================== */


input,
select {

width:100%;

background:#18181b;

border:1px solid #333;

color:white;

padding:12px;

margin:6px 0;

border-radius:6px;

}



select {

cursor:pointer;

}



input:focus,
select:focus {

outline:none;

border-color:#888;

}







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


button {

background:#1f1f22;

color:white;

border:1px solid #444;

padding:12px 18px;

border-radius:6px;

cursor:pointer;

font-weight:bold;

margin-top:10px;

transition:.2s;

}



button:hover {

background:#333;

transform:translateY(-2px);

}







/* ==========================
AIRCRAFT
========================== */


.aircraft-card p {

line-height:1.7;

}



.remove-aircraft-button {

background:#650000;

border-color:#900;

width:100%;

}



.remove-aircraft-button:hover {

background:#a00000;

}







/* ==========================
5 LINE
========================== */


.five-line-card {

line-height:1.6;

}






/* ==========================
EMPTY STATES
========================== */


.empty-list {

color:#777;

padding:20px;

text-align:center;

}







/* ==========================
DELETE CONFIRMATION
========================== */


.delete-overlay {

position:fixed;

inset:0;

background:
rgba(0,0,0,.75);

display:flex;

justify-content:center;

align-items:center;

z-index:9999;

}



.delete-box {

background:#151517;

padding:30px;

border-radius:12px;

border:1px solid #444;

width:350px;

text-align:center;

}





/* ==========================
FOOTER
========================== */


footer {

text-align:center;

padding:30px;

margin-top:40px;

background:#0a0a0a;

color:#777;

border-top:1px solid #222;

}







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


@media(max-width:700px){


.overlay h1 {

font-size:32px;

}


nav {

flex-direction:column;

align-items:center;

}


.container {

width:95%;

}



}

}
/* ==========================
CONFIRMATION MODAL
========================== */


.confirm-overlay {

position:fixed;

inset:0;

background:rgba(0,0,0,.75);

display:flex;

align-items:center;

justify-content:center;

z-index:9999;

}



.confirm-box {

background:#151517;

border:1px solid #444;

padding:30px;

border-radius:12px;

width:350px;

text-align:center;

box-shadow:
0 10px 30px rgba(0,0,0,.6);

}



.confirm-box h3 {

color:white;

margin-bottom:15px;

}



.confirm-box p {

color:#ccc;

margin-bottom:25px;

}



.confirm-buttons {

display:flex;

justify-content:center;

gap:15px;

}



.confirm-buttons button {

min-width:100px;

}



.confirm-cancel {

background:#333;

}



.confirm-danger {

background:#700;

border-color:#900;

}



.confirm-danger:hover {

background:#a00;

}
/* ==========================
NOTIFICATION TOAST
========================== */


.toast {

position:fixed;

bottom:30px;

right:30px;

background:#151517;

color:white;

padding:18px 25px;

border-radius:10px;

border-left:4px solid #777;

box-shadow:
0 8px 25px rgba(0,0,0,.6);

z-index:10000;

animation:
slideIn .3s ease;

}



.toast.success {

border-left-color:#4caf50;

}



.toast.error {

border-left-color:#a00;

}



@keyframes slideIn {


from {

transform:translateX(120%);

opacity:0;

}


to {

transform:translateX(0);

opacity:1;

}


}

/* ==========================
CONNECTED MEMBERS PANEL
========================== */


.members-panel{

position:fixed;

right:20px;

top:120px;

width:260px;

background:#1b1b1d;

padding:20px;

border-left:4px solid #777;

border-radius:10px;

box-shadow:
0 6px 18px rgba(0,0,0,.5);

z-index:1000;

}



.member-card{

background:#151517;

padding:12px;

margin:10px 0;

border-radius:6px;

border-left:3px solid #555;

}



.member-card span{

color:#aaa;

font-size:14px;

}



@media(max-width:1100px){


.members-panel{

position:relative;

top:auto;

right:auto;

width:auto;

margin-bottom:20px;

}


}

/* ==========================
OPERATION DASHBOARD
========================== */


#operation-dashboard{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(250px,1fr));

gap:15px;

margin-top:15px;

}



.operation-card{


background:#151517;

padding:18px;

border-radius:10px;

border-left:4px solid #777;

box-shadow:
0 5px 15px rgba(0,0,0,.4);


}



.operation-card h3{


color:white;

margin-bottom:10px;


}



.operation-card p{


line-height:1.6;

color:#ccc;


}
/* ==========================
REFERENCE LIBRARY
========================== */


.reference-section {

    background:#1b1b1d;

    padding:25px;

    margin:25px 0;

    border-left:4px solid #777;

    border-radius:10px;

    box-shadow:
    0 6px 18px rgba(0,0,0,.4);

}



.reference-section h2 {

    margin-top:0;

}





.reference-card {


    background:#18181b;

    border:1px solid #333;

    padding:18px;

    margin:15px 0;

    border-radius:8px;

    line-height:1.6;

}



.reference-card h3 {

    color:white;

    margin-bottom:10px;

    border-bottom:1px solid #444;

    padding-bottom:8px;

}



.reference-code {

    color:#ddd;

    font-weight:bold;

}



.reference-description {

    color:#aaa;

}





/* ==========================
REFERENCE TABLES
========================== */


.reference-image-container {

    background:#151517;

    padding:20px;

    margin:25px 0;

    border-left:4px solid #777;

    border-radius:10px;

    width:100%;

    overflow:hidden;

}



.reference-image-title {

    color:white;

    font-size:20px;

    font-weight:bold;

    margin-bottom:15px;

}



/* STACK TABLES VERTICALLY */

.reference-tables {

    display:flex;

    flex-direction:column;

    gap:30px;

}



/* PNG TABLE DISPLAY */

.reference-image-container img {

    display:block;

    width:80%;

    max-width:80%;

    height:auto;

    object-fit:contain;

    border-radius:8px;

    border:1px solid #333;

}





/* ==========================
REFERENCE SEARCH
========================== */


#referenceSearch {


    width:100%;

    background:#18181b;

    color:white;

    border:1px solid #333;

    padding:14px;

    border-radius:6px;

    margin-bottom:25px;


}




#referenceSearch:focus {


    outline:none;

    border-color:#888;


}





/* ==========================
REFERENCE GRID
========================== */


.reference-grid {


display:grid;


grid-template-columns:
repeat(auto-fit,minmax(300px,1fr));


gap:20px;


}







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


@media(max-width:700px){


.reference-card {


font-size:14px;


}



.reference-image-container {


padding:10px;


}


}
/* ==========================
NAVIGATION LINK STATES
========================== */

nav a,
nav a:visited {

    color:#ddd;

    text-decoration:none;

    font-weight:bold;

}


nav a:hover {

    color:white;

}


nav a:active {

    color:white;

}
/* ==========================
CARD LINK STATES
========================== */

.cards a,
.cards a:visited {

    color:#e6e6e6;

    text-decoration:none;

}


.cards a:hover {

    color:white;

}


.cards a:active {

    color:white;

}
/* ==========================
FIRE MISSION LOCK STATE
========================== */


.firemission-table .locked {

    opacity:1;

}



.firemission-table .locked input {

    background:#141416;

    color:#e6e6e6;

    border-color:#555;

    font-weight:bold;

    cursor:not-allowed;

}



.firemission-table .locked button:not(.remove-aircraft-button) {

    background:#333;

    color:white;

}



.firemission-table .locked button:not(.remove-aircraft-button):hover {

    background:#444;

}





/* ==========================
FIRE MISSION EDIT STATE
========================== */


.firemission-table .mission-row input {

    transition:.2s;

}



.firemission-table .mission-row input:focus {

    border-color:#888;

}





/* ==========================
FIRE MISSION TABLE
========================== */


.firemission-table {

    width:100%;

    border-collapse:collapse;

}



.firemission-table th {

    background:#0a0a0a;

    color:white;

    padding:12px;

    text-align:left;

    border-bottom:1px solid #333;

}



.firemission-table td {

    padding:8px;

}





.firemission-table input {

    width:100%;

    min-width:120px;

}





/* ==========================
CLEAR BUTTON
========================== */


.firemission-table .remove-aircraft-button {

    background:#650000;

    border-color:#900;

    color:white;

}



.firemission-table .remove-aircraft-button:hover {

    background:#a00000;

}
/* Responsive interface */
nav { flex-wrap: wrap; align-items: center; gap: 12px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
img { max-width: 100%; height: auto; }
input, select, textarea { box-sizing: border-box; max-width: 100%; }
@media (max-width: 700px) {
 .container { width: 94%; padding: 20px 0; }
 .cards, #operation-dashboard { grid-template-columns: minmax(0, 1fr); }
 input, select, textarea { font-size: 16px; }
 button { min-height: 44px; max-width: 100%; white-space: normal; }
 .card { min-width: 0; overflow-x: auto; }
 nav { gap: 8px 16px; padding: 8px; }
}
@media(max-width:700px){
 body{overflow-wrap:anywhere} main{max-width:100%;box-sizing:border-box} 
 .workspace-grid{grid-template-columns:minmax(0,1fr)}
 .card select,.card textarea{width:100%;min-width:0;min-height:44px}
 .card button{margin-block:5px;touch-action:manipulation}
 table{max-width:100%} pre{white-space:pre-wrap;overflow-wrap:anywhere}
}

/* call signs are only asked for at aircraft check-in; the old boxes stay in the page, hidden, so saved drafts keep working */
.no-cs{display:none!important}
