/* ===========================================
   Notifications Page - Standalone Styles
   ไม่ใช้ CSS จากหน้าแชท
   =========================================== */

/* ===========================================
   Reset & Base
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body[data-page-id="notifications"] {
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===========================================
   Scrollbar Styling
   =========================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
body[data-page-id="notifications"]::-webkit-scrollbar {
    width: 12px;
}

body[data-page-id="notifications"]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

html[data-theme="dark"] body[data-page-id="notifications"]::-webkit-scrollbar-track,
[data-theme="dark"] body[data-page-id="notifications"]::-webkit-scrollbar-track {
    background: #2a2a2a;
}

body[data-page-id="notifications"]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body[data-page-id="notifications"]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
    background-clip: padding-box;
}

html[data-theme="dark"] body[data-page-id="notifications"]::-webkit-scrollbar-thumb,
[data-theme="dark"] body[data-page-id="notifications"]::-webkit-scrollbar-thumb {
    background: #555555;
}

html[data-theme="dark"] body[data-page-id="notifications"]::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] body[data-page-id="notifications"]::-webkit-scrollbar-thumb:hover {
    background: #707070;
}

/* Firefox */
body[data-page-id="notifications"] {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

html[data-theme="dark"] body[data-page-id="notifications"],
[data-theme="dark"] body[data-page-id="notifications"] {
    scrollbar-color: #555555 #2a2a2a;
}

/* ===========================================
   Theme Colors
   =========================================== */

/* Light Theme */
html:not([data-theme="dark"]) body[data-page-id="notifications"],
body:not([data-theme="dark"])[data-page-id="notifications"] {
    background: #ffffff;
    color: #171717;
}

html:not([data-theme="dark"]) body[data-page-id="notifications"] *,
body:not([data-theme="dark"])[data-page-id="notifications"] * {
    color: #171717;
}

/* Dark Theme */
html[data-theme="dark"] body[data-page-id="notifications"],
[data-theme="dark"] body[data-page-id="notifications"] {
    background: #1a1a1a;
    color: #ffffff;
}

html[data-theme="dark"] body[data-page-id="notifications"] *,
[data-theme="dark"] body[data-page-id="notifications"] * {
    color: #ffffff;
}

/* ===========================================
   Layout
   =========================================== */
body[data-page-id="notifications"] .app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: inherit;
}

body[data-page-id="notifications"] .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    background: inherit;
}

.notifications-main {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===========================================
   Header
   =========================================== */
body[data-page-id="notifications"] .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

html[data-theme="dark"] body[data-page-id="notifications"] .header,
[data-theme="dark"] body[data-page-id="notifications"] .header {
    background: #242424;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #171717;
    text-decoration: none;
    transition: background 0.2s;
}

.header-back-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] body[data-page-id="notifications"] .header-back-btn,
[data-theme="dark"] body[data-page-id="notifications"] .header-back-btn {
    color: #ffffff;
}

html[data-theme="dark"] body[data-page-id="notifications"] .header-back-btn:hover,
[data-theme="dark"] body[data-page-id="notifications"] .header-back-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header-title {
    font-family: 'Prompt', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #306E8C 0%, #8CBF56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #171717;
    transition: all 0.2s;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] body[data-page-id="notifications"] .theme-toggle-btn,
[data-theme="dark"] body[data-page-id="notifications"] .theme-toggle-btn {
    color: #ffffff;
}

