/* ==========================================
   CAREER STREAM - ADMINISTRATIVE PANEL CSS
   ========================================== */

/* 1. LAYOUT & ROOT WRAPPERS */
.admin-body {
    background: radial-gradient(circle at 50% 0%, #0b0f19 0%, #04060a 100%) !important;
    color: #F8FAFC !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 2. ADMIN LOGIN SCREEN */
.admin-login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(10, 15, 30, 0.95) 0%, rgba(5, 7, 15, 0.99) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.login-card {
    max-width: 420px;
    width: 100%;
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.05);
}

.login-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.35));
    margin-bottom: 15px;
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
}

.login-card .input-group {
    text-align: left;
    margin-bottom: 18px;
}

.login-card label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.login-card .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-card .input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-card input {
    width: 100%;
    padding: 11px 12px 11px 36px;
    font-size: 0.85rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

.login-card input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.login-btn {
    width: 100%;
    height: 42px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--accent-teal), #00ABE4);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
    border-radius: 8px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login-divider span {
    padding: 0 10px;
}

.login-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer {
    margin-top: 25px;
    font-size: 0.8rem;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--accent-teal);
}

/* 3. SIDEBAR STYLES */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #090d16 0%, #05070a 100%);
    z-index: 100;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.35);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.25));
}

.sidebar-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.sidebar-role {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    display: block;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease-in-out;
}

.nav-item i {
    width: 16px;
    font-size: 0.95rem;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.active-nav-item {
    background: rgba(0, 242, 254, 0.08) !important;
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
    color: var(--accent-teal) !important;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    gap: 10px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), #00ABE4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
}

.admin-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.admin-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-email {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* 4. CONTENT & TOP BAR STYLES */
.admin-content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 24px;
    overflow-y: auto;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.admin-topbar h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 3px 0;
}

.current-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-site-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.preview-site-btn:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: rgba(0, 242, 254, 0.02);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
}

.status-dot-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: waPulse 1.5s infinite alternate;
}

.status-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5. TAB PANELS */
.panel-tab {
    display: none;
    animation: fadeIn 0.4s ease;
}

.active-tab-panel {
    display: block !important;
}

