* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #111827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 24px;
    border-bottom: 1px solid #273244;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.sidebar-brand h2 {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-brand span {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11px;
}

/* =========================
   NAVIGATION
========================= */

.sidebar-nav {
    flex: 1;
    padding-top: 24px;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-title {
    display: block;
    padding: 0 12px 8px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.nav-item:hover {
    background: #1f2937;
    color: #ffffff;
}

.nav-item.active {
    background: #2563eb;
    color: #ffffff;
}

.nav-item span:first-child {
    width: 22px;
    text-align: center;
}

/* =========================
   USER AREA
========================= */

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 4px;
    border-top: 1px solid #273244;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info strong {
    display: block;
    font-size: 13px;
}

.user-info span {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 11px;
}

.logout-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
}

.logout-btn:hover {
    color: #ffffff;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
    flex: 1;
    padding: 35px;
}

.main-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.main-content p {
    color: #6b7280;
}

/* =========================
   TOP HEADER
========================= */

.top-header {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 900;
    border-bottom: none;
}


.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 14px;
}

.header-left h1 {
    font-size: 26px;
    margin-bottom: 4px;
}

.header-left p {
    color: #6b7280;
    font-size: 13px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
}

.sidebar-toggle:hover {
    background: #f3f4f6;
}

.header-right {
    gap: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
}

.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-size: 17px;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 8px;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #1129e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.profile-info strong {
    display: block;
    font-size: 13px;
    color: #0e5ee8;
    font-weight: 700;
}

.profile-info span {
    display: block;
    margin-top: 2px;
    color: #2567ec;
    font-size: 11px;

}

.profile-info {
    display: flex;
    flex-direction: column;
    color: #0e5ee8;
    line-height: 1.2;

}

.dashboard-content {
    padding-top: 12px;
}

/* =========================
   OVERVIEW CARDS
========================= */

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.card-info span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.card-info strong {
    display: block;
    font-size: 24px;
    color: #111827;
}

/* =========================
   DASHBOARD SECTION
========================= */

.dashboard-section {
    margin-top: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    font-size: 17px;
    margin-bottom: 5px;
}

.section-header p {
    font-size: 12px;
    color: #6b7280;
}

.view-all-btn {
    padding: 8px 13px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    color: #2563eb;
    background: #eff6ff;
    text-decoration: none;
    font-size: 12px;
}

.view-all-btn:hover {
    background: #dbeafe;
}


/* =========================
   DASHBOARD TABLE
========================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px 22px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-table th {
    background: #f8fafc;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    color: #374151;
    font-size: 13px;
}

.dashboard-table tbody tr:hover {
    background: #f8fafc;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================
   STATUS BADGES
========================= */

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.active-status {
    background: #dcfce7;
    color: #166534;
}

/* =========================
   SEND EMAIL BUTTON
========================= */

.send-email-btn {
    padding: 7px 12px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.send-email-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* =========================
   QUICK ACTIONS
========================= */

.quick-actions-section {
    margin-top: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.quick-action:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.quick-action strong {
    display: block;
    color: #111827;
    font-size: 13px;
    margin-bottom: 4px;
}

.quick-action div span {
    display: block;
    color: #6b7280;
    font-size: 11px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1100px) {

    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        width: 180px;
    }
}


@media (max-width: 768px) {

    .sidebar {
        width: 220px;
    }

    .main-content {
        padding: 25px 20px;
    }

    .top-header {
        align-items: flex-start;
    }

    .header-right {
        gap: 8px;
    }

    .search-box {
        display: none;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px 15px;
    }

    .top-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-right {
        justify-content: flex-end;
    }

    .header-left h1 {
        font-size: 22px;
    }

    .section-header {
        padding: 16px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px 15px;
    }
}

.sidebar.sidebar-hidden {
    display: none !important;
}

/* =========================
   TABLE CHECKBOX
========================= */

.checkbox-column {
    width: 45px;
    text-align: center !important;
}

.row-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb;
}


/* =========================
   ACTION ICONS
========================= */

.action-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;

    cursor: pointer;
    font-size: 14px;

    transition: all 0.2s ease;
}

.action-icon-btn:hover {
    transform: translateY(-1px);
    background: #f8fafc;
}


/* Individual hover states */

.mail-action:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.paid-action:hover {
    border-color: #86efac;
    background: #f0fdf4;
}

