/* DroneCI Secrets Manager - Main Styles */

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

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

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    padding: 30px;
}

.config-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.config-section h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.config-section h3::before {
    content: "⚙️";
    margin-right: 10px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.upload-section {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px dashed #4caf50;
}

.upload-section h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.upload-section h3::before {
    content: "📁";
    margin-right: 10px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 15px 25px;
    background: #4caf50;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.file-label:hover {
    background: #45a049;
}

.selected-file {
    margin-top: 10px;
    padding: 10px;
    background: #f1f8e9;
    border-radius: 5px;
    color: #2e7d32;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.results-section {
    margin-top: 30px;
}

.results-section h3 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.results-section h3::before {
    content: "📊";
    margin-right: 10px;
}

.result-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid;
}

.result-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.result-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.result-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.result-message {
    font-size: 14px;
}

.result-description {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .content {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Config page specific styles */
.config-page .container {
    max-width: 600px;
}

.config-page .header h1 {
    font-size: 2em;
} 