/* ============================================================
   FarmersBD — AI Disease Detection Page Styles
   Exact Match to Premium Reference UI
   ============================================================ */

.ai-page-wrap {
    background-color: #f3f7fa;
    min-height: calc(100vh - 200px);
}

/* ── Hero Banner ────────────────────────────────────────────── */
.ai-hero-banner {
    background: linear-gradient(135deg, #022444 0%, #033c6d 35%, #06548b 70%, #032b50 100%);
    position: relative;
    overflow: hidden;
    padding: 48px 0 54px;
    color: #ffffff;
}

.ai-hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ai-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ai-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 50px;
    padding: 5px 18px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-chip-logo-box {
    width: 46px;
    height: 46px;
    background: rgba(56, 189, 248, 0.15);
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}

.ai-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 30px;
}

.ai-hero-features-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ai-hero-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-feat-icon-circle {
    width: 38px;
    height: 38px;
    background: rgba(2, 132, 199, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.ai-feat-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.2;
}

.ai-feat-sub {
    color: #7dd3fc;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}

/* ── HUD AI Scanner Box & Right Pills ────────────────────────── */
.ai-hud-scanner-wrapper {
    position: relative;
    display: inline-block;
}

.ai-hud-box {
    position: relative;
    width: 320px;
    height: 195px;
    border: 2px solid #00d2ff;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4), inset 0 0 15px rgba(0, 210, 255, 0.2);
    background: rgba(3, 35, 65, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-hud-corner-tl {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-top: 3px solid #38bdf8;
    border-left: 3px solid #38bdf8;
    border-top-left-radius: 8px;
    pointer-events: none;
    z-index: 3;
}

.ai-hud-corner-tr {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-top: 3px solid #38bdf8;
    border-right: 3px solid #38bdf8;
    border-top-right-radius: 8px;
    pointer-events: none;
    z-index: 3;
}

.ai-hud-corner-bl {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-bottom: 3px solid #38bdf8;
    border-left: 3px solid #38bdf8;
    border-bottom-left-radius: 8px;
    pointer-events: none;
    z-index: 3;
}

.ai-hud-corner-br {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-bottom: 3px solid #38bdf8;
    border-right: 3px solid #38bdf8;
    border-bottom-right-radius: 8px;
    pointer-events: none;
    z-index: 3;
}

.ai-hud-fish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.ai-hud-scanner-wrapper:hover .ai-hud-fish-img {
    transform: scale(1.05);
}

.ai-hud-badge {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #0284c7;
    border: 2px solid #38bdf8;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    z-index: 4;
}

.ai-hud-badge svg {
    width: 18px;
    height: 18px;
    margin-bottom: 1px;
}

/* Right Disease Diagnosis Pills */
.ai-diagnosis-tags-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.ai-tag-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(8, 48, 74, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 18px;
    color: #e0f2fe;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ai-tag-pill:hover {
    background: rgba(14, 75, 115, 0.85);
    border-color: #38bdf8;
    transform: translateX(4px);
}

.ai-tag-check-circle {
    width: 18px;
    height: 18px;
    background: rgba(56, 189, 248, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
    font-size: 11px;
}

/* ── Content Section ────────────────────────────────────────── */
.ai-main-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 43, 72, 0.04);
    border: 1px solid #e2e8f0;
    padding: 32px;
    height: 100%;
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.ai-header-icon-circle {
    width: 48px;
    height: 48px;
    background: #07477a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-card-title {
    color: #0f2b48;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 3px;
}

.ai-card-subtitle {
    color: #64748b;
    font-size: 13.5px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ── Upload Dropzone ────────────────────────────────────────── */
.ai-drop-zone-box {
    border: 2px dashed #93c5fd;
    border-radius: 16px;
    background: #f0f9ff;
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ai-drop-zone-box:hover,
.ai-drop-zone-box.drag-over {
    background: #e0f2fe;
    border-color: #38bdf8;
    transform: scale(1.005);
}

.ai-upload-icon-circle {
    width: 52px;
    height: 52px;
    background: #bae6fd;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.ai-drop-title {
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ai-drop-or {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 14px;
}

.ai-select-file-btn {
    background: #0284c7;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ai-select-file-btn:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* Bottom 3-Column Info Bar */
.ai-upload-info-bar {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ai-info-segment {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-info-divider {
    width: 1px;
    height: 34px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.ai-info-bulb-icon {
    color: #0284c7;
    flex-shrink: 0;
}

.ai-info-tips-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.ai-info-tips-text strong {
    color: #0f172a;
    font-size: 13px;
}

.ai-info-meta-icon {
    color: #64748b;
    flex-shrink: 0;
}

.ai-info-meta-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.ai-info-meta-val {
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

/* ── How it works Column ────────────────────────────────────── */
.ai-sparkle-icon {
    color: #f59e0b;
}

.ai-step-rows-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-step-row {
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
    text-decoration: none;
}

.ai-step-row:hover {
    transform: translateX(4px);
}

.ai-step-row-1 {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
}
.ai-step-row-1:hover {
    background: #e0f2fe;
}

.ai-step-row-2 {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.ai-step-row-2:hover {
    background: #dcfce7;
}

.ai-step-row-3 {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
}
.ai-step-row-3:hover {
    background: #f3e8ff;
}

.ai-step-row-4 {
    background: #fff7ed;
    border: 1px solid #ffedd5;
}
.ai-step-row-4:hover {
    background: #ffedd5;
}

.ai-step-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-step-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-step-box-1 {
    background: #bae6fd;
    color: #0284c7;
}

.ai-step-box-2 {
    background: #bbf7d0;
    color: #16a34a;
}

.ai-step-box-3 {
    background: #e9d5ff;
    color: #9333ea;
}

.ai-step-box-4 {
    background: #fed7aa;
    color: #ea580c;
}

.ai-step-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.ai-step-desc {
    color: #64748b;
    font-size: 12.5px;
    margin-bottom: 0;
    line-height: 1.35;
}

.ai-step-chevron {
    font-size: 16px;
    font-weight: 700;
}

.ai-chevron-1 { color: #0284c7; }
.ai-chevron-2 { color: #16a34a; }
.ai-chevron-3 { color: #9333ea; }
.ai-chevron-4 { color: #ea580c; }

/* Caution Box */
.ai-caution-banner {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 13px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai-caution-icon {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

.ai-caution-text {
    color: #b45309;
    font-size: 12.5px;
    line-height: 1.45;
}

.ai-caution-text strong {
    font-weight: 700;
    color: #92400e;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ai-hero-banner {
        padding: 36px 0 40px;
    }
    .ai-hero-title {
        font-size: 28px;
    }
    .ai-upload-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ai-info-divider {
        display: none;
    }
    .ai-hud-scanner-wrapper {
        margin-top: 25px;
    }
}
