html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #39496b;
    margin: 0;
    padding: 40px;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.container {
    min-width: 632px;
    margin: auto;
    margin-top: 5%;
    background: #111827;
    color: rgb(231, 230, 230);
    padding: 24px;
    border-radius: 8px;
    flex: 0;
    flex-shrink: 0;
}

.message {
    color: rgb(167, 165, 165);
}

.error {
    color: rgb(180, 6, 6);
}

.success {
    color: rgb(46, 138, 9);
}

h1 {
    margin-top: 0;
}

form {
    display:flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

input[type="file"] {
    flex: 1 1 300px;
    padding: 12px;
    border: 1px solid #000000;
    border-radius: 8px;
    background: rgb(82, 82, 82);
    cursor: pointer;
}

input[type="password"] {
    flex: 1 1 300px;
    padding: 12px;
    border: 1px solid #000000;
    border-radius: 8px;
    background: rgb(173, 173, 173);
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
}

.button {
    flex-shrink: 0;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: rgb(82, 82, 82);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

button {
    flex-shrink: 0;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: rgb(82, 82, 82);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

button:hover {
    background: #202020;
}

button:active {
    transform: scale(0.98);
}

select {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 1px solid #000000;
    border-radius: 8px;
    background: rgb(82, 82, 82);
    color: white;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
}

select:hover {
    background: #202020;
}

select:focus {
    border-color: #d6d6d6;
}

select:active {
    transform: scale(0.98);
}

option {
    background: rgb(82, 82, 82);
    color: white;
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #cfcfcf;
    border-top: 5px solid #202020;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 24px auto;
}

.hidden {
    display: none;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


#toast-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    max-width: 350px;
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: #03702b;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

.toast.warning {
    background: #f59e0b;
}

footer {
    width: 100%;
    padding: 20px 40px;

    background: #111827;
    color: #f3f4f6;

    margin-top: auto;/*5%;*/
    border-top: 1px solid #374151;

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

    gap: 12px;

    font-size: 14px;
    text-align: center;

    box-sizing: border-box;
}

footer .footer-left,
footer .footer-right {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;
    flex-wrap: wrap;
}

footer a {
    color: #d1d5db;
    text-decoration: none;

    transition: color 0.2s ease;
}

footer a:hover {
    color: white;
}

footer .copyright {
    opacity: 0.7;
}


header {
    width: 100%;
    height: 70px;

    padding: 0 40px;

    background: #111827;
    border-bottom: 1px solid #374151;

    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;

    box-sizing: border-box;
}

header .logo {
    font-size: 22px;
    font-weight: 700;
    color: white;

    text-decoration: none;
}

header nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

header nav a {
    color: #d1d5db;
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

header nav a:hover {
    color: white;
    transform: translateY(-1px);
}

header .nav-button {
    padding: 10px 18px;

    background: #2563eb;
    color: white;

    border-radius: 8px;

    transition: background 0.2s ease;
}

header .nav-button:hover {
    background: #1d4ed8;
}

.lang-btn img {
    width: 14px;
    height: 14px;
    object-fit: cover;
    border-radius: 25%;
}

section.container {
    width: 100%;
    max-width: 900px;

    margin-bottom: 5%;

    background: #111827;
    color: rgb(231, 230, 230);

    padding: 28px;

    border-radius: 14px;

    box-sizing: border-box;

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

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

section.container:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 38px rgba(0,0,0,0.35);
}

section.container > header {
    margin-bottom: 20px;
}

section.container h1,
section.container h2 {
    margin: 0;

    line-height: 1.2;
    font-weight: 700;
}

section.container h1 {
    font-size: 32px;
}

section.container h2 {
    font-size: 26px;
}