html[data-theme="dark"] body[data-page-id="notifications"] .theme-toggle-btn:hover,
[data-theme="dark"] body[data-page-id="notifications"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===========================================
   Notification Section
   =========================================== */
.notification-section {
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

html[data-theme="dark"] body[data-page-id="notifications"] .notification-section,
[data-theme="dark"] body[data-page-id="notifications"] .notification-section {
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] body[data-page-id="notifications"] .section-header,
[data-theme="dark"] body[data-page-id="notifications"] .section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .section-title,
[data-theme="dark"] body[data-page-id="notifications"] .section-title {
    color: #ffffff;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #306E8C 0%, #8CBF56 100%);
    display: inline-block;
    flex-shrink: 0;
}

.section-title i {
    color: #306E8C;
    font-size: 18px;
    flex-shrink: 0;
}

.section-title span {
    color: inherit;
}

/* ===========================================
   Notification List
   =========================================== */
.notification-list {
    min-height: 200px;
    padding: 16px;
    background: transparent;
}

/* ===========================================
   Empty State
   =========================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
    color: inherit;
    min-height: 150px;
}

.empty-state i {
    font-size: 48px;
    color: #a3a3a3;
    margin-bottom: 12px;
    opacity: 0.5;
}

html[data-theme="dark"] body[data-page-id="notifications"] .empty-state i,
[data-theme="dark"] body[data-page-id="notifications"] .empty-state i {
    color: #6b7280;
    opacity: 0.2;
}

.empty-state p {
    font-size: 14px;
    color: inherit;
    margin: 0;
}

/* ===========================================
   Notification Item
   =========================================== */
.notification-item {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
    background: transparent;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .notification-item,
[data-theme="dark"] body[data-page-id="notifications"] .notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f5f5f5;
}

html[data-theme="dark"] body[data-page-id="notifications"] .notification-item:hover,
[data-theme="dark"] body[data-page-id="notifications"] .notification-item:hover {
    background: #2a2a2a;
}

.notification-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notification-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

html[data-theme="dark"] body[data-page-id="notifications"] .notification-item-title,
[data-theme="dark"] body[data-page-id="notifications"] .notification-item-title {
    color: #ffffff;
}

.notification-item-date {
    font-size: 12px;
    color: #737373;
}

html[data-theme="dark"] body[data-page-id="notifications"] .notification-item-date,
[data-theme="dark"] body[data-page-id="notifications"] .notification-item-date {
    color: #9ca3af;
}

.notification-item-content {
    font-size: 14px;
    color: #171717;
    line-height: 1.6;
}

html[data-theme="dark"] body[data-page-id="notifications"] .notification-item-content,
[data-theme="dark"] body[data-page-id="notifications"] .notification-item-content {
    color: #ffffff;
}

/* ===========================================
   Case Card
   =========================================== */
.case-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card,
[data-theme="dark"] body[data-page-id="notifications"] .case-card {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #306E8C;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card:hover,
[data-theme="dark"] body[data-page-id="notifications"] .case-card:hover {
    box-shadow: 0 4px 12px rgba(48, 110, 140, 0.2);
}

.case-card-header {
    margin-bottom: 12px;
}

.case-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.case-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin: 0;
    line-height: 1.5;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card-title,
[data-theme="dark"] body[data-page-id="notifications"] .case-card-title {
    color: #ffffff;
}

.case-card-date {
    font-size: 13px;
    color: #737373;
    display: block;
    margin-top: 6px;
    font-weight: 400;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card-date,
[data-theme="dark"] body[data-page-id="notifications"] .case-card-date {
    color: #9ca3af;
}

.case-card-content {
    margin-bottom: 12px;
    display: block;
}

.case-card-content p {
    margin: 0;
    display: block;
}

.case-card-subject {
    font-size: 14px;
    font-weight: 500;
    color: #171717;
    margin: 0 0 8px 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card-subject,
[data-theme="dark"] body[data-page-id="notifications"] .case-card-subject {
    color: #ffffff;
}

.case-card-subject strong {
    font-weight: 600;
    color: inherit;
}

.case-card-description {
    font-size: 14px;
    font-weight: 400;
    color: #404040;
    margin: 0;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card-description,
[data-theme="dark"] body[data-page-id="notifications"] .case-card-description {
    color: #d1d5db;
}

.case-card-description strong {
    font-weight: 500;
    color: inherit;
}

.case-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-card-footer,
[data-theme="dark"] body[data-page-id="notifications"] .case-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-card-action {
    font-size: 13px;
    color: #306E8C;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.case-card-action i {
    font-size: 10px;
    transition: transform 0.2s;
}

.case-card:hover .case-card-action i {
    transform: translateX(4px);
}

/* ===========================================
   Case Status Badge
   =========================================== */
.case-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.case-status-badge.status-received,
.case-status-badge.status-pending,
.case-status-badge.status-open {
    background: #fef3c7;
    color: #92400e;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-received,
html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-pending,
html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-open,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-received,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-pending,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-open {
    background: #78350f;
    color: #fbbf24;
}

.case-status-badge.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-in-progress,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-in-progress {
    background: #1e3a8a;
    color: #60a5fa;
}

.case-status-badge.status-waiting,
.case-status-badge.status-waiting_for_info {
    background: #fce7f3;
    color: #9f1239;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-waiting,
html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-waiting_for_info,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-waiting,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-waiting_for_info {
    background: #831843;
    color: #f9a8d4;
}

.case-status-badge.status-completed,
.case-status-badge.status-closed {
    background: #d1fae5;
    color: #065f46;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-completed,
html[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-closed,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-completed,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-badge.status-closed {
    background: #064e3b;
    color: #6ee7b7;
}

/* ===========================================
   Case Detail Modal
   =========================================== */
.case-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.case-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.case-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-overlay,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.case-detail-content {
    position: relative;
    background: #ffffff;
    color: #171717;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-content,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-content {
    background: #1a1a1a;
    color: #ffffff;
}

/* Force text colors in modal for readability */
html:not([data-theme="dark"]) body[data-page-id="notifications"] .case-detail-content,
body:not([data-theme="dark"])[data-page-id="notifications"] .case-detail-content {
    color: #171717;
}

html:not([data-theme="dark"]) body[data-page-id="notifications"] .case-detail-content *,
body:not([data-theme="dark"])[data-page-id="notifications"] .case-detail-content * {
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-content,
html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-content *,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-content,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-content * {
    color: #ffffff;
}

.case-detail-modal.active .case-detail-content {
    transform: scale(1);
}

.case-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-header,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.case-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin: 0;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-title,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-title {
    color: #ffffff;
}

.case-detail-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #737373;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-close,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-close {
    color: #9ca3af;
}

.case-detail-close:hover {
    background: #f5f5f5;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-close:hover,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-close:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.case-detail-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-body,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-body {
    color: #ffffff;
}

html:not([data-theme="dark"]) body[data-page-id="notifications"] .case-detail-body *,
body:not([data-theme="dark"])[data-page-id="notifications"] .case-detail-body * {
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-body *,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-body * {
    color: #ffffff;
}

.case-detail-info {
    margin-bottom: 24px;
}

.case-detail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-info-row,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-info-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-detail-info-row:last-child {
    border-bottom: none;
}

.case-detail-label {
    font-size: 14px;
    color: #737373;
    font-weight: 500;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-label,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-label {
    color: #9ca3af;
}

.case-detail-value {
    font-size: 14px;
    color: #171717;
    font-weight: 600;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-value,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-value {
    color: #ffffff;
}

/* ===========================================
   Status Progress
   =========================================== */
.case-status-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-status-progress,
[data-theme="dark"] body[data-page-id="notifications"] .case-status-progress {
    background: #242424;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.status-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}

html[data-theme="dark"] body[data-page-id="notifications"] .status-step-icon,
[data-theme="dark"] body[data-page-id="notifications"] .status-step-icon {
    background: #374151;
    color: #6b7280;
}

.status-step.active .status-step-icon {
    background: #306E8C;
    color: #ffffff;
    animation: pulse 2s infinite;
}

.status-step.completed .status-step-icon {
    background: #10b981;
    color: #ffffff;
}

.status-step-label {
    font-size: 12px;
    color: #737373;
    text-align: center;
}

html[data-theme="dark"] body[data-page-id="notifications"] .status-step-label,
[data-theme="dark"] body[data-page-id="notifications"] .status-step-label {
    color: #9ca3af;
}

.status-step.active .status-step-label {
    color: #306E8C;
    font-weight: 600;
}

.status-step.completed .status-step-label {
    color: #10b981;
    font-weight: 600;
}

.status-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-top: -20px;
}

html[data-theme="dark"] body[data-page-id="notifications"] .status-step-line,
[data-theme="dark"] body[data-page-id="notifications"] .status-step-line {
    background: #374151;
}

.status-step-line.completed {
    background: #10b981;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(48, 110, 140, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(48, 110, 140, 0);
    }
}

/* ===========================================
   Case Detail Sections
   =========================================== */
.case-detail-section {
    margin-bottom: 24px;
}

.case-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin: 0 0 12px 0;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-section-title,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-section-title {
    color: #ffffff;
}

.case-detail-section-content {
    font-size: 14px;
    color: #171717;
    line-height: 1.6;
    margin: 0;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-detail-section-content,
[data-theme="dark"] body[data-page-id="notifications"] .case-detail-section-content {
    color: #ffffff;
}

/* ===========================================
   Case Info Request
   =========================================== */
.case-info-request {
    padding: 16px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #fbbf24;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-info-request,
[data-theme="dark"] body[data-page-id="notifications"] .case-info-request {
    background: #78350f;
    border-color: #fbbf24;
}

.case-info-request-message {
    font-size: 14px;
    color: #92400e;
    margin: 0 0 16px 0;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-info-request-message,
[data-theme="dark"] body[data-page-id="notifications"] .case-info-request-message {
    color: #fbbf24;
}

.case-info-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.case-info-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.case-info-btn-primary {
    background: #306E8C;
    color: #ffffff;
}

.case-info-btn-primary:hover {
    background: #24556e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 110, 140, 0.3);
}

.case-info-btn-secondary {
    background: #ffffff;
    color: #171717;
    border: 1px solid #e5e5e5;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-info-btn-secondary,
[data-theme="dark"] body[data-page-id="notifications"] .case-info-btn-secondary {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #404040;
}

.case-info-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #306E8C;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-info-btn-secondary:hover,
[data-theme="dark"] body[data-page-id="notifications"] .case-info-btn-secondary:hover {
    background: #3a3a3a;
    color: #ffffff;
}

/* ===========================================
   Case Messages
   =========================================== */
.case-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-message {
    padding: 12px;
    border-radius: 8px;
    background: #fafafa;
    color: #171717;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-message,
[data-theme="dark"] body[data-page-id="notifications"] .case-message {
    background: #242424;
    color: #ffffff;
}

.case-message.user-message {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    color: #065f46;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-message.user-message,
[data-theme="dark"] body[data-page-id="notifications"] .case-message.user-message {
    background: #064e3b;
    border-left-color: #10b981;
    color: #6ee7b7;
}

.case-message.admin-message {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    color: #92400e;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-message.admin-message,
[data-theme="dark"] body[data-page-id="notifications"] .case-message.admin-message {
    background: #78350f;
    border-left-color: #f59e0b;
    color: #fbbf24;
}

.case-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.case-message-role {
    font-size: 12px;
    font-weight: 600;
    color: #737373;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-message-role,
[data-theme="dark"] body[data-page-id="notifications"] .case-message-role {
    color: #9ca3af;
}

.case-message-time {
    font-size: 11px;
    color: #a3a3a3;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-message-time,
[data-theme="dark"] body[data-page-id="notifications"] .case-message-time {
    color: #6b7280;
}

.case-message-content {
    font-size: 14px;
    color: #171717;
    line-height: 1.5;
}

html[data-theme="dark"] body[data-page-id="notifications"] .case-message-content,
[data-theme="dark"] body[data-page-id="notifications"] .case-message-content {
    color: #ffffff;
}

/* ===========================================
   Modal Open State - Prevent body scroll
   =========================================== */
body.modal-open {
    overflow: hidden !important;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .notifications-main {
        padding: 12px;
    }
    
    .section-header {
        padding: 12px;
    }
    
    .notification-list {
        padding: 12px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .section-title i {
        font-size: 16px;
    }
    
    .empty-state {
        padding: 32px 12px;
    }
    
    .empty-state i {
        font-size: 40px;
    }
    
    .case-detail-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .case-detail-header {
        padding: 16px;
    }
    
    .case-detail-body {
        padding: 16px;
    }
    
    .case-status-progress {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .status-step {
        min-width: 60px;
    }
    
    .status-step-line {
        display: none;
    }
    
    .case-info-actions {
        flex-direction: column;
    }
    
    .case-info-btn {
        width: 100%;
    }
}
