/* Logo wyśrodkowane u góry */
.logo-container {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	margin-top: 20px;
}

.logo-container img {
	max-width: 300px;
	height: auto;
}

/* Ekran powitalny */
.welcome-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	border-radius: 10px;
	width: 80%;
	max-width: 800px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	padding: 20px;
	margin: 0 auto;
}

.welcome-screen button {
	margin-top: 20px;
	padding: 15px 30px;
	background-color: #05612d;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 18px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.welcome-screen button:hover {
	background-color: #045123;
}

/* Reset marginesów i paddingów */
body {
	margin: 0;
	padding: 0;
	background-color: #05612d;
	font-family: Arial, sans-serif;
	height: 100vh;
	overflow: auto;
}

/* Kontener formularza */
.container {
	background-color: white;
	border-radius: 10px;
	width: 90%;
	max-width: 1100px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	padding: 25px;
	position: relative;
	margin: 30px auto;
}

/* Sekcje formularza */
.form-section {
	display: none;
}

.form-section.active {
	display: block;
}

/* Układ wierszy */
.form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 200px;
}

.form-group-full {
	width: 100%;
	display: flex;
	flex-direction: column;
	margin-bottom: 15px;
}

label {
	margin-bottom: 5px;
	font-weight: bold;
}

/* Style inputów/selectów */
input,
select {
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
}

.input-error {
        border-color: red;
}

/* Przycisk ogólny */
button {
	width: 48%;
	padding: 12px;
	border-radius: 5px;
	border: none;
	background-color: #05612d;
	color: white;
	font-size: 18px;
	cursor: pointer;
	margin-bottom: 10px;
	transition: background-color 0.2s ease;
}

button:hover {
	background-color: #045123;
}

/* Kontener przycisków nawigacyjnych */
.button-container {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
	flex-wrap: wrap;
}


/* Styl przycisku "Wstecz" */
.button-back {
	background-color: #999;
}

.button-back:hover {
	background-color: #777;
}

/* Sekcja siatki z godzinami */
#gridContainer {
	margin-top: 30px;
}

#gridContainer h3 {
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: bold;
}

/* Grid doków */
#gridButtons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-start;
}

/* Jeden dok */
#gridButtons > div {
	background-color: #fff;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 10px;
	min-width: 160px;
	flex: 1 1 200px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

#gridButtons h4 {
	text-align: center;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: bold;
}

/* Przycisk godziny */
#gridButtons button {
	width: 100%;
	margin-bottom: 8px;
	padding: 10px;
	background-color: #05612d;
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 6px;
	transition: background-color 0.2s ease;
	cursor: pointer;
	font-size: 15px;
}

#gridButtons button:hover:not(:disabled) {
	background-color: #034d22;
}

#gridButtons button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
	color: #666;
}

#gridButtons button.selected {
	outline: 3px solid #f11717;
}
/* Styl checkboxa z regulaminem */
.regulamin-container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	text-align: center;
}

.regulamin-container input[type="checkbox"] {
	transform: scale(1.4);
	cursor: pointer;
	margin-right: 8px;
}

.regulamin-container span {
	font-size: 16px;
}

.regulamin-container a {
	color: #262c3c;
	text-decoration: underline;
	font-weight: bold;
	margin-left: 5px;
}

.regulamin-container a:hover {
        text-decoration: none;
}

/* Ekran wyboru operacji */
.operation-choice {
        display: flex;
        gap: 20px;
        margin-top: 20px;
}

.operation-btn {
        background: #fff;
        color: #000;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        padding: 20px 30px;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
        border: none;
}

.operation-btn:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.order-add {
        margin-top: 10px;
        width: auto;
        padding: 6px 12px;
}

/* Kontener pojedynczego numeru zamówienia */
.order-input {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-top: 10px;
}
.order-input input {
        flex: 1;
}
.order-input:first-child {
        margin-top: 0;
}


.info-icon {
        display: inline-block;
        width: 18px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        border-radius: 50%;
        background-color: #05612d;
        color: #fff;
        font-size: 12px;
        margin-right: 5px;
        cursor: help;
}

/* Language switch dropdown */
.language-switch {
        position: relative;
        text-align: right;
        padding: 10px;
}

.language-switch span {
        color: white;
        cursor: pointer;
}

.language-switch .language-menu {
        display: none;
        position: absolute;
        right: 10px;
        background-color: #05612d;
        list-style: none;
        margin: 0;
        padding: 5px 0;
        border: 1px solid #fff;
        border-radius: 4px;
        z-index: 1000;
}

.language-switch:hover .language-menu {
        display: block;
}

.language-switch .language-menu li a {
        display: block;
        padding: 5px 15px;
        color: white;
        text-decoration: none;
}

.language-switch .language-menu li a:hover {
        background-color: #045123;
}
/* Confirmation modal */
#confirmationModal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2000;
}
#confirmationModal .modal-content {
        background: #fff;
        padding: 30px;
        border-radius: 8px;
        text-align: center;
}
#confirmationModal button {
        width: auto;
        margin-top: 20px;
}

.disabled-info {
        color: red;
        margin-top: 5px;
        font-size: 14px;
}

#submitAwizacjaBtn {
        display: flex;
        align-items: center;
        justify-content: center;
}

#submitAwizacjaBtn .spinner {
        display: none;
        margin-left: 8px;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,0.6);
        border-top: 2px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
}

#submitAwizacjaBtn.loading .spinner {
        display: inline-block;
}

@keyframes spin {
        to { transform: rotate(360deg); }
}
