:root {
    /* Color Palette */
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --sidebar-bg: #1A1C32;
    --sidebar-active: #2D3154;
    --bg-main: #F8FAFC;
    --text-header: #1E293B;
    --text-main: #334155;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    /* Category Colors */
    --ovulation: #9B59B6;
    --pain: #E67E22;
    --bleeding: #FF4B5C;
    --stable: #27AE60;
    
    /* Sidebar Collapsed State */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .user-info,
.sidebar.collapsed .brand-role,
.sidebar.collapsed .logout-link,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .footer-nav span {
    display: none;
}

.sidebar.collapsed .logo {
    margin: 0 auto;
}

.sidebar-brand:hover {
    background-color: var(--sidebar-active);
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--ovulation));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-role {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding-top: 10px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    padding: 2px 16px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94A3B8;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.sidebar-nav li:hover a {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav li.active a {
    background-color: var(--sidebar-active);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-nav li a i {
    width: 20px;
    font-size: 18px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav ul {
    list-style: none;
    margin-bottom: 24px;
}

.footer-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav li a:hover {
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.logout-link {
    font-size: 13px;
    color: #94A3B8;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

/* Main Workspace Styling */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 24px 32px;
    max-width: calc(100vw - var(--sidebar-width));
    transition: var(--transition);
    overflow-x: hidden;
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
    max-width: calc(100vw - var(--sidebar-collapsed-width));
}

.page-content {
    animation: pageFadeIn 0.5s ease-out;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.2s;
}

.btn-outline {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-main);
}

.btn-primary {
    background-color: #5C59E8;
    color: white;
}

.btn-primary:hover {
    background-color: #4B49CD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 89, 232, 0.4);
}

/* Patient Header */
.patient-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.patient-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.patient-avatar {
    width: 48px;
    height: 48px;
    background-color: #E2E8F0;
    color: var(--ovulation);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.patient-main-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-header);
}

.patient-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.patient-stats-display {
    display: flex;
    gap: 48px;
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-value-large {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-header);
}

.stat-value-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-value-mid {
    font-size: 20px;
    font-weight: 700;
}

.phase-ovulation {
    color: var(--ovulation);
}

.stat-hint {
    font-size: 12px;
    color: var(--ovulation);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    width: 100%;
}

@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .col-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.5);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-header);
}

/* Insight Cards Row */
.insight-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.insight-card {
    padding: 20px;
    display: flex;
    gap: 16px;
}

