/* Custom styles for DjangoBase */

/* General */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

/* Dropdown menu scrollable */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Forms */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alerts */
.alert ul {
    margin: 0;
    padding-left: 1rem;
}

/* Pricing */
.pricing-card {
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--bs-primary);
}

/* Payment form */
#card-element {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

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

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
}

/* ========================================
   ENHANCED STYLES
   ======================================== */

/* Error pages (404, 500) */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-page .error-icon {
    margin-bottom: 1.5rem;
}

.error-page .error-title {
    font-size: 6rem;
    line-height: 1;
}

.error-links {
    margin-top: 2rem;
}

/* About page */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: -1.5rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Step circles (How it works) */
.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Feature comparison table */
.comparison-table {
    background: white;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.comparison-table td,
.comparison-table th {
    vertical-align: middle;
    padding: 0.875rem;
}

.check-icon {
    color: #198754;
    font-size: 1.25rem;
    font-weight: bold;
}

.x-icon {
    color: #dc3545;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Upload zones */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.upload-zone.dragover {
    border-color: #198754;
    background: #d1e7dd;
}

/* Before/after showcase */
.before-label,
.after-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.after-label {
    background: rgba(25, 135, 84, 0.9);
}

/* Benefit and use case icons */
.benefit-icon,
.use-case-icon {
    display: inline-block;
}

/* Feature icons */
.feature-icon {
    display: inline-block;
}

/* Pricing cards enhancement */
.card.border-primary {
    border-width: 2px !important;
}

/* Mobile responsive fixes */
@media (max-width: 576px) {
    .stat-number {
        font-size: 2rem;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .error-page .error-title {
        font-size: 4rem;
    }

    .about-hero h1 {
        font-size: 1.75rem;
    }

    .upload-zone {
        padding: 1.5rem;
    }
}
