﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
 
header {
    background-color: #0078d4;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#authSection {
    display: flex;
    align-items: center;
    gap: 15px;
}

#headerUserInfo {
    display: flex;
    align-items: center;
    gap: 15px;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

footer {
    background-color: #e1dfdd;
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: #605e5c;
    border-top: 1px solid #ccc;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.desc {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: white;
    color: #0078d4;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 20px;
    transition: 0.2s;
}

    .btn-primary:hover {
        background: #e6f2fb;
    }

.btn-action {
    background: #0078d4;
    color: white;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: 0.2s;
}

    .btn-action:hover {
        background: #005a9e;
    }

.btn-success {
    background: #107c10;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    display: inline-block;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.2s;
}

    .btn-success:hover {
        background: #0b5a0b;
    }

.status-msg {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
}

.form-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.file-input {
    flex-grow: 1;
    min-width: 0;
}

input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

.param-input {
    flex-shrink: 0;
}

input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#progressContainer {
    margin-top: 20px;
    padding: 15px;
    background: #e6f2fb;
    border-radius: 4px;
    border-left: 4px solid #0078d4;
}

.loader-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0078d4;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .form-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .header-content h1 {
        font-size: 1.2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
