body {
    font-family: Arial, sans-serif;
    background-image: url('backgrounds.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    padding: 0;
}

.header {
    text-align: center;
    padding: 20px;
    position: relative;
}

.logo {
    height: 50px;
    margin: 0 auto;
    display: block;
}

.main-content {
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 20px auto;
    width: 60%;
    text-align: center;
    box-sizing: border-box;
}

/* Buttons */
.submit-button {
    display: inline-block;
    background-color: #00b300;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.15s, box-shadow 0.15s, transform 0.1s;
    letter-spacing: 0.3px;
}

.submit-button:hover {
    background-color: #009900;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.submit-button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* "Vybrať súbor" button — outlined style */
.choose-btn {
    background-color: transparent;
    color: #00b300;
    border: 2px solid #00b300;
    box-shadow: none;
}

.choose-btn:hover {
    background-color: #00b300;
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Copy button */
.copy-button {
    background-color: #1a73e8;
}

.copy-button:hover {
    background-color: #1557b0;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 36px 20px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    margin-bottom: 12px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #00b300;
    background-color: #f0fff0;
}

.drop-zone-icon {
    font-size: 48px;
    color: #aaa;
    line-height: 1;
    margin-bottom: 8px;
}

.drop-zone.dragover .drop-zone-icon {
    color: #00b300;
}

.drop-zone-text {
    margin: 0 0 4px;
    color: #444;
    font-size: 16px;
}

.drop-zone-sub {
    margin: 0 0 12px;
    color: #aaa;
    font-size: 13px;
}

.drop-zone input[type="file"] {
    display: none;
}

/* File info */
.file-info {
    display: none;
    margin: 8px 0 4px;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    padding: 8px 14px;
    border-radius: 4px;
    word-break: break-all;
}

/* Progress bar */
.progress-wrapper {
    display: none;
    margin-top: 16px;
}

.progress-bar-bg {
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    height: 22px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #00b300;
    transition: width 0.2s ease;
    border-radius: 4px;
}

.progress-label {
    margin-top: 6px;
    font-size: 14px;
    color: #333;
}

/* Download preview page */
.file-preview {
    padding: 16px 0;
}

.file-preview-icon {
    font-size: 64px;
    color: #00b300;
    line-height: 1;
    margin-bottom: 12px;
}

.file-preview-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    word-break: break-all;
}

.file-preview-size {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
}

/* Upload result page */
#fileUrl {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.error-msg {
    color: #c0392b;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        width: 92%;
        margin: 10px auto;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 96%;
        padding: 12px;
    }

    .drop-zone {
        padding: 24px 12px;
    }

    .submit-button {
        width: 100%;
        box-sizing: border-box;
    }
}
