/* ==========================================================================
   Vetmivo Phase 6: Radiology & Diagnostic Imaging Styles
   ========================================================================== */

/* 1. Modality Badge Chips */
.modality-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modality-xray { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.modality-ultrasound { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.modality-ct { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.modality-mri { background: #fae8ff; color: #86198f; border: 1px solid #f5d0fe; }
.modality-endoscopy { background: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }

/* 2. Study Gallery Grid */
.study-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.study-gallery-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.study-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #38bdf8;
}

.study-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.study-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    color: #ffffff;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. Radiology Report Workspace */
.imaging-report-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    padding: 20px;
}

.imaging-report-section {
    margin-bottom: 16px;
}

.imaging-report-section:last-child {
    margin-bottom: 0;
}

.imaging-report-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

/* 4. A4 Printable Radiology Report Styles */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }

    .app-sidebar, .app-topbar, .btn, .no-print {
        display: none !important;
    }

    .app-main, .app-content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .imaging-print-page {
        padding: 15mm;
        width: 100%;
        box-sizing: border-box;
    }

    .imaging-print-header {
        border-bottom: 2px solid #000000;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
}
