* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0f2f5;
    color: #333;
    overflow: hidden;
}

/* --- TOP NAVIGATION BAR --- */
.top-navbar {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-area a {
    font-size: 1.3rem;
    font-weight: 800;
    color: #007bff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #007bff;
}

/* --- MAIN APP WRAPPER (Shifted down for Top Bar) --- */
.main-wrapper {
    display: flex;
    flex: 1;
    margin-top: 60px; /* Matches navbar height */
    height: calc(100vh - 60px);
}

/* --- LEFT SIDEBAR (CONTACTS) --- */
.sidebar {
    width: 350px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.contact-list {
    flex: 1;
    overflow-y: auto;
}

.contact-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.contact-unread-badge {
    min-width: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #ff4d4d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-unread-badge {
    min-width: 20px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #ff4d4d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-left: 8px;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    gap: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.sidebar-tab:hover {
    background-color: #f0f1f3;
}

.sidebar-tab.active {
    background-color: #ffffff;
    color: #007bff;
    border-bottom-color: #007bff;
}

.avatar {
    width: 45px;
    height: 45px;
    background: #be96fe;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.header-avatar {
    width: 35px;
    height: 35px;
    background: #be96fe;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-initial {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-item:hover {
    background-color: #f5f6f9;
}

.contact-item.active {
    background-color: #e8f0fe;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;

    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 100%;
    min-width: 0;
}

.contact-username {
    color: #1a1a1a;
    flex-shrink: 0; /* Ensures username never gets squished */
    margin-right: 10px;
}

.contact-item-title {
    color: var(--primary-color, #007bff); /* Highlights the item in your primary color */
    font-weight: 500;
    font-size: 0.85rem;
    margin-right: 3px;
    flex: 1 1 0;
    min-width: 0;
    
    /* Elegant fallback: Truncates item title with '...' if it is too long */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.contact-preview-row > div {
    min-width: 0;
}

.contact-preview {
    font-size: 0.85rem;
    color: #757575;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.contact-left-group {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

/* NEW: The square container housing your item graphic */
.contact-item-img-container {
    width: 45px;
    height: 45px;
    background-color: #e4e6eb;
    border-radius: 6px;       /* Gives corners a clean, subtle roundness */
    flex-shrink: 0;           /* Prevents the square from flattening */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* NEW: Ensures the item image fills out the square perfectly */
.contact-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- MAIN CHAT WINDOW --- */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    height: 100%; 
    min-height: 0;
}

.chat-header {
    padding: 15px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.chat-header-note {
    font-size: 0.9rem;
    color: #334155;
    padding: 8px 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-header-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

.chat-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.chat-header .active-user {
    font-weight: bold;
    font-size: 1.05rem;
    flex: none;
    white-space: nowrap;
}

.message-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- MESSAGE BUBBLES --- */
.message {
    max-width: 60%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.message.sent {
    background-color: #007bff;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message.recieved {
    background-color: #ffffff;
    color: #333333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #e0e0e0;
}

.message .timestamp {
    font-size: 0.7rem;
    margin-top: 5px;
    text-align: right;
    opacity: 0.7;
    display: block;
}

.message-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    float: right; /* Pushes the meta info to the bottom right corner of the bubble */
    margin-top: 4px;
    margin-left: 8px;
}

.tick {
    color: #df98ef; /* Subtle gray for delivered/unread single tick */
    font-weight: bold;
}

.tick.read-blue {
    color: #34b7f1; /* The classic WhatsApp-style active blue for read double ticks */
}

/* --- SPECIAL MESSAGE TYPES --- */
.message.special-message-reject,
.message.special-message-cancel {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.message.sent.special-message-reject,
.message.sent.special-message-cancel {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.message.special-message-ownerconfirm {
    background-color: #e6ffed;
    color: #136f2d;
    border: 1px solid #8bd18b;
}

.message.sent.special-message-ownerconfirm {
    background-color: #e6ffed;
    color: #136f2d;
    border: 1px solid #8bd18b;
}

.message.special-message-openchat,
.message.sent.special-message-openchat {
    background-color: #fff4cc;
    color: #805d00;
    border: 1px solid #f7d27a;
}

.message.special-message-posterresolve,
.message.sent.special-message-posterresolve {
    background-color: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
}

.message.special-message-confirmresolution,
.message.sent.special-message-confirmresolution {
    background-color: #f3e8ff;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}

/* Add more special message types here: special-message-canceled, special-message-resolved, etc. */

/* --- CHAT INPUT FOOTER --- */
.chat-input-area {
    padding: 15px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 24px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: #007bff;
}

.chat-input-area button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-input-area button:hover {
    background-color: #0056b3;
}

.chat-date-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0; /* Space out the divider from messages above and below */
    width: 100%;
}

/* The thin gray lines on the left and right sides */
.chat-date-divider::before,
.chat-date-divider::after {
    content: '';
    flex: 1; /* Forces both lines to stretch and fill all available width */
    border-bottom: 1px solid #e0e0e0; /* Match your app's border color */
}

/* Spacing out the left line from the text */
.chat-date-divider::before {
    margin-right: 15px;
}

/* Spacing out the right line from the text */
.chat-date-divider::after {
    margin-left: 15px;
}

/* The central text badge styling */
.chat-date-badge {
    background-color: #e4e6eb; /* Soft, readable gray background */
    color: #4b4b4b;            /* Dark gray text for contrast */
    padding: 6px 16px;
    border-radius: 16px;       /* Makes the container a pill shape */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;       /* Prevents the date from wrapping into two lines */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle depth */
}

.unread-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    width: 100%;
    position: relative;
}

/* The striking accent line that spans across the container */
.unread-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #ff4d4d; /* Bright alert red/crimson line */
    opacity: 0.85;
}

/* The "New Messages" text badge */
.unread-label {
    background-color: #ff4d4d; /* Matches the line color */
    color: #ffffff;            /* White text for sharp contrast */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase; /* Clean, professional dashboard look */
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;        /* Slightly squared edges */
    margin-right: 12px;        /* Small gap before the red line continues */
    box-shadow: 0 2px 4px rgba(255, 77, 77, 0.2); /* Soft glow */
    white-space: nowrap;
}

.sidebar-status-filters {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.status-tab {
    border: none;
    background-color: #f4f6fb;
    color: #495057;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-tab:hover,
.status-tab.active {
    background-color: #007bff;
    color: #ffffff;
}

.status-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    z-index: 50;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    padding: 10px 16px;
    color: #333333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #f0f4ff;
}

.contact-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 6px;
}

.chat-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contact-status-chip.status-chatting {
    display: none;
}

.chat-status-chip.status-chatting {
    background-color: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.15);
}

.contact-status-chip.status-owner_confirm,
.chat-status-chip.status-owner_confirm,
.contact-status-chip.status-owner_confirmed,
.chat-status-chip.status-owner_confirmed {
    background-color: #d4edda;
    color: #155724;
}

.chat-status-chip.status-owner_confirm,
.chat-status-chip.status-owner_confirmed {
    box-shadow: 0 1px 3px rgba(21, 87, 36, 0.15);
}

.contact-status-chip.status-pending,
.chat-status-chip.status-pending {
    background-color: #fff4e5;
    color: #9f6000;
}

.chat-status-chip.status-pending {
    box-shadow: 0 1px 3px rgba(159, 96, 0, 0.15);
}

.contact-status-chip.status-pending_resolution,
.chat-status-chip.status-pending_resolution {
    background-color: #eef2ff;
    color: #3730a3;
}

.chat-status-chip.status-pending_resolution {
    box-shadow: 0 1px 3px rgba(55, 48, 163, 0.15);
}

.contact-status-chip.status-resolved,
.chat-status-chip.status-resolved {
    background-color: #d1fae5;
    color: #166534;
}

.chat-status-chip.status-resolved {
    box-shadow: 0 1px 3px rgba(22, 101, 52, 0.15);
}

.contact-status-chip.status-rejected,
.chat-status-chip.status-rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}

.chat-status-chip.status-rejected {
    box-shadow: 0 1px 3px rgba(185, 28, 28, 0.15);
}

.contact-status-chip.status-canceled,
.chat-status-chip.status-canceled,
.contact-status-chip.status-cancelled,
.chat-status-chip.status-cancelled {
    background-color: #fde8e8;
    color: #9b1c1c;
}

.contact-status-chip.status-abandoned,
.chat-status-chip.status-abandoned,
.contact-status-chip.status-abandoned,
.chat-status-chip.status-abandoned {
    background-color: #ff0000;
    color: #000000;
}

.chat-status-chip.status-canceled,
.chat-status-chip.status-cancelled {
    box-shadow: 0 1px 3px rgba(155, 28, 28, 0.15);
}

.chat-disabled-note {
    padding: 16px 20px;
    margin: 0 20px 12px;
    border-radius: 12px;
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    font-size: 0.95rem;
}

.chat-header-btn-group {
    margin-right: 10px;
    display: flex;
    gap: 10px;
}

.chat-header-btn-group button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-header-btn-group .btn-primary {
    background-color: #28a745;
    color: #ffffff;
}

.chat-header-btn-group .btn-primary:hover {
    background-color: #218838;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.chat-header-btn-group .btn-primary.confirm-owner {
    background-color: #28a745;
}

.chat-header-btn-group .btn-primary.confirm-owner:hover {
    background-color: #218838;
}

.chat-header-btn-group .btn-secondary {
    background-color: #e4e6eb;
    color: #333333;
}

.chat-header-btn-group .btn-secondary:hover {
    background-color: #d0d2d7;
}

.chat-header-btn-group .btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.chat-header-btn-group .btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.chat-disabled-note button,
.chat-disabled-note .btn-primary,
.chat-disabled-note .btn-secondary {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.chat-disabled-note .btn-primary {
    background-color: #28a745;
    color: #ffffff;
}

.chat-disabled-note .btn-primary:hover {
    background-color: #218838;
}

.chat-disabled-note .btn-secondary {
    background-color: #e4e6eb;
    color: #333333;
}

.chat-disabled-note .btn-secondary:hover {
    background-color: #d0d2d7;
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.modal-content p {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-buttons {
    margin: 15px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-buttons .btn-primary {
    background-color: #007bff;
    color: #ffffff;
    flex: 1;
}

.modal-buttons .btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.modal-buttons .btn-secondary {
    background-color: #e4e6eb;
    color: #333333;
    flex: 1;
}

.modal-buttons .btn-secondary:hover {
    background-color: #d0d2d7;
}

/* Unique wrapper styling for the Cancel Claim structural variations */
.modal-cancel-theme {
    display: none; /* Controlled via your existing active JS display logic */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Modern dark translucent overlay */
    backdrop-filter: blur(4px); /* Soft background glass blur effect */
    align-items: center;
    justify-content: center;
}

/* Active trigger helper class if you handle overlays via class toggling */
.modal-cancel-theme.is-active {
    display: flex;
}

/* Central Card Layout Container */
.modal-cancel-theme .modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-align: left;
    animation: modalSlideUp 0.25s ease-out;
}

/* Typography elements */
.modal-cancel-theme h2 {
    font-size: 1.35rem;
    color: #1e293b; /* Deep slate font color */
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-cancel-theme p {
    font-size: 0.95rem;
    color: #64748b; /* Soft gray typography text color */
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Input text alignment and borders */
.modal-cancel-theme .modal-input-group {
    margin-bottom: 24px;
}

.modal-cancel-theme input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #334155;
    background-color: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.modal-cancel-theme #cancelReasonInput:focus {
    outline: none;
    border-color: #94a3b8;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

/* Layout flex alignment rules for action button rows */
.modal-cancel-theme .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Form Action Buttons Default & States */
.modal-cancel-theme button {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* The primary safe action button: Keep Claim */
.modal-cancel-theme .btn-primary-keep {
    background-color: #4f46e5; /* Main system theme blue/indigo token code */
    color: #ffffff;
}

.modal-cancel-theme .btn-primary-keep:hover {
    background-color: #4338ca;
}

/* The destructive option element: Cancel Claim */
.modal-cancel-theme .btn-danger-outline {
    background-color: #ffffff;
    color: #ef4444; /* Clean warning crimson state token code */
    border: 1px solid #fca5a5;
}

.modal-cancel-theme .btn-danger-outline:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
}

/* Smooth pop entry layout animation */
@keyframes modalSlideUp {
    from {
        transform: translateY(15px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Isolated outer screen shield configuration */
.modal-confirm-theme {
    display: none; /* Controlled dynamically by your app's script toggle */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

/* Base Card Metrics */
.modal-confirm-theme .modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-align: left;
    animation: modalPopEntry 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography Headings */
.modal-confirm-theme h2 {
    font-size: 1.35rem;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-confirm-theme p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Styled Sub-Container for the Competing Claims Queue Block */
.modal-confirm-theme .rejecting-list {
    background-color: #fff5f5; /* Soft warning red tint */
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    max-height: 160px; /* Limits size if multiple users are in queue */
    overflow-y: auto; /* Adds clean scrollbar padding if list gets huge */
}

.modal-confirm-theme .rejecting-list h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #991b1b; /* Strong alert red typography */
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Resetting the default list properties */
.modal-confirm-theme #rejectingClaimersList {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

/* Clean list item text formatting */
.modal-confirm-theme #rejectingClaimersList li {
    font-size: 0.9rem;
    color: #4b5563;
    padding: 6px 10px;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 6px;
    border-left: 3px solid #ef4444; /* Small red accent indicator line */
    font-weight: 500;
}

/* Fallback baseline style if the list is completely empty when loading */
.modal-confirm-theme #rejectingClaimersList li:last-child {
    margin-bottom: 0;
}

/* Action Rows Alignment Parameters */
.modal-confirm-theme .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-confirm-theme button {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* Safe secondary close choice: Cancel */
.modal-confirm-theme .btn-secondary-close {
    background-color: #f1f5f9;
    color: #475569;
}

.modal-confirm-theme .btn-secondary-close:hover {
    background-color: #e2e8f0;
    color: #334155;
}

/* System Match Validation Action choice: Confirm */
.modal-confirm-theme .btn-success-confirm {
    background-color: #10b981; /* Successful emerald green identity token */
    color: #ffffff;
}

.modal-confirm-theme .btn-success-confirm:hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Smooth pop layout animation template entry scale */
@keyframes modalPopEntry {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}