* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #eee; 
    padding: 20px; 
    min-height: 100vh; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

.section { 
    background: rgba(255,255,255,0.95); 
    border-radius: 16px; 
    padding: 25px; 
    margin-bottom: 25px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px); 
}

.section h2 { 
    color: #667eea; 
    margin-bottom: 15px; 
    padding-bottom: 10px; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    border-bottom: 2px solid #667eea;
}

/* Buttons */
button { 
    padding: 12px 28px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600; 
    transition: all 0.3s; 
    font-family: inherit; 
}

button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

button:active { 
    transform: translateY(0); 
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-save { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
}

.btn-upload { 
    background: #4CAF50; 
    color: #fff; 
}

.btn-delete { 
    background: #f44336; 
    color: #fff; 
    padding: 8px 16px; 
    font-size: 13px; 
}

.btn-row { 
    margin-top: 20px; 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
}

.btn-upload-big { 
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); 
    color: #fff; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: all .3s; 
}

.btn-upload-big:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4); 
}

/* Toast */
.toast { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    padding: 16px 24px; 
    border-radius: 10px; 
    color: #fff; 
    font-weight: 600; 
    z-index: 9999; 
    transition: opacity .3s; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.toast.success { 
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); 
}

.toast.error { 
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%); 
}

/* Badge */
.badge { 
    background: #667eea; 
    color: #fff; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 13px; 
    font-weight: 600; 
}

/* Loading Spinner */
.spinner { 
    border: 3px solid #f3f3f3; 
    border-top: 3px solid #667eea; 
    border-radius: 50%; 
    width: 24px; 
    height: 24px; 
    animation: spin 1s linear infinite; 
    display: inline-block; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* Modal */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.7); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s; 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

.modal-content { 
    background: #fff; 
    border-radius: 16px; 
    padding: 30px; 
    max-width: 550px; 
    width: 90%; 
    max-height: 90vh; 
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
    animation: slideUp 0.3s; 
}

@keyframes slideUp { 
    from { transform: translateY(50px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

.modal-content h3 { 
    color: #667eea; 
    margin-bottom: 25px; 
    text-align: center; 
    font-size: 1.5rem; 
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .section {
        padding: 20px;
    }
}
