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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B1538 0%, #5C0E23 100%);
    min-height: 100vh;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #333;
    font-size: 28px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B1538;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.file-count {
    margin-top: 10px;
    color: #8B1538;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8B1538 0%, #5C0E23 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #8B1538;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

.loading-text {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.loading-subtext {
    text-align: center;
    color: #666;
    font-size: 14px;
}

#resultContainer {
    text-align: center;
}

.result-success {
    background: linear-gradient(135deg, #f0e6ea 0%, #e8dade 100%);
    border: 2px solid #8B1538;
    border-radius: 10px;
    padding: 30px;
}

.result-success h2 {
    color: #5C0E23;
    margin-bottom: 15px;
}

.result-error {
    background: linear-gradient(135deg, #fde8ec 0%, #f8d7da 100%);
    border: 2px solid #a01d2e;
    border-radius: 10px;
    padding: 30px;
}

.result-error h2 {
    color: #5C0E23;
    margin-bottom: 15px;
}

.result-message {
    font-size: 18px;
    margin-bottom: 20px;
}

.result-details {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.result-details p {
    margin: 10px 0;
    color: #333;
}

.result-url {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.wiki-link {
    display: inline-block;
    margin: 15px 0;
    padding: 12px 30px;
    background: linear-gradient(135deg, #8B1538 0%, #5C0E23 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.3);
}

.wiki-link:hover {
    background: linear-gradient(135deg, #a01d42 0%, #6d1129 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 21, 56, 0.4);
}

.url-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    word-break: break-all;
}

.result-status {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.result-status h4 {
    margin-bottom: 10px;
    color: #333;
}

.result-status ul {
    list-style: none;
    padding: 0;
}

.result-status li {
    padding: 8px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 3px;
}

.error-details {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.error-details p {
    color: #721c24;
    margin: 10px 0;
}

.reset-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: #8B1538;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.reset-btn:hover {
    background: #5C0E23;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }
}
