/* Custom styles for Site Generator */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

.container {
    flex: 1;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-download {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--success-color);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    margin-left: 1rem;
}

.btn-download:hover {
    background-color: #157347;
    color: white;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Table */
.table {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

/* Code blocks */
pre {
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

code {
    color: #d63384;
    font-size: 0.875rem;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Statistics cards */
.card.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
}

.card.bg-light h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.card.bg-light h5 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Form validation */
.form-control.error,
.form-select.error {
    border-color: var(--danger-color);
}

.error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

/* Documentation */
dt {
    font-weight: 600;
    margin-top: 1rem;
}

dd {
    margin-left: 2rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Inline loading spinner */
.loading-inline {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.loading-inline .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-width: 0.25em;
}

.loading-inline h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.loading-inline p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.loading-inline .progress {
    height: 0.5rem;
    margin-top: 1rem;
    background-color: #e9ecef;
}

.loading-inline .progress-bar {
    background-color: var(--primary-color);
    animation: progressAnimation 3s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 10%; }
    50% { width: 70%; }
    100% { width: 95%; }
}

/* Icon animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.ri-magic-line {
    animation: pulse 2s infinite;
}

.ri-loader-2-line {
    animation: spin 1s linear infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}
