* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content */
.content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Step Card */
.step-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

/* Select Box */
.select-box {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d3748;
    font-weight: 500;
}

.select-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-box:disabled {
    background: #f7fafc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-weight: 500;
    margin-top: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

/* Document Button */
.doc-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.doc-btn:not(:disabled):hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.doc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.doc-btn:not(:disabled) {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.doc-icon {
    font-size: 2rem;
}

.doc-info {
    flex: 1;
    text-align: left;
}

.doc-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.doc-info .status {
    font-size: 0.85rem;
    color: #999;
}

.doc-btn:not(:disabled) .status {
    color: #48bb78;
    font-weight: 500;
}

.doc-btn:not(:disabled) .status::before {
    content: '✓ ';
}

.download-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

.doc-btn:not(:disabled) .download-icon {
    opacity: 1;
}

.doc-btn:not(:disabled):active .download-icon {
    animation: download 0.5s ease;
}

@keyframes download {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
}

.admin-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .header p {
        font-size: 1rem;
    }
}