/* Stats grid in dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.teal-glow {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.purple-glow {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: #9061f3;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.gold-glow {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.pink-glow {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.1);
}

.red-glow {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.card-stats {
    display: flex;
    flex-direction: column;
}

.stats-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.stats-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Charts grid */
.charts-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.chart-card {
    flex: 1;
    min-width: 320px;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-wrapper {
    position: relative;
    flex-grow: 1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 6. ADMIN TABLES */
.dashboard-table-card {
    padding: 24px;
    border-radius: 16px;
}

.card-header-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-header-btn h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Table statuses badges */
.status-pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pill.applied {
    background: rgba(0, 171, 228, 0.08);
    border: 1px solid rgba(0, 171, 228, 0.2);
    color: var(--accent-teal);
}

.status-pill.interviewing {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
}

.status-pill.rejected {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-pill.hired {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-pill.pending {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.rating-badge {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* 7. SUB TABS IN MANAGE JOBS */
.sub-tabs-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.sub-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.active-sub-tab {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--accent-teal) !important;
    font-weight: 700;
}

.sub-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.active-sub-panel {
    display: block !important;
}

.table-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* 8. FORM CONTROLS */
.admin-form {
    padding: 24px;
    border-radius: 16px;
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px 24px;
}

.admin-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.admin-form label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form input, .admin-form select, .admin-form textarea {
    padding: 9px 12px;
    font-size: 0.85rem;
    background: rgba(10, 15, 30, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

.full-width-input {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), #00ABE4);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Custom Checkbox Container */
.checkbox-row {
    text-align: left;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 18px; width: 18px;
    background-color: rgba(10, 15, 30, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-teal);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px; top: 2px;
    width: 4px; height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom visual rich text editor wrapper */
.rich-text-editor {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(10, 15, 30, 0.15);
    display: flex;
    flex-direction: column;
}

.editor-toolbar {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.editor-toolbar button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.editor-content {
    padding: 16px;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    outline: none;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: left;
}

/* HTML description overview card templates */
.editor-content .job-overview-box {
    background: rgba(0, 171, 228, 0.05);
    border: 1px solid rgba(0, 171, 228, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

/* 9. BULK CSV IMPORT DROPZONE */
.bulk-import-container {
    padding: 24px;
    border-radius: 16px;
    max-width: 800px;
}

.file-upload-dropzone {
    border: 2px dashed var(--border-color);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.file-upload-dropzone:hover, .file-upload-dropzone.dragover {
    border-color: var(--accent-teal);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.03);
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.file-upload-dropzone:hover .dropzone-icon {
    color: var(--accent-teal);
}

.file-upload-dropzone span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* 10. NEWSLETTER LAYOUT */
.newsletter-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    flex-wrap: wrap;
}

.composer-card {
    padding: 24px;
    border-radius: 16px;
}

.jobs-multiselect-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(10, 15, 30, 0.2);
}

.job-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.job-select-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.newsletter-logs-console {
    background: #050810;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.72rem;
    color: #00ABE4;
    overflow-y: auto;
    flex-grow: 1;
    text-align: left;
}

.console-line {
    margin-bottom: 4px;
    line-height: 1.4;
}

.console-line.info {
    color: var(--accent-gold);
}

.console-line.success {
    color: #10b981;
}

.console-line.error {
    color: #ef4444;
}

/* 11. MONETIZATION METRICS & PROMOS */
.monetization-top-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.tracker-settings-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 15px;
    text-align: left;
}

.tracker-settings-card label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* 12. DEVELOPER TOOLS GRID */
.dev-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Custom Scrollbar for dashboard panels */
.admin-content-area::-webkit-scrollbar, .sidebar-nav::-webkit-scrollbar, .table-container::-webkit-scrollbar, .editor-content::-webkit-scrollbar, .jobs-multiselect-list::-webkit-scrollbar, .newsletter-logs-console::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.admin-content-area::-webkit-scrollbar-track, .sidebar-nav::-webkit-scrollbar-track, .table-container::-webkit-scrollbar-track, .editor-content::-webkit-scrollbar-track, .jobs-multiselect-list::-webkit-scrollbar-track, .newsletter-logs-console::-webkit-scrollbar-track {
    background: transparent;
}

.admin-content-area::-webkit-scrollbar-thumb, .sidebar-nav::-webkit-scrollbar-thumb, .table-container::-webkit-scrollbar-thumb, .editor-content::-webkit-scrollbar-thumb, .jobs-multiselect-list::-webkit-scrollbar-thumb, .newsletter-logs-console::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.admin-content-area::-webkit-scrollbar-thumb:hover, .sidebar-nav::-webkit-scrollbar-thumb:hover, .table-container::-webkit-scrollbar-thumb:hover, .editor-content::-webkit-scrollbar-thumb:hover, .jobs-multiselect-list::-webkit-scrollbar-thumb:hover, .newsletter-logs-console::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 13. ANIMATIONS */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake-animation {
    animation: shake 0.4s ease-in-out;
}

/* Responsive sidebars collapsing drawer */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 10, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

.sidebar-backdrop.active-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 900px) {
    .admin-main-container {
        flex-direction: column;
    }
    
    /* Show sidebar toggle button */
    .sidebar-toggle-btn {
        display: flex;
    }
    
    /* Make sidebar a slide-out drawer */
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        min-height: 100vh;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        z-index: 999;
        transform: translateX(-100%);
        visibility: hidden; /* Prevent horizontal layout overflow */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .admin-sidebar.active-sidebar {
        transform: translateX(0);
        visibility: visible;
    }
    
    /* Ensure nav items stack inside drawer as vertical list */
    .sidebar-nav {
        flex-direction: column;
        overflow-y: auto;
        padding: 16px 12px;
        gap: 6px;
    }
    
    .nav-item {
        white-space: normal;
    }
    
    /* Content Area Optimizations */
    .admin-content-area {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Topbar styling adjustments */
    .admin-topbar {
        padding: 12px 16px;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    /* Dashboard stats cards stacked nicely */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .insight-card {
        padding: 16px;
        min-width: 0 !important; /* Override inline min-width */
    }
    
    .stats-num {
        font-size: 1.3rem;
    }
    
    /* Stack form controls vertically */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-form {
        padding: 16px;
        max-width: 100% !important;
    }
    
    /* Charts stacked */
    .charts-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .chart-card {
        min-width: 0 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    /* Developer tools stacked */
    .dev-tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Newsletter dashboard grid stacked */
    .newsletter-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Table styling & horizontal scroll */
    .dashboard-table-card {
        padding: 16px;
    }
    
    .table-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .table-actions-row .search-wrapper,
    .table-actions-row .filter-wrapper {
        width: 100%;
    }
    
    .table-actions-row select,
    .table-actions-row input {
        width: 100%;
    }
    
    .modal-card {
        width: 92% !important;
        padding: 20px 16px !important;
    }
}

@media (max-width: 500px) {
    .admin-topbar h2 {
        font-size: 1.1rem;
    }
    .current-date {
        font-size: 0.65rem;
    }
    .topbar-right {
        flex-direction: column;
        align-items: stretch;
    }
    .preview-site-btn {
        justify-content: center;
    }
    .status-indicator {
        justify-content: center;
    }
    .login-card {
        padding: 25px 20px;
    }
}

/* Multi-step Auth Transitions & Styles */
.auth-form-step {
    animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-link {
    font-size: 0.72rem;
    color: var(--accent-teal) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-link:hover, .auth-link-init:hover {
    opacity: 0.8;
}

.auth-link-init {
    font-size: 0.72rem;
    color: var(--accent-gold) !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
}

.google-auth-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-auth-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   TOAST NOTIFICATIONS SYSTEM
   ========================================== */
.toast-card {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), toastFadeOut 0.3s ease forwards;
    animation-delay: 0s, 4.7s;
}

.toast-card.toast-info {
    border-left: 4px solid var(--accent-teal);
}

.toast-card.toast-success {
    border-left: 4px solid #10b981;
}

.toast-card.toast-warning {
    border-left: 4px solid var(--accent-gold);
}

.toast-card.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-info .toast-icon { color: var(--accent-teal); }
.toast-success .toast-icon { color: #10b981; }
.toast-warning .toast-icon { color: var(--accent-gold); }
.toast-error .toast-icon { color: #ef4444; }

.toast-content {
    flex-grow: 1;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 500;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close-btn:hover {
    color: var(--text-primary);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes loadingDot {
    0% { transform: translateY(0); opacity: 0.3; }
    100% { transform: translateY(-5px); opacity: 1; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Website Optimizer Custom Styles */
.orange-glow {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.console-line.warning {
    color: #f59e0b;
}

.console-line.processing {
    color: #00F2FE;
}

.console-line.accent {
    color: #a855f7;
}

/* Modal overlay flex layout on active */
.modal-overlay.active-modal {
    display: flex !important;
}

/* ==========================================
   ZOHO WEBMAIL CONSOLE ADDITIONS
   ========================================== */
.webmail-message-item {
    transition: all 0.2s ease-in-out !important;
}

.webmail-message-item:hover {
    border-color: var(--accent-teal) !important;
    background: rgba(0, 242, 254, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.05);
}

.webmail-message-item.active-message {
    border-color: var(--accent-teal) !important;
    background: rgba(0, 242, 254, 0.1) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15) !important;
}

/* Scrollbar styling for Webmail list and viewer */
#webmail-messages-container::-webkit-scrollbar,
#mail-view-body::-webkit-scrollbar {
    width: 6px;
}
#webmail-messages-container::-webkit-scrollbar-track,
#mail-view-body::-webkit-scrollbar-track {
    background: transparent;
}
#webmail-messages-container::-webkit-scrollbar-thumb,
#mail-view-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
#webmail-messages-container::-webkit-scrollbar-thumb:hover,
#mail-view-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* ==========================================
   ZOHO WEBMAIL DEEP REPLICA STYLING
   ========================================== */

:root {
    --zoho-bg-dark-app: #121824;
    --zoho-bg-dark-sidebar: #192131;
    --zoho-bg-light-pane: #ffffff;
    --zoho-text-light: #f8fafc;
    --zoho-text-muted: #94a3b8;
    --zoho-text-dark: #1e293b;
    --zoho-text-dark-muted: #64748b;
    --zoho-border-light: #e2e8f0;
    --zoho-border-dark: rgba(255, 255, 255, 0.08);
    --zoho-accent-blue: #0ea5e9;
    --zoho-accent-hover: #0284c7;
    --zoho-active-tab: #ffffff;
}

/* Outer layout frame */
.zoho-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 650px;
    background: var(--zoho-bg-dark-app);
    border: 1px solid var(--zoho-border-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Main workspace area */
.zoho-workspace {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

/* Column 1: Leftmost App Switcher */
.zoho-appbar {
    width: 60px;
    background: var(--zoho-bg-dark-app);
    border-right: 1px solid var(--zoho-border-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    justify-content: space-between;
    flex-shrink: 0;
}
.zoho-appbar-top, .zoho-appbar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
}
.zoho-appbar-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: var(--zoho-text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}
.zoho-appbar-item i {
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.zoho-appbar-item:hover, .zoho-appbar-item.active {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.02);
}
.zoho-appbar-item.active {
    border-left-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

/* Column 2: Folder Sidebar */
.zoho-sidebar {
    width: 180px;
    background: var(--zoho-bg-dark-sidebar);
    border-right: 1px solid var(--zoho-border-dark);
    display: flex;
    flex-direction: column;
    padding: 16px 8px;
    flex-shrink: 0;
    overflow-y: auto;
}
.zoho-newmail-btn-container {
    margin-bottom: 16px;
    display: flex;
    gap: 1px;
}
.zoho-newmail-btn {
    flex-grow: 1;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px 0 0 6px;
    height: 36px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.zoho-newmail-btn:hover {
    background: #0369a1;
}
.zoho-newmail-dropdown {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    width: 24px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.zoho-newmail-dropdown:hover {
    background: #0369a1;
}

.zoho-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--zoho-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 14px 4px 6px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.zoho-section-title i {
    cursor: pointer;
}
.zoho-section-title i:hover {
    color: #fff;
}
.zoho-folder-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.zoho-folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.78rem;
    color: var(--zoho-text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.zoho-folder-item:hover, .zoho-folder-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.zoho-folder-item.active {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}
.zoho-folder-icon {
    margin-right: 8px;
    width: 14px;
    text-align: center;
}
.zoho-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
}
.zoho-badge.blue {
    background: #0ea5e9;
    color: #000;
}

/* Tags List */
.zoho-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.76rem;
    color: var(--zoho-text-muted);
    cursor: pointer;
    border-radius: 6px;
}
.zoho-tag-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.zoho-tag-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Main inner display zone (Tabs + Mail Content Grid) */
.zoho-main-zone {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #e2e8f0; /* Outer separation border line color */
}

/* Horizontal Tabs Bar */
.zoho-tabbar {
    height: 38px;
    background: var(--zoho-bg-dark-app);
    display: flex;
    align-items: flex-end;
    padding-left: 10px;
    border-bottom: 1px solid var(--zoho-border-dark);
    flex-shrink: 0;
    overflow-x: auto;
}
.zoho-tab {
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--zoho-border-dark);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--zoho-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
    position: relative;
    white-space: nowrap;
}
.zoho-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.zoho-tab.active {
    color: var(--zoho-text-dark);
    background: var(--zoho-bg-light-pane);
    border-color: var(--zoho-border-light);
    font-weight: 700;
}
.zoho-tab-close {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    cursor: pointer;
}
.zoho-tab-close:hover {
    opacity: 1;
    color: #ef4444;
}

/* Dynamic Tab Content Switcher */
.zoho-tab-content {
    flex-grow: 1;
    display: none;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.zoho-tab-content.active {
    display: flex;
}

/* Split Pane Columns layout (Mail List + Viewer) */
.zoho-split-pane {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Middle Column: Mail List Pane */
.zoho-list-pane {
    width: 320px;
    background: var(--zoho-bg-light-pane);
    border-right: 1px solid var(--zoho-border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* List toolbar */
.zoho-list-toolbar {
    height: 44px;
    border-bottom: 1px solid var(--zoho-border-light);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    justify-content: space-between;
    background: #f8fafc;
}
.zoho-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.zoho-list-action-btn {
    background: transparent;
    border: none;
    color: var(--zoho-text-dark-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.zoho-list-action-btn:hover {
    background: #e2e8f0;
    color: var(--zoho-text-dark);
}

/* Grouping Header in Mail List */
.zoho-list-group-header {
    background: #f1f5f9;
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--zoho-text-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--zoho-border-light);
}

/* Mail List Scroll Zone */
.zoho-list-container {
    flex-grow: 1;
    overflow-y: auto;
}
.zoho-mail-item {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid var(--zoho-border-light);
    cursor: pointer;
    background: var(--zoho-bg-light-pane);
    transition: background 0.15s;
    position: relative;
    gap: 10px;
}
.zoho-mail-item:hover {
    background: #f8fafc;
}
.zoho-mail-item.selected {
    background: #eff6ff;
}
.zoho-mail-item.active {
    background: #e0f2fe;
    border-left: 3px solid #0284c7;
}
.zoho-mail-item.unread {
    font-weight: 700;
}
.zoho-mail-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}
.zoho-mail-checkbox {
    cursor: pointer;
}
.zoho-mail-item-body {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.zoho-mail-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.zoho-mail-sender {
    font-size: 0.8rem;
    color: var(--zoho-text-dark);
    font-weight: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zoho-mail-time {
    font-size: 0.68rem;
    color: var(--zoho-text-dark-muted);
    white-space: nowrap;
}
.zoho-mail-subject {
    font-size: 0.78rem;
    color: var(--zoho-text-dark);
    font-weight: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zoho-mail-snippet {
    font-size: 0.72rem;
    color: var(--zoho-text-dark-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: normal;
}
.zoho-mail-status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 0.7rem;
    color: var(--zoho-text-dark-muted);
}
.zoho-mail-status-icons .unread-dot {
    width: 6px;
    height: 6px;
    background: #0ea5e9;
    border-radius: 50%;
}

/* Right Column: Mail Viewer Pane */
.zoho-viewer-pane {
    flex-grow: 1;
    background: var(--zoho-bg-light-pane);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.zoho-viewer-toolbar {
    height: 44px;
    border-bottom: 1px solid var(--zoho-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #f8fafc;
    flex-shrink: 0;
}
.zoho-viewer-tools-left, .zoho-viewer-tools-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.zoho-viewer-tool-btn {
    background: transparent;
    border: none;
    color: var(--zoho-text-dark-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.zoho-viewer-tool-btn:hover {
    background: #e2e8f0;
    color: var(--zoho-text-dark);
}

.zoho-viewer-body-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zoho-viewer-subject {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--zoho-text-dark);
    margin: 0 0 10px 0;
}

.zoho-sender-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}
.zoho-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    text-transform: uppercase;
}
.zoho-sender-info {
    flex-grow: 1;
    min-width: 0;
}
.zoho-sender-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.zoho-sender-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.zoho-sender-email {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--zoho-text-dark);
}
.zoho-recipient-text {
    font-size: 0.72rem;
    color: var(--zoho-text-dark-muted);
}
.zoho-mail-actions-tiny {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--zoho-text-dark-muted);
}
.zoho-mail-actions-tiny i {
    cursor: pointer;
    transition: color 0.15s;
}
.zoho-mail-actions-tiny i:hover {
    color: var(--zoho-text-dark);
}

.zoho-mail-body-content {
    flex-grow: 1;
    min-height: 250px;
}

.zoho-mail-body-iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    background: #fff;
}

/* Quick reply bar */
.zoho-quick-reply-bar {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Inline Reply Composer Panel */
.zoho-inline-composer {
    border: 1px solid var(--zoho-border-light);
    border-radius: 8px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}
.zoho-composer-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--zoho-border-light);
    font-size: 0.74rem;
    color: var(--zoho-text-dark-muted);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.zoho-composer-body {
    padding: 12px;
}
.zoho-composer-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--zoho-border-light);
    border-radius: 6px;
    padding: 10px;
    font-size: 0.82rem;
    outline: none;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    color: var(--zoho-text-dark);
}
.zoho-composer-actions {
    padding: 8px 12px;
    border-top: 1px solid var(--zoho-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
}

/* Bottom comment mention box */
.zoho-mention-box {
    margin-top: 20px;
    border: 1px dashed var(--zoho-border-light);
    border-radius: 8px;
    padding: 10px 14px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zoho-mention-input {
    border: none;
    background: transparent;
    font-size: 0.76rem;
    flex-grow: 1;
    outline: none;
    color: var(--zoho-text-dark-muted);
}

/* Column 4: Rightmost Thin Icon Utilities Bar */
.zoho-right-utils {
    width: 44px;
    background: var(--zoho-bg-dark-app);
    border-left: 1px solid var(--zoho-border-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    gap: 16px;
    flex-shrink: 0;
}
.zoho-right-util-btn {
    color: var(--zoho-text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.2s;
}
.zoho-right-util-btn:hover, .zoho-right-util-btn.active {
    color: #38bdf8;
}

/* Right utility drawers overlay panel */
.zoho-utility-drawer {
    width: 280px;
    background: var(--zoho-bg-dark-sidebar);
    border-left: 1px solid var(--zoho-border-dark);
    display: none;
    flex-direction: column;
    padding: 16px;
    color: #fff;
    flex-shrink: 0;
    animation: slideInLeft 0.2s ease-out;
}
.zoho-utility-drawer.active {
    display: flex;
}
.zoho-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--zoho-border-dark);
    padding-bottom: 8px;
}
.zoho-drawer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
}
.zoho-drawer-close {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
}
.zoho-drawer-close:hover {
    opacity: 1;
}

@keyframes slideInLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bottom Chat Console Bar */
.zoho-chatbar {
    height: 36px;
    background: #0b0f19;
    border-top: 1px solid var(--zoho-border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.74rem;
    color: var(--zoho-text-muted);
    flex-shrink: 0;
}
.zoho-chat-input-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zoho-chat-input-trigger:hover {
    color: #ffffff;
}

/* Bottom Chat drawer panel */
.zoho-chat-drawer {
    position: absolute;
    bottom: 36px;
    left: 60px;
    width: 320px;
    height: 400px;
    background: var(--zoho-bg-dark-sidebar);
    border: 1px solid var(--zoho-border-dark);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}
.zoho-chat-drawer.active {
    display: flex;
}
.zoho-chat-header {
    background: var(--zoho-bg-dark-app);
    padding: 10px 14px;
    border-bottom: 1px solid var(--zoho-border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}
.zoho-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zoho-chat-msg-item {
    font-size: 0.74rem;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 85%;
    color: #fff;
}
.zoho-chat-msg-item.incoming {
    background: rgba(255,255,255,0.05);
    align-self: flex-start;
}
.zoho-chat-msg-item.outgoing {
    background: #0284c7;
    align-self: flex-end;
}
.zoho-chat-input-wrapper {
    padding: 10px;
    border-top: 1px solid var(--zoho-border-dark);
    background: var(--zoho-bg-dark-app);
    display: flex;
    gap: 8px;
}
.zoho-chat-input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--zoho-border-dark);
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.74rem;
    outline: none;
}
.zoho-chat-send {
    background: #0ea5e9;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: bold;
}

/* Compose Email Tab view styling */
.zoho-compose-tab-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--zoho-bg-light-pane);
    padding: 24px;
    overflow-y: auto;
    color: var(--zoho-text-dark);
}
.zoho-compose-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}
.zoho-compose-row {
    display: flex;
    border-bottom: 1px solid var(--zoho-border-light);
    padding: 4px 0;
    align-items: center;
}
.zoho-compose-label {
    width: 80px;
    font-size: 0.76rem;
    color: var(--zoho-text-dark-muted);
    font-weight: 700;
}
.zoho-compose-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 0.82rem;
    background: transparent;
    color: var(--zoho-text-dark);
    padding: 4px 0;
}
.zoho-compose-body-textarea {
    width: 100%;
    min-height: 250px;
    border: 1px solid var(--zoho-border-light);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.88rem;
    outline: none;
    margin-top: 15px;
    font-family: inherit;
    resize: vertical;
    color: var(--zoho-text-dark);
}

/* Utility details modal styling overrides */
.zoho-toast-embedded {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .zoho-container {
        height: auto;
        min-height: auto;
    }
    .zoho-workspace {
        flex-direction: column;
        height: 600px;
    }
    .zoho-appbar {
        width: 100%;
        height: 50px;
        flex-direction: row;
        padding: 0 15px;
        border-right: none;
        border-bottom: 1px solid var(--zoho-border-dark);
    }
    .zoho-appbar-top, .zoho-appbar-bottom {
        flex-direction: row;
        width: auto;
        gap: 16px;
    }
    .zoho-appbar-item {
        padding: 0;
        width: auto;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .zoho-appbar-item.active {
        border-bottom-color: #38bdf8;
    }
    .zoho-sidebar {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 1px solid var(--zoho-border-dark);
    }
    .zoho-split-pane {
        flex-direction: column;
    }
    .zoho-list-pane {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--zoho-border-light);
    }
    .zoho-viewer-pane {
        width: 100%;
        height: 250px;
    }
    .zoho-right-utils {
        width: 100%;
        height: 40px;
        flex-direction: row;
        padding: 0 15px;
        border-left: none;
        border-top: 1px solid var(--zoho-border-dark);
        justify-content: center;
        gap: 24px;
    }
    .zoho-utility-drawer {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 40px;
        z-index: 90;
        height: 100%;
    }
    .zoho-chat-drawer {
        left: 0;
        width: 100%;
    }
}

/* Custom "Career অসম" Header Branding & Preloader Fonts */
.assam-logo-text {
    font-family: 'Galada', cursive !important;
    font-size: 1.35em !important;
    font-weight: normal !important;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 10px rgba(236, 72, 153, 0.35)) !important;
    margin-left: 6px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    top: -0.05em !important;
}

.career-title-text {
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-teal)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.15)) !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

