/* =========================================================
 * 1. GLOBAL TOP STICKY BAR
 * ========================================================= */
.ccf-member-logout-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
    padding: 8px 20px;
    background: #1e293b;
    color: #ffffff;
    font-size: 13px;
}

.ccf-member-logout-bar .nav-dashboard {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.ccf-member-logout-bar .nav-logout {
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
}


/* =========================================================
 * CCF EDITOR TOP BANNER & ACTION CONTROLS (MATCHES EXAMPLE)
 * ========================================================= */
.cmd-editor-top-bar {
    max-width: 1200px;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    box-sizing: border-box;
}

.cmd-editor-status-text {
    color: #166534;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.cmd-editor-status-text strong {
    color: #14532d;
    font-weight: 700;
}

.cmd-editor-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmd-btn-add-meeting {
    background-color: #339787;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.cmd-btn-add-meeting:hover {
    background-color: #27776a;
}

.cmd-btn-add-event {
    background-color: #273a4d;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.cmd-btn-add-event:hover {
    background-color: #1a2734;
}

@media (max-width: 768px) {
    .cmd-editor-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .cmd-editor-btn-group {
        width: 100%;
        flex-direction: column;
    }

    .cmd-btn-add-meeting,
    .cmd-btn-add-event {
        width: 100%;
    }
}

/* =========================================================
 * 3. DASHBOARD MAIN WRAPPER & SIDEBAR NAVIGATION
 * ========================================================= */
.member-dashboard-wrapper {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    font-family: inherit;
}

.member-sidebar {
    width: 230px;
    flex-shrink: 0;
}

.member-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.member-sidebar ul li {
    margin-bottom: 12px;
}

.member-sidebar ul li a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #273a4d;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.member-sidebar ul li a:hover,
.member-sidebar ul li a.active-menu {
    color: #339787;
}

.member-sidebar ul li a.active-menu:after {
    content: '';
    border-bottom: 2px solid #339787;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
}

.new-badge {
    background: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.logout-wrapper {
    margin-top: 25px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.logout-btn {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none;
}

/* Sidebar Submenu Accordion */
.member-sidebar .has-submenu {
    position: relative;
}

.sidebar-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 6px 0 6px 14px !important;
    margin: 4px 0 8px 0 !important;
    border-left: 2px solid #e2e8f0;
}

.sidebar-submenu li {
    margin-bottom: 6px !important;
}

.sidebar-submenu li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 3px 0 !important;
}

.sidebar-submenu li a:hover,
.sidebar-submenu li a.active-menu {
    color: #339787 !important;
    font-weight: 600 !important;
}


/* =========================================================
 * 4. CONTENT AREA & DATA TABLES
 * ========================================================= */
.member-content {
    flex: 1;
    min-width: 0;
}

.table-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-top-bar select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    min-width: 250px;
    background-color: #ffffff;
    color: #1e293b;
}

table.mom-table,
table.notice-table,
table.project-table {
    width: 100%;
    border-collapse: collapse;
}

table.mom-table th,
table.notice-table th,
table.project-table th {
    background: #339787;
    color: #ffffff;
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

table.mom-table td,
table.notice-table td,
table.project-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.dataTables_wrapper .paginate_button.current {
    background: #339787 !important;
    border: 1px solid #339787 !important;
    color: #ffffff !important;
    border-radius: 50%;
}


/* =========================================================
 * 5. SINGLE-LINE ROW ACTIONS (VIEW, EDIT, TRASH)
 * ========================================================= */
.cmd-actions-col {
    white-space: nowrap;
}

.cmd-action-buttons-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    white-space: nowrap !important;
}

.cmd-action-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: opacity 0.2s ease !important;
}

.cmd-action-link:hover {
    opacity: 0.8 !important;
}

.cmd-action-icon {
    width: 15px !important;
    height: 15px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.cmd-view-link,
.cmd-view-link span,
.cmd-edit-link,
.cmd-edit-link span {
    color: #339787 !important;
}

.cmd-trash-link,
.cmd-trash-link span {
    color: #e74c3c !important;
}


/* =========================================================
 * 6. MODAL UTILITY CONTROLS
 * ========================================================= */
.cmd-btn-meet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #00796b;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    margin: 12px 0;
}

.cmd-btn-pdf {
    display: inline-block;
    padding: 10px 18px;
    background: #339787;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 15px;
}