/* =================================================================
   START: index.blade.php Specific Styles (FIXED)
   ================================================================= */

/* --- Base Card & Button Styles (Used on this page) --- */
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: background-color 0.2s, border-color 0.2s;
}

main > .card:first-child {
    margin-top: 30px;
}

button, .btn-secondary-outline {
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    min-width: 150px;
}
.btn-secondary-outline { text-decoration: none; }

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #218c7d; }
.btn-primary:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}
.btn-secondary { background-color: #e0e0e0; color: var(--text-dark); }
.btn-secondary:hover { background-color: #bdbdbd; }

.button-group .btn-secondary.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
    transform: translateY(0);
}

.btn-dark { background-color: var(--dark-bg); color: var(--text-light); }
.btn-dark:hover { background-color: #3e5771; }
.btn-secondary-outline { background-color: transparent; border: 2px solid var(--secondary-color); color: var(--secondary-color); margin-top: 10px; }
.btn-secondary-outline:hover { background-color: var(--secondary-color); color: #fff; }

/* --- Email Generator Section --- */
.email-generator {
    position: relative; 
    border: 2px dashed #cccccc;
}

.email-generator h2 {
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.email-display {
    background-color: #ecf0f1;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
}

.email-display input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
}

.tagline {
    text-align: center;
    color: var(--secondary-color);
    padding: 10px 0;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* --- Button Section & New Email Form --- */
.button-section {
    position: relative; 
}

#new-email-form {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
}

#new-email-form.active {
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}


.email-create-box {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.validation-msg { display: none !important; }

.form-notification-label {
    height: 28px;
    margin-bottom: 0;
    margin-top: 0; 
    box-sizing: border-box;
    background-color: #fdeded;
    color: #c0392b;
    padding: 0;
    font-size: 0.85em;
    border: 1px solid #c0392b;
    border-top: none;
    border-radius: 0 0 4px 4px;
    text-align: center;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.form-notification-label.visible {
    opacity: 1;
    visibility: visible;
}

.email-create-box input {
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1em;
    height: 48px;
    outline: none;
    width: 100%;
}

.email-create-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.2);
}

.button-group, .button-group-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    position: relative; 
}

.button-group-row {
    margin-top: 0;
}

.button-group::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--arrow-left-position, 50%); 
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent var(--border-color) transparent;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.button-section.form-open .button-group::after {
    opacity: 1;
}

.button-group-row:last-child {
    margin-bottom: 0;
}

.button-group button, .button-group-row button {
    flex: 1;
}

/* --- QR Code & Action Notification --- */
#qr-code-container {
    position: absolute;
    top: calc(100% + 15px);
    left: 25%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 100;
    display: none;
}

#qr-code-container::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%; 
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

#action-notification {
    position: absolute;
    background-color: white;
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#action-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#action-notification::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

/* --- Ad Placeholder --- */
.ad-placeholder-horizontal, .ad-placeholder-sidebar { background-color: #f1f1f1; text-align: center; padding: 20px; margin-top: 15px; border: 1px dashed #ccc; color: #aaa; border-radius: 5px; }
.ad-placeholder-horizontal { margin-bottom: 30px; }

/* --- Inbox Section --- */
.inbox { padding: 0; }
.inbox-header { display: flex; justify-content: space-between; align-items: center; background-color: var(--dark-bg); color: var(--text-light); padding: 15px; border-radius: 8px 8px 0 0; }
.inbox-body {
    padding: 0;
    min-height: 280px; 
    position: relative; 
}
.inbox-header #manual-refresh-icon { color: var(--text-light); cursor: pointer; transition: transform 0.3s; }
.inbox-header #manual-refresh-icon:hover { transform: rotate(90deg); }

.inbox-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.inbox-empty .fa-envelope {
    font-size: 4em;
    margin-bottom: 15px;
    animation: professionalFloat 4s ease-in-out infinite;
}

@keyframes professionalFloat {
    0% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-7px) rotate(1.5deg); }
    50% { transform: translateY(0) rotate(0); }
    75% { transform: translateY(-4px) rotate(-1.5deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* --- Info Section --- */
.info-section {
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    background-color: #ffffff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.2s, border-color 0.2s;
}

.info-section h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.3em;
}

.info-section p {
    color: #555;
    line-height: 1.7;
}

/* --- Popular Articles Section (on Index Page) --- */
.popular-articles-section {
    margin-bottom: 30px;
}
.page-header {
    text-align: center;
    margin-bottom: 20px;
}
.page-header h1, .page-header h2 {
    font-family: 'Google Sans', sans-serif; 
    font-size: 2.2em;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.1em;
    color: var(--secondary-text-color);
}
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.article-card-large {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eaeaea;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; 
}
.article-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.article-image-large {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0; 
}
.article-card-body-large {
    padding: 20px;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: var(--secondary-text-color);
    margin-bottom: 15px;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-title-large {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 10px;
}
.article-title-large a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}
.article-title-large a:hover {
    color: var(--primary-color);
}
.article-content-large {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
}

/* --- Custom Select Dropdown (New Email Form) --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    flex: 1;
    min-width: 180px;
}
.custom-select-wrapper.open {
    z-index: 50;
}
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1em;
    height: 48px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.2);
}
.custom-select-trigger .fa-caret-down {
    transition: transform 0.3s;
}
.custom-select-wrapper.open .custom-select-trigger .fa-caret-down {
    transform: rotate(180deg);
}
.custom-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-options li {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.custom-options li:hover {
    background-color: #f0f8f7;
    color: var(--primary-color);
}


/* --- Responsive (Index Page Content) --- */
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .email-display input { font-size: 1em; }
    .email-create-box { flex-wrap: nowrap; }
}