.extend-action:hover {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.cancel-action:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}

/* =========================================================
   EMAIL HISTORY PAGE
   ========================================================= */


/* Main table wrapper */

.email-history-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
}


/* Main table */

.email-history-table {
    width: 100%;
    min-width: 1050px;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;

    background: #ffffff;
}


/* Table header */

.email-history-table thead th {
    padding: 16px 22px;

    text-align: left;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    border-bottom: 1px solid #e5e7eb;

    background: #ffffff;
}


/* Table body cells */

.email-history-table tbody td {
    padding: 18px 22px;

    text-align: left;
    vertical-align: middle;

    font-size: 14px;

    border-bottom: 1px solid #eeeeee;

    white-space: nowrap;

    color: #333333;
}


/* Row */

.email-history-table tbody tr {
    background: #ffffff;
}


/* Row hover */

.email-history-table tbody tr:hover {
    background: #f8fafc;
}


/* =========================================================
   COLUMN WIDTHS
   ========================================================= */


/* Customer */

.email-history-table .customer-column {
    width: 19%;
}


/* Service */

.email-history-table .service-column {
    width: 16%;
}


/* Email */

.email-history-table .email-column {
    width: 23%;
}


/* Subject */

.email-history-table .subject-column {
    width: 24%;
}


/* Sent At */

.email-history-table .sent-column {
    width: 18%;

    white-space: nowrap;
}


/* =========================================================
   TEXT SPACING
   ========================================================= */

.email-history-table td.customer-column {
    padding-right: 28px;
}


.email-history-table td.service-column {
    padding-left: 24px;
    padding-right: 28px;
}


.email-history-table td.email-column {
    padding-left: 24px;
    padding-right: 28px;
}


.email-history-table td.subject-column {
    padding-left: 24px;
    padding-right: 28px;
}


.email-history-table td.sent-column {
    padding-left: 24px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.email-history-empty {
    text-align: center !important;

    padding: 35px 20px !important;

    color: #777777;

    font-size: 14px;
}


/* =========================================================
   EMAIL HISTORY CONTAINER
   ========================================================= */

.email-history-wrapper::-webkit-scrollbar {
    height: 8px;
}


.email-history-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}


.email-history-wrapper::-webkit-scrollbar-thumb {
    background: #c8c8c8;

    border-radius: 10px;
}


.email-history-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .email-history-table {
        min-width: 950px;
    }


    .email-history-table thead th {
        padding: 14px 16px;
    }


    .email-history-table tbody td {
        padding: 16px;
    }

}

/* =========================================================
   REPORTS PAGE
   ========================================================= */

.report-section-header {
    margin-top: 30px;
}


/* Reports overview cards */

.dashboard-section .overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-section .overview-card {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard-section .overview-card span {
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
}

.dashboard-section .overview-card strong {
    display: block;
    font-size: 22px;
}


/* Reminder report */

.report-summary-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.report-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    min-height: 85px;
    box-sizing: border-box;
}

.report-stat span {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.report-stat strong {
    display: block;
    font-size: 24px;
}


/* Responsive */

@media (max-width: 1100px) {

    .dashboard-section .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-summary-box {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .dashboard-section .overview-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-box {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   ACTIVITY LOGS PAGE
   ========================================================= */

.activity-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 0;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.activity-table th,
.activity-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.activity-table th {
    font-size: 13px;
    font-weight: 600;
}

.activity-table td {
    font-size: 14px;
}

.activity-table th:nth-child(1),
.activity-table td:nth-child(1) {
    width: 22%;
}

.activity-table th:nth-child(2),
.activity-table td:nth-child(2) {
    width: 53%;
}

.activity-table th:nth-child(3),
.activity-table td:nth-child(3) {
    width: 25%;
}

.activity-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   SETTINGS PAGE
   ========================================================= */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
}

.settings-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 21px;
    flex-shrink: 0;
}

.settings-card h3 {
    margin: 0 0 7px 0;
    font-size: 16px;
    font-weight: 600;
}

.settings-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

@media (max-width: 800px) {

    .settings-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   EMAIL SETTINGS PAGE
   ========================================================= */

.settings-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.settings-form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
    color: #374151;
}

.settings-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.settings-info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-top: 5px;
}

.settings-info-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.settings-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.settings-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.secondary-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}

