@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9f7f4, #faf8f5);
    background-image:
        linear-gradient(135deg, #f9f7f4, #faf8f5),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 3px);
}

header {
    color: #2c2c2c;
    text-align: center;
    padding: 80px 20px 50px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #711324;
    box-shadow: inset 0 0 100px rgba(113, 19, 36, 0.03);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(113, 19, 36, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(19, 113, 49, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(19, 83, 113, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

header::after {
    content: "✦";
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    opacity: 0.2;
    z-index: 1;
    color: #711324;
}

.logo {
    font-family: "Great Vibes", cursive;
    font-size: 7em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(113, 19, 36, 0.15);
    letter-spacing: -10px;
    line-height: 1;
    color: #711324;
    display: inline-block;
}

.logo::before,
.logo::after {
    content: "◆";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.3em;
    opacity: 0.4;
    font-family: Arial, sans-serif;
    letter-spacing: normal;
    color: #711324;
}

.logo::before { left: -60px; }
.logo::after { right: -60px; }

header h1 {
    font-size: 2em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2c2c2c;
}

header h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(113, 19, 36, 0.4), transparent);
    margin: 20px auto;
}

header p.subtitle {
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 2px;
    color: #2c2c2c;
}

main {
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #711324;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.card h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #711324;
}

.intro {
    text-align: center;
    color: #555;
    font-size: 1.05em;
    margin-bottom: 30px;
    line-height: 1.7;
}

.drop-zone {
	display: block;
    border: 2px dashed rgba(113, 19, 36, 0.4);
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f7f4;
    margin-bottom: 20px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #711324;
    background: rgba(113, 19, 36, 0.04);
}

.drop-zone-icon {
    font-size: 3em;
    color: #711324;
    opacity: 0.6;
    margin-bottom: 15px;
}

.drop-zone-text {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.drop-zone-hint {
    color: #888;
    font-size: 0.9em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.drop-zone.uploading {
    opacity: 0.5;
    pointer-events: none;
    cursor: wait;
}

.file-list {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 12px 15px;
    background: #f9f7f4;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    color: #555;
}

.file-list .file-status {
    font-size: 0.85em;
    color: #888;
}

.file-list .file-status.success { color: #137131; }
.file-list .file-status.error { color: #711324; }

.btn-primary {
    background: linear-gradient(135deg, #711324, #135371);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(113, 19, 36, 0.3);
    display: block;
    margin: 25px auto 0;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 19, 36, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.05em;
}

.error-message {
    display: none;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.05em;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}

.error-page h2 {
    color: #711324;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    header {
        padding: 60px 20px 40px;
    }
    .logo {
        font-size: 4.5em;
        letter-spacing: -8px;
    }
    .logo::before,
    .logo::after {
        display: none;
    }
    header h1 {
        font-size: 1.3em;
        letter-spacing: 2px;
    }
    header p.subtitle {
        font-size: 1em;
    }
    main {
        padding: 30px 15px;
    }
    .card {
        padding: 25px;
    }
    .drop-zone {
        padding: 35px 15px;
    }
}
