/* AMIR Background Styles */
.amir-background {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    position: relative;
    min-height: 100vh;
}

.amir-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image temporarily disabled for screenshots */
    /* background-image: url('/corbus_apps/ai_medical_researcher/static/images/background.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -2;
}

.amir-background::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.88) 50%, rgba(15, 23, 42, 0.92) 100%);
    z-index: -1;
}

/* More opaque card backgrounds */
.amir-background .bg-white\/5,
.amir-background .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.18) !important;
}

.amir-background .bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.40) !important;
}

.amir-background .bg-black\/30 {
    background-color: rgba(0, 0, 0, 0.50) !important;
}

.amir-background .bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.60) !important;
}

/* Gradient card backgrounds - more opaque */
.amir-background [class*="from-purple-900\/30"],
.amir-background [class*="from-purple-900\/40"] {
    background: linear-gradient(to right, rgba(88, 28, 135, 0.55), rgba(67, 56, 202, 0.55)) !important;
}

.amir-background [class*="from-emerald-900\/30"],
.amir-background [class*="from-emerald-900\/40"] {
    background: linear-gradient(to bottom right, rgba(6, 78, 59, 0.55), rgba(17, 94, 89, 0.55)) !important;
}

.amir-background [class*="from-rose-900\/30"],
.amir-background [class*="from-rose-900\/40"] {
    background: linear-gradient(to bottom right, rgba(136, 19, 55, 0.55), rgba(157, 23, 77, 0.55)) !important;
}

.amir-background [class*="from-cyan-900\/30"],
.amir-background [class*="from-cyan-900\/40"] {
    background: linear-gradient(to bottom right, rgba(22, 78, 99, 0.55), rgba(30, 64, 175, 0.55)) !important;
}

.amir-background [class*="from-indigo-900\/30"],
.amir-background [class*="from-indigo-900\/40"] {
    background: linear-gradient(to bottom right, rgba(49, 46, 129, 0.55), rgba(67, 56, 202, 0.55)) !important;
}

/* Main content cards */
.amir-background .rounded-xl {
    backdrop-filter: blur(4px);
}

/* Navigation bar */
.amir-background nav,
.amir-background header {
    background-color: rgba(0, 0, 0, 0.50) !important;
    backdrop-filter: blur(2px);
}

/* Glass effect panels */
.amir-background .backdrop-blur-lg,
.amir-background .backdrop-blur {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Section borders - slightly more visible */
.amir-background [class*="border-purple-500"],
.amir-background [class*="border-emerald-500"],
.amir-background [class*="border-rose-500"],
.amir-background [class*="border-cyan-500"] {
    border-width: 1px;
}

/* Report Type Tooltips */
.report-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.report-tooltip-wrap .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
    cursor: help;
    margin-left: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(147, 197, 253, 0.4);
}
.report-tooltip-wrap .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.report-tooltip-wrap .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}
.report-tooltip-wrap:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}