.insight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.insight-icon.blue { background-color: #EFF6FF; color: var(--primary); }
.insight-icon.orange { background-color: #FFF7ED; color: var(--pain); }
.insight-icon.red { background-color: #FEF2F2; color: var(--bleeding); }
.insight-icon.purple { background-color: #FAF5FF; color: var(--ovulation); }

.insight-data {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-data .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.insight-data .value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-header);
}

.mini-chart {
    width: 60px;
    height: 30px;
}

.insight-data .trend {
    font-size: 12px;
    font-weight: 500;
}

.trend.pos { color: var(--stable); }
.trend.success { color: var(--stable); }

/* Main Chart Card */
.chart-card {
    padding: 24px;
    margin-bottom: 24px;
}

.header-titles p {
    font-size: 13px;
    color: var(--text-muted);
}

.chart-controls {
    display: flex;
    gap: 12px;
}

.toggle-group {
    display: flex;
    background-color: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.toggle-group button {
    border: none;
    background: none;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
}

.toggle-group button.active {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dropdown-small {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
}

.main-chart-container {
    height: 450px; /* Increased height as requested */
    position: relative;
    margin-top: 20px;
}

.chart-labels-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 40px;
}

.phase-label {
    font-size: 10px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1px;
    background: #F1F5F9;
    padding: 2px 10px;
    border-radius: 4px;
}

/* Secondary Grid */
.secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .secondary-grid {
        grid-template-columns: 1fr;
    }
}

.symptom-patterns-container {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.data-row {
    margin-bottom: 24px;
}

.data-row:last-child {
    margin-bottom: 0;
}

.row-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-header);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-label i { width: 16px; text-align: center; }

.grid-days {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.day-cell {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #F8FAFC;
    flex-shrink: 0;
}

.day-cell.bleeding-light { background-color: #fee2e2; }
.day-cell.bleeding-med { background-color: #fca5a5; }
.day-cell.bleeding-heavy { background-color: #ef4444; }

.day-cell.lh-low { background-color: #F8FAFC; border: 1px solid #E2E8F0; }
.day-cell.lh-high { background-color: #FEF3C7; }
.day-cell.lh-peak { background-color: #D8B4FE; }

.lh-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.lh-legend span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 6px;
}

.lh-legend span.low::before { background-color: #E2E8F0; }
.lh-legend span.high::before { background-color: #FEF3C7; }
.lh-legend span.peak::before { background-color: #D8B4FE; }

/* Phase Cards */
.phase-summary-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phase-card {
    padding: 16px;
    position: relative;
    border: 1px solid transparent;
}

.phase-card.active {
    border-color: rgba(155, 89, 182, 0.2);
    background: linear-gradient(135deg, white, #FAF5FF);
}

.phase-card h3 {
    font-size: 15px;
    color: #4A90E2;
}

.phase-card.active h3 { color: var(--ovulation); }

.phase-card .days {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.phase-card .desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.phase-icon {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 24px;
    opacity: 0.1;
}

.table-card {
    grid-column: span 2;
    margin-top: 12px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 12px 24px;
    background-color: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 24px;
    border-top: 1px solid #F1F5F9;
}

.table-footer {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #F1F5F9;
}

.table-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Side Panels */
.side-panel-card {
    padding: 24px;
    margin-bottom: 24px;
}

.insights-list {
    list-style: none;
    margin-top: 16px;
}

.insight-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.insight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.insight-dot.purple { background-color: var(--ovulation); }
.insight-dot.green { background-color: var(--stable); }
.insight-dot.orange { background-color: var(--pain); }

.insight-item p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-main);
}

.no-abnormalities {
    background-color: #F0FDF4;
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.no-abnormalities i {
    color: var(--stable);
    font-size: 16px;
}

.no-abnormalities p {
    font-size: 12px;
    color: #166534;
    font-weight: 500;
}

/* Donut Chart */
.cycle-summary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.donut-chart-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 24px;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.days-active {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-header);
}

.unit {
    font-size: 12px;
    color: var(--text-muted);
}

.cycle-breakdown {
    list-style: none;
    width: 100%;
}

.cycle-breakdown li {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.color-dot.red { background-color: var(--bleeding); }
.color-dot.blue { background-color: var(--primary); }
.color-dot.purple { background-color: var(--ovulation); }
.color-dot.green { background-color: var(--stable); }

.cycle-breakdown li .count {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-header);
}

/* Notes Section */
.notes-content {
    background-color: #F8FAFC;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}

.note-text {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Footer */
.dashboard-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.compliance-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Styling */
.modal {
    display: none; /* Controlled by JS as 'flex' or 'none' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
    /* Add flex properties here as JS will set display: flex */
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: auto; /* Centers when content is smaller than viewport, allows scroll when larger */
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.close-modal {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: var(--text-header); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-group input { width: 100%; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Table Text Colors */
td.bleeding-none { color: var(--text-muted); }
td.bleeding-light { color: #fca5a5; font-weight: 500; }
td.bleeding-medium { color: #f87171; font-weight: 600; }
td.bleeding-heavy { color: #ef4444; font-weight: 700; }

td.lh-low { color: var(--text-muted); }
td.lh-high { color: #E67E22; font-weight: 600; }
td.lh-peak { color: #9B59B6; font-weight: 700; }
/* AI Insights Pulse Animation */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.ai-insight-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.insight-item {
    text-align: left;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
}

.insight-item:hover {
    transform: translateX(5px);
}

.lightbulb-icon {
    font-size: 50px;
    color: #b07d4c;
    margin-bottom: 20px;
}

/* Apple-style Event Bars */
.cal-event-bar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e2e8f0;
    gap: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.cal-day-header {
    background: #f8fafc;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-cell {
    background: white;
    min-height: 110px;
    padding: 8px;
    position: relative;
    transition: background 0.2s;
    cursor: pointer;
}

.cal-cell:hover {
    background: #f1f5f9;
}

.cal-cell.today {
    background: #fffbeb;
}

.cal-date-num {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
    display: inline-block;
}

.cal-event-bar {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.cal-event-bar.fertile { background-color: #3b82f6; } /* Blue */
.cal-event-bar.ovulation { background-color: #9333ea; } /* Purple */
.cal-event-bar.consultation { background-color: #f97316; } /* Orange */
.cal-event-bar.test { background-color: #22c55e; } /* Green */

.cal-cell-muted {
    background: #f8fafc;
    color: #cbd5e1;
}

.calendar-settings-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Modal for events */
.cal-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.cal-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
/* Premium Reports Sidebar Integration */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.report-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.report-icon {
    width: 48px;
    height: 48px;
    background: #F1F5F9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.report-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.badge-pending { background: #FFFBEB; color: #D97706; }
.badge-urgent { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-sealed { background: #F0FDF4; color: #16A34A; }

.report-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.report-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-header);
    margin-bottom: 12px;
}

.ai-brief {
    background: #F8FAFC;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border-left: 3px solid var(--primary);
}

.report-actions {
    display: flex;
    gap: 10px;
}

.btn-sign {
    background: #E2E8F0;
    color: var(--text-header);
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sign:hover { background: #CBD5E1; }
