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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.download-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#fileUrl {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#fileUrl:focus {
    outline: none;
    border-color: #667eea;
}

.primary-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.primary-btn:hover {
    background: #5a67d8;
}

.primary-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.message.success {
    display: block;
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    display: block;
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.info-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.info-box h3 {
    margin-bottom: 10px;
    color: #2d3748;
}

.info-box ul {
    list-style: none;
    color: #4a5568;
}

.info-box li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
}

.history-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.history-section h2 {
    margin-bottom: 20px;
    color: #2d3748;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    color: #4a5568;
}

.secondary-btn {
    background: #718096;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.secondary-btn:hover {
    background: #4a5568;
}

.admin-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
}

.admin-panel h3 {
    margin-bottom: 20px;
    color: #2d3748;
}

.admin-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
}

#saveSettings {
    background: #38a169;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-card {
        padding: 20px;
    }
}