.secondary-btn:hover {
    background: #e5e7eb;
}

@media (max-width: 700px) {

    .settings-form-row {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   CUSTOMERS / SERVICES TABLE SPACING
   ========================================================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.table-container .service-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.table-container .service-table th,
.table-container .service-table td {
    padding: 14px 16px;
    white-space: nowrap;
    vertical-align: middle;
}

.table-container .service-table th {
    font-size: 13px;
    font-weight: 600;
}

.table-container .service-table td {
    font-size: 14px;
}

/* Checkbox */
.table-container .service-table .checkbox-column {
    width: 45px;
    padding-left: 12px;
    padding-right: 8px;
}

/* Customer name */
.table-container .service-table th:nth-child(2),
.table-container .service-table td:nth-child(2) {
    min-width: 150px;
}

/* Company */
.table-container .service-table th:nth-child(3),
.table-container .service-table td:nth-child(3) {
    min-width: 150px;
}

/* Email */
.table-container .service-table th:nth-child(4),
.table-container .service-table td:nth-child(4) {
    min-width: 220px;
}

/* Phone */
.table-container .service-table th:nth-child(5),
.table-container .service-table td:nth-child(5) {
    min-width: 130px;
}

/* City */
.table-container .service-table th:nth-child(6),
.table-container .service-table td:nth-child(6) {
    min-width: 130px;
}

/* Country */
.table-container .service-table th:nth-child(7),
.table-container .service-table td:nth-child(7) {
    min-width: 100px;
}

/* Actions */
.table-container .service-table th:last-child,
.table-container .service-table td:last-child {
    min-width: 110px;
    text-align: center;
}

.table-container .action-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.table-container .action-icon-btn {
    flex-shrink: 0;
}

/* =========================================================
   SERVICE ACTION BUTTONS
   ========================================================= */

.action-icons form {
    margin: 0;
    padding: 0;
}

.action-icons button.action-icon-btn {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    margin: 0;
}

.action-icons .action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
}

.reminder-table-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    background: #1f2937;
}

.clear-all-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.clear-all-btn:hover {
    background: #b91c1c;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

/* =====================================================
   FINAL LOGIN PAGE OVERRIDES
===================================================== */

.login-page {
    min-height: 100vh !important;
    width: 100% !important;
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.35), transparent 25%),
        radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.30), transparent 28%),
        linear-gradient(135deg, #07132f, #0d2458, #102e70) !important;

    padding: 40px !important;
    box-sizing: border-box !important;
}


/* Background circles */

.login-bg-circle {
    position: absolute !important;
    border: 1px solid rgba(96, 165, 250, 0.22) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.login-bg-circle-left {
    width: 520px !important;
    height: 520px !important;
    left: -330px !important;
    top: -300px !important;

    box-shadow:
        0 0 0 35px rgba(96, 165, 250, 0.035),
        0 0 0 70px rgba(96, 165, 250, 0.025),
        0 0 0 105px rgba(96, 165, 250, 0.015) !important;
}

.login-bg-circle-right {
    width: 600px !important;
    height: 600px !important;
    right: -380px !important;
    bottom: -380px !important;

    box-shadow:
        0 0 0 35px rgba(96, 165, 250, 0.035),
        0 0 0 70px rgba(96, 165, 250, 0.025),
        0 0 0 105px rgba(96, 165, 250, 0.015) !important;
}


/* Login card */

.login-card {
    position: relative !important;
    z-index: 10 !important;

    width: 100% !important;
    max-width: 640px !important;

    background: #ffffff !important;
    color: #17233d !important;

    border-radius: 20px !important;

    padding: 48px 52px 40px !important;

    box-sizing: border-box !important;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35),
        0 8px 25px rgba(0, 0, 0, 0.18) !important;

    text-align: center !important;
}


/* =====================================================
   LOGO
===================================================== */

.login-logo {
    width: 125px !important;
    height: 125px !important;

    margin: 0 auto 26px !important;

    border-radius: 50% !important;

    background: #07132f !important;

    border: 5px solid #c6ff00 !important;

    box-shadow:
        0 0 0 4px rgba(198, 255, 0, 0.12),
        0 0 28px rgba(198, 255, 0, 0.40) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}


/*
   Don't use cover here.
   Cover was cutting the BWT logo.
*/