/* --- START: Inbox Specific Styles --- */
.inbox-header-list { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.inbox-header-view { display: none; align-items: center; width: 100%; }

.inbox.view-mode-active .inbox-header-list { display: none; }
.inbox.view-mode-active .inbox-header-view { display: flex; }

.email-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 20px;
}
.email-item:last-child { border-bottom: none; }
.email-item:hover { background-color: rgba(0, 0, 0, 0.04); }
.email-sender {
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.email-subject {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--secondary-color);
}
.email-timestamp {
    font-size: 0.85em;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: auto;
}
.email-item.unread .email-sender,
.email-item.unread .email-subject {
    color: var(--text-dark);
    font-weight: 700;
}

.email-view-container { padding: 20px; }

/* ====================================================== */
/* সমাধান: Bug #2 - "BACK TO LIST" বাটন ফিক্স              */
/* ====================================================== */
.back-to-list-btn {
    background: none; border: none; font-size: 0.9em; font-weight: 700;
    color: var(--header-footer-light-text); display: flex;
    align-items: center; gap: 8px; padding: 0; min-width: auto;
    /* cursor: pointer; - এই লাইনটি ডিলিট করা হলো */
}
.back-to-list-btn:hover { color: #fff; transform: none; box-shadow: none; }
/* শুধু আইকনটিকে ক্লিকেবল করা হলো */
.back-to-list-btn .fa-arrow-left {
    cursor: pointer;
    padding: 5px; /* ক্লিকের জন্য একটু জায়গা বাড়ানো হলো */
    border-radius: 50%;
    transition: background-color 0.2s;
}
.back-to-list-btn .fa-arrow-left:hover {
     background-color: rgba(255, 255, 255, 0.1);
}
/* ====================================================== */
/* End: Bug #2 সমাধান                                     */
/* ====================================================== */

.nav-arrows { display: flex; align-items: center; gap: 8; margin-left: auto; }
.nav-arrows button {
    background: none; border: none; color: var(--header-footer-light-text);
    width: 30px; height: 30px; min-width: auto; border-radius: 50%;
    cursor: pointer; padding: 0; font-size: 0.8em; display: flex;
    align-items: center; justify-content: center; transition: background-color 0.2s;
}
.nav-arrows button:hover { background-color: rgba(255, 255, 255, 0.1); transform: none; box-shadow: none; }
.nav-arrows button:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-color); }
.nav-arrows button:disabled { opacity: 0.4; cursor: not-allowed; background-color: transparent; }
.email-view-meta { display: flex; align-items: flex-start; margin-bottom: 25px; gap: 15px; flex-wrap: wrap; }
.sender-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sender-details { display: flex; flex-direction: column; flex-grow: 1; }
.sender-name { font-weight: 700; }
.sender-email { font-size: 0.9em; color: var(--secondary-color); }
.email-meta-right {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 15px; color: var(--secondary-color); font-size: 0.9em; margin-left: auto;
}
.email-view-subject {
    font-size: 1.2em; font-weight: 700; margin-bottom: 25px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border-color);
}
.email-view-subject .subject-prefix { font-weight: normal; color: var(--secondary-color); }
.email-view-body { padding-bottom: 150px; }
.email-view-body button { margin-top: 100px; margin-bottom: 0; }
.email-view-actions { padding-top: 20px; border-top: 1px solid var(--border-color); }
.forward-action { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
.forward-btn { min-width: auto; padding: 10px 15px; }
.forward-btn span { display: inline-block; transition: all 0.2s; }
.forward-controls { display: none; flex-grow: 1; gap: 10px; align-items: center; }
.forward-action.active .forward-controls { display: flex; }
.forward-action.active .forward-btn span { display: none; width: 0; opacity: 0; }
.forward-action .btn-primary { min-width: auto; padding: 10px 20px; }
.forward-dropdown .custom-select-trigger { height: 38px; padding: 8px 12px; }
.email-options-wrapper { position: relative; }
.email-meta-right .fa-ellipsis-vertical { cursor: pointer; font-size: 1.4em; padding: 5px 10px; }
.email-actions-menu {
    display: none; position: absolute; top: calc(100% + 5px); right: 0;
    background-color: var(--card-background-color); border: 1px solid var(--border-color);
    border-radius: 8px; box-shadow: var(--card-shadow); z-index: 10; width: 200px; overflow: hidden;
}
.email-options-wrapper.active .email-actions-menu { display: block; }
.action-menu-item {
    display: flex; align-items: center; gap: 15px; padding: 12px 15px;
    cursor: pointer; font-size: 0.9em; color: var(--text-dark);
}
.action-menu-item:hover { background-color: rgba(0, 0, 0, 0.05); }
.action-menu-item i { width: 20px; text-align: center; }

#email-attachments-container { margin-top: -100px; padding-bottom: 20px; }
.email-attachments h3 { margin-bottom: 15px; font-size: 1.1em; }
.email-attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.attachment-item {
    border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;
    text-align: center; text-decoration: none; color: var(--text-dark); transition: background-color 0.2s;
}
.attachment-item:hover { background-color: rgba(0,0,0,0.04); }
.attachment-preview img {
    max-width: 100%; height: 80px; object-fit: cover; border-radius: 5px;
    margin-bottom: 10px; background-color: #f0f0f0;
}
.attachment-icon { font-size: 2.5em; margin: 10px 0 20px 0; color: var(--secondary-color); }
.attachment-details { font-size: 0.85em; }
.attachment-details .file-name { font-weight: bold; word-break: break-all; }
.attachment-details .file-size { color: var(--secondary-color); }

#manual-refresh-icon.spinning { animation: spin 1s linear; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slideInFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.email-item.new-email { animation: slideInFade 0.5s ease-out forwards; }

@media (max-width: 576px) {
    .forward-action { flex-wrap: nowrap; }
    .forward-controls { width: 100%; }
    .forward-dropdown .custom-select-trigger { font-size: 0.8em; border-width: 1px; min-width: 120px; height: 38px; padding: 8px; }
    .forward-action .btn-primary { padding: 9px 15px; }
    .email-view-subject { font-size: 1.05em; }
    .email-meta-right { width: auto; margin-left: auto; }
    .email-view-meta { align-items: center; }
    .email-meta-right { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 10px; }
    .forward-dropdown .custom-options li { font-size: 0.8em; padding: 8px 10px; }
}

#inbox-loader {
    display: none;
    animation: spin 1.5s linear infinite;
    margin-right: 5px;
}
#inbox-loader.show { display: inline-block; }
.inbox-header-list > div { display: flex; align-items: center; }

