/* 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;
    }
}

/* ===================== OCR uploader ===================== */
.drop-zone {
    border: 2px dashed #b9c2cf;
    border-radius: 0.9rem;
    background: #f8fafc;
    padding: 3rem 1.5rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.drop-zone:hover,
.drop-zone:focus {
    border-color: var(--bs-primary);
    background: #f1f6ff;
    outline: none;
}
.drop-zone.drag {
    border-color: var(--bs-primary);
    background: #e7f0ff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);
}
.drop-zone.busy {
    opacity: .6;
    pointer-events: none;
}
.drop-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: .5rem;
}

/* Feature cards */
.feature-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
}
.feature-emoji {
    font-size: 1.6rem;
    margin-bottom: .4rem;
}

/* ===================== Result review ===================== */
.result-pane {
    border: 1px solid #e3e7ee;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #fff;
    height: 100%;
}
.result-pane-head {
    background: #f5f7fa;
    border-bottom: 1px solid #e3e7ee;
    padding: .5rem .9rem;
    font-weight: 600;
    font-size: .85rem;
    color: #51607a;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.result-pane-body {
    padding: 1rem;
    max-height: 78vh;
    overflow: auto;
}
.result-output {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .95rem;
    line-height: 1.55;
}
.result-output.md-render {
    white-space: normal;
}
.result-output.md-render table {
    border-collapse: collapse;
    width: 100%;
    margin: .75rem 0;
}
.result-output.md-render th,
.result-output.md-render td {
    border: 1px solid #d6dbe3;
    padding: .35rem .55rem;
}
.result-output .lowconf {
    background: #fff3cd;
    border-bottom: 1px dotted #d39e00;
}