.login-logo img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;

    padding: 8px !important;

    box-sizing: border-box !important;

    border-radius: 50% !important;

    display: block !important;
}


/* =====================================================
   TITLE
===================================================== */

.login-card h1 {
    margin: 0 !important;

    color: #111c35 !important;

    font-size: 38px !important;
    line-height: 1.15 !important;

    font-weight: 750 !important;

    letter-spacing: -0.8px !important;
}

.login-subtitle {
    margin: 8px 0 34px !important;

    color: #718096 !important;

    font-size: 18px !important;
}


/* =====================================================
   LABELS
===================================================== */

.login-field {
    margin-bottom: 22px !important;

    text-align: left !important;
}

.login-field label {
    display: block !important;

    margin-bottom: 8px !important;

    color: #26344f !important;

    font-size: 15px !important;

    font-weight: 650 !important;
}


/* =====================================================
   INPUTS
===================================================== */

.login-input-wrapper {
    position: relative !important;
    width: 100% !important;
}

.login-field input {
    width: 100% !important;
    height: 62px !important;

    padding: 0 55px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    color: #17233d !important;

    border: 1.5px solid #cbd5e1 !important;

    border-radius: 10px !important;

    font-size: 16px !important;

    outline: none !important;
}

.login-field input::placeholder {
    color: #8793a8 !important;
    opacity: 1 !important;
}

.login-field input:focus {
    border-color: #2563eb !important;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10) !important;
}


/* Input icons */

.login-input-icon {
    position: absolute !important;

    left: 18px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    color: #8793a8 !important;

    font-size: 20px !important;

    z-index: 3 !important;

    pointer-events: none !important;
}


/* Password toggle */

.password-toggle {
    position: absolute !important;

    right: 15px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    border: none !important;

    background: transparent !important;

    color: #718096 !important;

    font-size: 18px !important;

    cursor: pointer !important;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-btn {
    width: 100% !important;
    height: 62px !important;

    margin-top: 4px !important;

    border: none !important;

    border-radius: 10px !important;

    background: #2563eb !important;

    color: #ffffff !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 16px !important;

    font-size: 18px !important;

    font-weight: 700 !important;

    cursor: pointer !important;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25) !important;

    transition: 0.2s ease !important;
}

.login-btn:hover {
    background: #1d4ed8 !important;

    transform: translateY(-1px) !important;
}

.login-arrow {
    font-size: 27px !important;
}


/* =====================================================
   FOOTER
===================================================== */

.login-footer {
    margin-top: 28px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    color: #718096 !important;

    font-size: 13px !important;
}

.login-footer-icon {
    color: #ff8a1f !important;

    font-size: 20px !important;
}


/* Error */

.login-error {
    margin-bottom: 20px !important;

    padding: 11px 13px !important;

    background: #fee2e2 !important;

    color: #b91c1c !important;

    border-radius: 8px !important;

    text-align: left !important;
}


/* Mobile */

@media (max-width: 700px) {

    .login-page {
        padding: 20px !important;
    }

    .login-card {
        padding: 35px 25px 30px !important;
    }

    .login-logo {
        width: 105px !important;
        height: 105px !important;
    }

    .login-card h1 {
        font-size: 30px !important;
    }

    .login-field input {
        height: 56px !important;
    }

    .login-btn {
        height: 56px !important;
    }
}

/* =========================================
   HEADER ADMIN PROFILE
========================================= */

.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 10px;

    border-radius: 10px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.header-profile:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #2563eb;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 700;

    flex-shrink: 0;

    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.profile-arrow {
    margin-left: 2px;

    color: #e14a0e;

    font-size: 12px;
}

/* =====================================================
   FIXED SIDEBAR + FIXED HEADER
   ONLY CONTENT SCROLLS
===================================================== */

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.app-layout {
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
}

/* =========================
   FIXED SIDEBAR
========================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    width: 240px;
    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 1000;
}


/* =========================
   MAIN AREA
========================= */

.main-content {
    margin-left: 240px;

    width: calc(100% - 240px);
    height: 100vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* =========================
   DASHBOARD SCROLL AREA
========================= */

.dashboard-content {
    margin-top: 82px;

    height: calc(100vh - 82px);

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    padding-bottom: 30px;
}


/* =========================
   NICE SCROLLBAR
========================= */

.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}


