﻿/* modals.css - Claim detail modal, settings modal, detail panel, centered detail modal */

/* ==================== CLAIM DETAIL MODAL STYLES ==================== */
.claim-detail-modal {
    max-width: 800px !important;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.claim-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.claim-modal-id {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.claim-modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0 1rem;
}

.claim-modal-tab {
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.claim-modal-tab:hover {
    color: #1f2937;
}

.claim-modal-tab.active {
    color: var(--eff-primary);
}

.claim-modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--eff-primary);
    border-radius: 3px 3px 0 0;
}

.claim-msg-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.claim-modal-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.claim-modal-panel.active {
    display: flex;
}

/* Messages Tab Styles */
.claim-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    background: #fafbfc;
    min-height: 300px;
    max-height: 400px;
}

.claim-messages-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
}

.claim-messages-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.claim-messages-empty p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

.claim-messages-empty span {
    font-size: 0.85rem;
}

.claim-messages-list:not(:empty) + .claim-messages-empty {
    display: none;
}

.claim-detail-msg {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.claim-detail-msg.user {
    flex-direction: row-reverse;
}

.claim-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--eff-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.claim-detail-msg.user .claim-msg-avatar {
    background: #6b7280;
}

.claim-msg-bubble {
    max-width: 70%;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}

.claim-detail-msg.user .claim-msg-bubble {
    background: var(--eff-primary);
    color: #fff;
    border-color: var(--eff-primary);
}

.claim-msg-bubble .sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.claim-detail-msg.user .claim-msg-bubble .sender {
    color: rgba(255,255,255,0.8);
}

.claim-msg-bubble .text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.claim-msg-bubble .time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.claim-detail-msg.user .claim-msg-bubble .time {
    color: rgba(255,255,255,0.7);
}

.claim-message-input {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background: #fff;
}

.claim-message-recipient {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.claim-message-recipient label {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.claim-message-recipient select {
    flex: 1;
    max-width: 300px;
}

.claim-message-compose {
    display: flex;
    gap: 0.75rem;
}

.claim-message-compose textarea {
    flex: 1;
    resize: none;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.claim-message-compose textarea:focus {
    outline: none;
    border-color: var(--eff-primary);
}

/* Documents Tab Styles */
.claim-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.claim-doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.claim-doc-item:hover {
    background: #f0fdf4;
    border-color: var(--eff-primary);
}

.claim-doc-item i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.claim-doc-item i.fa-file-image {
    color: #3b82f6;
}

.claim-doc-item i.fa-file-alt {
    color: #6b7280;
}

.claim-doc-item span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: #374151;
}

.claim-doc-item small {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.claim-doc-upload {
    text-align: center;
}

/* ==================== SETTINGS MODAL STYLES ==================== */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.settings-modal-content {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.settings-modal-content.wide {
    max-width: 700px;
}

.settings-modal.show .settings-modal-content {
    transform: translateY(0);
}

.settings-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 1rem 1rem 0 0;
}

.settings-modal-header h5 {
    margin: 0;
    font-weight: 700;
    color: #166534;
}

.settings-modal-body {
    padding: 1.5rem;
}

.settings-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 80px;
}

.strength-weak { background: #ef4444; }
.strength-fair { background: #f59e0b; }
.strength-good { background: #3b82f6; }
.strength-strong { background: #22c55e; }

/* Password Requirements */
.password-requirements {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.req-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.req-list li {
    padding: 0.25rem 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.req-list li i {
    font-size: 0.5rem;
}

.req-list li.valid {
    color: #22c55e;
}

.req-list li.valid i::before {
    content: "\f00c";
}

/* 2FA Styles */
.tfa-intro {
    text-align: center;
    padding: 1rem 0;
}

.tfa-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #166534;
    margin: 0 auto 1rem;
}

.tfa-intro h6 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tfa-intro p {
    color: #6b7280;
    font-size: 0.9rem;
}

.tfa-method-select {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tfa-method {
    flex: 1;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tfa-method:hover {
    border-color: #198754;
}

.tfa-method.active {
    border-color: #198754;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.tfa-method i {
    font-size: 2rem;
    color: #198754;
    display: block;
    margin-bottom: 0.75rem;
}

.tfa-method span {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.tfa-method small {
    font-size: 0.75rem;
    color: #6b7280;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    color: #64748b;
}

.qr-placeholder i {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.manual-code {
    text-align: center;
    margin-top: 1rem;
}

.manual-code code {
    font-size: 1.1rem;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    letter-spacing: 2px;
}

.tfa-code-input {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.tfa-success {
    text-align: center;
    padding: 1rem 0;
}

.tfa-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #166534;
    margin: 0 auto 1rem;
}

.backup-codes {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.backup-codes-header {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.codes-grid span {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f0fdf4;
}

.notification-item.unread {
    background: #fff;
    border-left: 3px solid #198754;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-icon.claims { background: #dbeafe; color: #1d4ed8; }
.notification-icon.docs { background: #fef3c7; color: #d97706; }
.notification-icon.system { background: #e0e7ff; color: #4338ca; }
.notification-icon.success { background: #dcfce7; color: #166534; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.notification-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.notifications-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Account Assignment Checkboxes */
.account-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.account-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background 0.2s ease;
}

.account-checkbox-item:hover {
    background: #f9fafb;
}

.account-checkbox-item input {
    margin-right: 0.75rem;
}

.account-checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

/* ==================== DETAIL PANEL STYLES ==================== */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.detail-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==================== DETAIL MODAL (CENTERED) ==================== */
.detail-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: none;
    height: auto;
    max-height: 92vh;
    background: #fff;
    z-index: 9991;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.detail-panel.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.detail-panel-header {
    padding: 1.25rem 4rem 1.25rem 1.5rem; /* Extra right padding for close button */
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-panel-header-info {
    flex: 1;
}

.detail-panel-header-stats {
    display: flex;
    gap: 20px;
}

.detail-panel-stat {
    text-align: center;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.detail-panel-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-panel-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.detail-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.detail-panel-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.detail-panel-id {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-panel-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-panel-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-panel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.detail-panel-status.funded,
.detail-panel-status.approved { background: rgba(255,255,255,0.25); }
.detail-panel-status.in-process { background: rgba(59,130,246,0.3); }
.detail-panel-status.closed { background: rgba(245,158,11,0.3); }
.detail-panel-status.withdrawn { background: rgba(156,163,175,0.3); }
.detail-panel-status.pending { background: rgba(255,193,7,0.3); }
.detail-panel-status.processing { background: rgba(13,202,240,0.3); }

.detail-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
}

/* Two Column Layout */
.detail-panel-main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.detail-panel-sidebar {
    width: 340px;
    background: #f8fafc;
    border-left: 1px solid #e5e7eb;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Panel Messages Section */
.claim-panel-messages .detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-msg-count {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
}

.panel-messages-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    max-height: 200px;
    min-height: 120px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.panel-messages-list {
    padding: 0.75rem;
}

.panel-messages-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.panel-messages-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.panel-messages-list:not(:empty) + .panel-messages-empty {
    display: none;
}

.panel-msg-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.panel-msg-item:last-child {
    margin-bottom: 0;
}

.panel-msg-item.user {
    flex-direction: row-reverse;
}

.panel-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--eff-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

.panel-msg-item.user .panel-msg-avatar {
    background: #6b7280;
}

.panel-msg-content {
    max-width: 85%;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    line-height: 1.3;
}

.panel-msg-item.user .panel-msg-content {
    background: var(--eff-primary);
    color: #fff;
}

.panel-msg-time {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.panel-msg-item.user .panel-msg-time {
    text-align: right;
}

.panel-message-input {
    display: flex;
    gap: 0.5rem;
}

.panel-message-input textarea {
    flex: 1;
    resize: none;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.panel-message-input textarea:focus {
    outline: none;
    border-color: var(--eff-primary);
}

/* Two-column layout within main panel */
.detail-panel-columns {
    display: flex;
    gap: 1.5rem;
}

.detail-panel-col {
    flex: 1;
    min-width: 0;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: #374151;
}

.quick-action-btn:hover {
    background: #f0fdf4;
    border-color: #198754;
    color: #198754;
}

.quick-action-btn i {
    font-size: 1.25rem;
    color: #198754;
}

.quick-action-btn span {
    font-weight: 500;
}

.detail-section {
    margin-bottom: 1.25rem;
}

.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.detail-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section-title i {
    color: #198754;
}

.detail-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.detail-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 140px;
    color: #6c757d;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #212529;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value a {
    color: #198754;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* Timeline styles */
.detail-timeline {
    position: relative;
    padding-left: 24px;
}

.detail-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #198754;
}

.timeline-dot.pending { border-color: #ffc107; }
.timeline-dot.processing { border-color: #0dcaf0; }
.timeline-dot.denied { border-color: #dc3545; }
.timeline-dot.success { border-color: #198754; background: #198754; }

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Timeline claim info */
.timeline-claim-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #dee2e6;
}

.timeline-claim-id {
    font-weight: 600;
    color: #0d6efd;
    cursor: pointer;
    font-size: 0.85rem;
}

.timeline-claim-id:hover {
    text-decoration: underline;
}

.timeline-claim-insurance {
    font-size: 0.8rem;
    color: #495057;
    background: #e9ecef;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.timeline-claim-amount {
    font-weight: 600;
    font-size: 0.85rem;
    color: #198754;
}

.timeline-claim-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.timeline-claim-status.success {
    background: #d1e7dd;
    color: #0f5132;
}

.timeline-claim-status.warning {
    background: #fff3cd;
    color: #664d03;
}

.timeline-claim-status.secondary {
    background: #e2e3e5;
    color: #41464b;
}

.timeline-claim-status.info {
    background: #cff4fc;
    color: #055160;
}

.timeline-claim-status.danger {
    background: #f8d7da;
    color: #842029;
}

/* Avatar in detail */
.detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-avatar-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Action buttons */
.detail-panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    gap: 0.75rem;
}

.detail-action-btn {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--eff-transition);
}

/* Mini cards for policies/claims */
.mini-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--eff-transition);
    cursor: pointer;
}

.mini-card:hover {
    border-color: #198754;
    box-shadow: 0 2px 8px rgba(25,135,84,0.15);
}

.mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mini-card-title {
    font-weight: 600;
    color: #212529;
}

.mini-card-amount {
    font-weight: 700;
    color: #198754;
    font-size: 1.1rem;
}

.mini-card-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.mini-card-details span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Financial breakdown in mini-cards */
.mini-card-financial {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dee2e6;
}

.financial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.financial-row span:first-child {
    color: #6c757d;
}

.financial-row span:last-child {
    font-weight: 500;
    color: #212529;
}

.financial-row.highlight {
    background: linear-gradient(90deg, rgba(25,135,84,0.08) 0%, transparent 100%);
    margin: 0.25rem -0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.financial-row.highlight span:last-child {
    font-weight: 600;
    color: #198754;
}

.financial-row.fee span:last-child {
    color: #fd7e14;
}

/* Documents list */
.document-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.document-item:hover {
    background: #e9ecef;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.document-icon.pdf { color: #dc3545; }
.document-icon.image { color: #198754; }
.document-icon.doc { color: #0d6efd; }

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #212529;
}

.document-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.document-actions a {
    color: #6c757d;
    padding: 0.35rem;
    transition: color 0.2s;
}

.document-actions a:hover {
    color: #198754;
}

/* Amount summary box */
.amount-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.amount-summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.amount-summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #198754;
}

.amount-summary-sub {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-grid-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.info-grid-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-grid-value {
    font-weight: 600;
    color: #212529;
}

/* Beneficiary card */
.beneficiary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.beneficiary-card-info {
    flex: 1;
}

.beneficiary-card-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.beneficiary-card-relation {
    font-size: 0.85rem;
    color: #6c757d;
}

.beneficiary-card-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #d1e7dd;
    color: #0f5132;
}

/* Responsive for detail panel */
@media (max-width: 700px) {
    .detail-panel {
        width: 100%;
        right: -100%;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}