.email-dropdown-wrapper {
    position: static;
    display: none; /* Hide by default, show on login */
}
.inbox-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    z-index: 100;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}
.inbox-dropdown-menu.show { display: block; }
.inbox-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.inbox-item-container:not(.active-container):hover { background-color: rgba(0, 0, 0, 0.05); }
.inbox-item {
    flex-grow: 1;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9em;
    cursor: pointer;
}
.inbox-item-container.active-container { background-color: var(--primary-color); }
.inbox-item-container.active-container .inbox-item { color: #fff; font-weight: 700; }
.inbox-delete-options {
    position: relative;
    display: flex;
    align-items: center;
}
.inbox-delete-trigger {
    cursor: pointer;
    color: var(--secondary-color);
    padding: 12px 15px;
    transition: color 0.2s;
}
.inbox-delete-trigger:hover { color: #e74c3c; }
.inbox-item-container.active-container .inbox-delete-trigger { color: #fff; }
.inbox-item-container.active-container .inbox-delete-trigger:hover { color: #ffdddd; }

.delete-confirmation-menu {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 6px;
    padding: 4px;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.inbox-delete-options.show-confirm-menu .delete-confirmation-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}
.delete-confirmation-menu::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--card-background-color);
    filter: drop-shadow(1px 0px 1px rgba(0,0,0,0.05));
}
.delete-confirmation-menu .inbox-cancel-delete { order: 1; }
.delete-confirmation-menu .inbox-confirm-delete { order: 2; }
.delete-confirmation-menu i {
    width: 28px;
    height: 28px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--secondary-color);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.delete-confirmation-menu .inbox-confirm-delete:hover {
    background-color: #27ae60;
    color: #fff;
    transform: scale(1.1);
}
.delete-confirmation-menu .inbox-cancel-delete:hover {
    background-color: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}

.skeleton-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}
.skeleton-line {
    height: 16px;
    border-radius: 4px;
    background: #e0e0e0;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}
.skeleton-item .sender { width: 120px; }
.skeleton-item .subject { flex-grow: 1; }
.skeleton-item .timestamp { width: 80px; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* --- END: Inbox Specific Styles --- */


/* --- START: Dark Mode (Index Page Content) --- */
body.dark-mode .card,
body.dark-mode .info-section,
body.dark-mode .article-card-large,
body.dark-mode #action-notification,
body.dark-mode .custom-select-trigger,
body.dark-mode .custom-options {
    background-color: var(--card-background-color);
    border-color: var(--border-color);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .article-title-large a,
body.dark-mode .info-section h3,
body.dark-mode .custom-select-trigger,
body.dark-mode .custom-options,
body.dark-mode .action-menu-item {
    color: var(--primary-text-color);
}
body.dark-mode .article-title-large { 
     color: var(--primary-text-color);
}
body.dark-mode .article-content-large { 
     color: var(--secondary-text-color);
}
body.dark-mode a.article-card-large:hover .article-title-large {
    color: var(--primary-theme-color);
}

body.dark-mode .email-display {
    background-color: #3c4043;
}

body.dark-mode .btn-secondary {
    background-color: #3c4043;
    color: var(--primary-text-color);
}
body.dark-mode .btn-secondary:hover {
    background-color: #5f6368;
}

body.dark-mode .btn-dark {
    background-color: #3c4043;
    color: var(--primary-text-color);
}
body.dark-mode .btn-dark:hover {
    background-color: #5f6368;
}

body.dark-mode .inbox-header {
    background-color: #3c4043;
}

body.dark-mode .custom-options li:hover {
    background-color: #3c4043;
}

body.dark-mode .button-group .btn-secondary.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
    transform: translateY(0);
}

body.dark-mode .email-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .email-item.unread .email-sender,
body.dark-mode .email-item.unread .email-subject {
    color: var(--primary-text-color);
}

body.dark-mode .action-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .attachment-item { color: var(--primary-text-color); }
body.dark-mode .attachment-item:hover { background-color: rgba(255, 255, 255, 0.06); }

body.dark-mode .inbox-item-container:not(.active-container):hover {
    background-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .inbox-item-container .inbox-item {
    color: var(--primary-text-color);
}
body.dark-mode .inbox-item-container.active-container .inbox-item {
    color: #fff;
}

body.dark-mode .delete-confirmation-menu {
    background-color: #ffffff;
    border-color: #e0e0e0;
}
body.dark-mode .delete-confirmation-menu::after {
     border-color: transparent transparent transparent #ffffff;
     filter: none;
}
body.dark-mode .delete-confirmation-menu i {
    color: #7f8c8d;
}

body.dark-mode .skeleton-line {
    background: linear-gradient(90deg, #3c4043 25%, #4a4e54 50%, #3c4043 75%);
    background-size: 200% 100%;
}
/* --- END: Dark Mode (Index Page Content) --- */