/* Sidebar scrollbar */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 10px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-header {
        left: 0;
    }

    .dashboard-content {
        margin-top: 82px;
    }
}

/* =====================================================
   ADMIN PROFILE DROPDOWN
===================================================== */

.header-profile-wrapper {
    position: relative;
}

.header-profile {
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 8px;
    border-radius: 10px;

    transition: background 0.2s ease;
}

.header-profile:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-arrow {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 2px;
}

.profile-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 230px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.18);

    padding: 8px;

    z-index: 2000;

    display: none;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
}

.profile-dropdown-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #2563eb;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 700;
}

.profile-dropdown-header div:last-child {
    display: flex;
    flex-direction: column;
}

.profile-dropdown-header strong {
    color: #111827;
    font-size: 14px;
}

.profile-dropdown-header span {
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 5px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    padding: 10px;

    box-sizing: border-box;

    text-decoration: none;

    border-radius: 8px;

    color: #374151;

    font-size: 13px;

    transition: background 0.2s ease;
}

.profile-dropdown-item:hover {
    background: #f3f4f6;
}

.profile-dropdown-item.logout-item {
    color: #dc2626;
}

.profile-dropdown-item.logout-item:hover {
    background: #fee2e2;
}

/* Dashboard top spacing */
.dashboard-content {
    padding-top: 20px !important;
}

.quick-actions-section {
    margin-top: 0 !important;
}

.profile-dropdown-form {
    margin: 0;
    padding: 0;
}

.profile-dropdown-form .profile-dropdown-item {
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

/* Space between Quick Actions and Dashboard Cards */
.quick-actions-section {
    margin-bottom: 16px !important;
}

/* Individual Dashboard Table Search */

/* Center dashboard table search */

.table-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 255px;
    height: 36px;
    padding: 0 12px;

    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;

    box-sizing: border-box;
}

.table-search-bar span {
    font-size: 14px;
    color: #64748b;
    flex-shrink: 0;
}

.table-search-bar input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #334155;
    font-size: 12px;
}

.table-search-bar input::placeholder {
    color: #94a3b8;
}

.table-search-bar:focus-within {
    border-color: #000000;
    box-shadow: none;
}

.dashboard-section {
    position: relative;
}

/* Dashboard table search alignment */

.table-search-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;

    display: flex;
    align-items: center;
    gap: 8px;

    z-index: 5;
}

.table-search-bar input {
    width: 280px;
}

/* =========================================
   SIDEBAR TOGGLE — ICONS ONLY
========================================= */

.app-layout.sidebar-collapsed .sidebar {
    width: 70px !important;
    min-width: 70px !important;
    overflow-x: hidden;
}

.app-layout.sidebar-collapsed .main-content {
    margin-left: 70px !important;
    width: calc(100% - 70px) !important;
}

/* Hide text labels, keep icons */
.app-layout.sidebar-collapsed .sidebar-brand h2,
.app-layout.sidebar-collapsed .sidebar .nav-title,
.app-layout.sidebar-collapsed .sidebar .nav-item span:not(:first-child),
.app-layout.sidebar-collapsed .sidebar .user-info,
.app-layout.sidebar-collapsed .sidebar .logout-btn {
    display: none !important;
}

/* Center the brand icon */
.app-layout.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app-layout.sidebar-collapsed .brand-icon {
    margin: 0 auto;
}

/* Center all navigation icons */
.app-layout.sidebar-collapsed .sidebar .nav-item {
    display: flex;
    align-items: center;
    justify-content: center !important;
    width: 100%;
    min-width: 0;
    padding: 12px 0 !important;
    gap: 0;
    white-space: nowrap;
}

/* Reminder submenu */
.app-layout.sidebar-collapsed #reminderSubmenu {
    padding-left: 0 !important;
    margin-top: 8px;
    align-items: center;
}

.app-layout.sidebar-collapsed #reminderSubmenu .nav-item {
    justify-content: center;
    overflow: hidden;
}

.app-layout.sidebar-collapsed #reminderSubmenu .submenu-text {
    display: none !important;
}

.app-layout.sidebar-collapsed #reminderSubmenu .submenu-icon {
    display: inline-block !important;
}

/* Center user avatar */
.app-layout.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app-layout.sidebar-collapsed .user-avatar {
    margin: 0 auto;
}