/*
 * Nowy styl dopasowany do szablonu "Traveller"
 * Ciemne tło, zielone akcenty, styl retro-terminala
 */
 
 
 
ul, ul li {
	display: block;
	list-style: none;
	margin: 1;
	padding: 1;
	
}

li
{
border: 1px solid white;	
}


ul li {
	float: left;
}

ul a:link, ul a:visited {
	text-decoration: none;
	display: block;
	width: 200px;
	text-align: center;
	background-color: grey;
	color: white;
	border: 1px outset silver;
	padding: 1px;

}

ul a:hover {
	border-style: inset;
	padding: 1px 1px 1px 3px;
	border: 1px solid red;
}

body {
    font-family: Verdana, sans-serif;
    background-color: #000;
    color: #FFF;
    line-height: 1;
    margin: 1px;
    font-size: 0.9em; /* Zmniejszono domyślny rozmiar czcionki */
    
    background-image: url('tlo_pojazdy.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
   
}
.menu {
	border: 1px solid green;
	margin-bottom: 1px;
	display: flex;
	justify-content: center; /* Centruje elementy w poziomie */
}

.container {
    max-width: 90%;
    margin: auto;
    background: rgba(0, 0, 0, 0.7); /* Półprzezroczyste tło głównego panelu */
    padding: 1px;
    border: 1px solid darkgreen;
    border-radius: 0; /* Ostre krawędzie dla stylu retro */
}

h1, h2, h3, h4 {
    color: lightgreen; /* Zielony kolor nagłówków */
    font-weight: normal;
}

h2 {
    border-bottom: 1px solid darkgreen;
    padding-bottom: 1px;
}

h4 {
    grid-column: 1 / -1;
    border-bottom: 1px solid #004d00;
    padding-bottom: 5px;
    margin-top: 5px;
}

.step {
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid #003300;
    background-color: rgba(0, 20, 0, 0.3);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ccc;
}

select, input[type="number"] {
    width: 100%;
    padding: 1px;
    border-radius: 0;
    border: 1px solid darkgreen;
    background-color: grey;
    color: white;
    box-sizing: border-box;
    font-family: Verdana, sans-serif;
}

button, .remove-btn {
    padding: 8px 12px;
    background-color: grey;
    color: white;
    border: 1px outset #555;
    cursor: pointer;
}
button:hover, .remove-btn:hover {
    border-style: inset;
    border-color: #888;
}
#add-mount-btn {
    margin-left: 0;
}

.crew-passenger-group, .grid-3-col, .grid-2-col {
    display: grid;
    gap: 20px;
}

.crew-passenger-group, .grid-2-col {
    grid-template-columns: 1fr 1fr;
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.custom-option label {
    margin-bottom: 0;
    font-weight: normal;
    flex-shrink: 0;
    color: #FFF;
	min-width: 180px;
}
.custom-option input[type="checkbox"] {
    width: auto;
}
.custom-option input[type="number"], .custom-option select {
    width: auto;
    min-width: 150px;
    flex-grow: 1;
}

.custom-section {
    display: grid;
   grid-template-columns: repeat(3, 1fr);
    gap: 5px 20px;
}

.validation-message, .suggestion {
    color: #FF4136; /* Jasny czerwony na ciemnym tle */
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: bold;
}

.output-section {
    margin-top: 25px;
}

.vehicle-roster {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid darkgreen;
    padding: 15px;
}

.roster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.roster-item {
    background: rgba(10, 20, 10, 0.5);
    padding: 10px;
    border-left: 2px solid darkgreen;
    word-wrap: break-word;
}


 .traits-item, .weapons-item, .modifications-item, .total-cost {
    grid-column: 1 / -1;
}

.total-cost {
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
    background-color: darkgreen;
    color: white;
}

.biotech-section {
    background-color: rgba(60, 40, 0, 0.5);
    border: 1px solid #8c5a00;
    padding: 10px;
}
.biotech-section label {
    color: #ff851b;
}

.hidden {
    display: none;
}

.weapon-entry {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.mount-entry {
    border: 1px solid #004d00;
    border-radius: 0;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(0,0,0,0.3);
}

.mount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.mount-header select {
    flex-grow: 1;
}

.mount-capacity {
    font-weight: bold;
    color: lightgreen;
    white-space: nowrap;
}

.weapon-slots-container {
    padding-left: 20px;
    border-left: 2px solid #004d00;
    margin-top: 10px;
}

.weapon-slot {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.weapon-slot select {
    flex-grow: 1;
}

.add-weapon-to-mount-btn {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.9em;
}

#armour-allocation-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #004d00;
}

#armour-allocation-section h4 {
    margin-bottom: 10px;
}

.armour-grid {
    gap: 10px 20px;
}


/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .grid-3-col, .grid-2-col, .crew-passenger-group, .custom-section, .weapon-entry {
        grid-template-columns: 1fr;
    }
}

/* Style dla przycisku drukowania */
#print-btn {
    display: block;
    margin: 20px auto 10px;
    padding: 10px 20px;
    font-size: 16px;
}

/* Reguły dla wydruku (bez zmian, pozostają czarno-białe i czytelne) */
@media print {
    /* Ukrywa wszystko na stronie domyślnie */
    body > * {
        display: none !important;
    }

    /* Pokazuje tylko kontener do druku i jego zawartość */
    #print-output {
        display: block !important;
        visibility: visible !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        font-family: sans-serif;
        color: #000;
        font-size: 9pt; /* Zmniejszamy czcionkę, aby zmieścić 3 kolumny */
        border: 2px solid #000; /* DODANE OBRAMOWANIE */
    }

    #print-output .print-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start;
        gap: 20px; /* Zmniejszamy odstęp między kolumnami */
    }

    /* ZMIANA na 3 kolumny */
    #print-output .print-column {
        display: block !important;
        flex: 1;
        width: 32%; /* Szerokość dla 3 kolumn */
        page-break-inside: avoid;
    }
    
    #print-output h1 { 
        text-align: center; border-bottom: 2px solid #000;
        padding-bottom: 10px; margin-bottom: 20px; font-size: 16pt;
    }
    #print-output h2 { 
        border-bottom: 1px solid #666; padding-bottom: 5px;
        margin-top: 0; font-size: 12pt;
    }
    #print-output h3 { margin-top: 12px; margin-bottom: 5px; font-size: 10pt; }
    #print-output ul { 
        list-style-position: inside; padding-left: 0; margin: 5px 0 15px 0;
        page-break-inside: avoid;
    }
    #print-output li { padding: 1px 0; }

    #print-output .print-table { width: 100%; border-collapse: collapse; }
    #print-output .print-table td { padding: 4px; border-bottom: 1px solid #ccc; }
    #print-output .print-table tr:last-child td { border-bottom: none; }
    #print-output .print-table .cost-row td { font-weight: bold; border-top: 2px solid #000; }
}
/* Ukrywa kontener wydruku podczas normalnego widoku strony */
#print-output {
    display: none;
}

#maintenance-cost {
    color: #FFD700; /* Złoto-żółty kolor */
    font-weight: bold;
}