
/* Global Number Input Scroll Guard */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
}

:root {
/* Core Brand Colors */
--brand-primary: #020617; /* Navy Blue */
--brand-accent: #3b82f6;  /* Royal Blue */
--brand-success: #10b981; /* Emerald Green */

/* Status Colors (Financial) */
--status-pending: #f59e0b; /* Amber */
--status-danger: #ef4444;  /* Red */
--status-info: #0ea5e9;    /* Light Blue */
--status-purple: #8b5cf6;  /* Violet (Approvals) */

/* Neutrals & Backgrounds */
--bg-page: #f8fafc;
--bg-card: #ffffff;
--bg-subtle: #f1f5f9;
--bg-hover: #e2e8f0;

/* Text Colors */
--text-main: #0f172a;
--text-muted: #64748b;
--text-light: #94a3b8;
--text-inverse: #ffffff;

/* Borders & Shadows */
--border-light: #e2e8f0;
--border-focus: #93c5fd;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
--radius-pill: 9999px;

--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
--shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);

/* Legacy Variables for backward compatibility during transition */
--primary: var(--brand-primary);
--accent: var(--brand-accent);
--gold: linear-gradient(135deg, #d4af37 0%, #f1c40f 50%, #d4af37 100%);
--gold-text: #eab308;
--background: var(--bg-page);
--card-shadow: var(--shadow-xl);
--glass: rgba(255, 255, 255, 0.85);
--glass-border: rgba(255, 255, 255, 0.4);
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
background: var(--bg-page);
color: var(--text-main);
overflow-x: hidden;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* SYSTEM-WIDE BUTTON STANDARDIZATION */
.btn, .btn-primary, .btn-secondary, .btn-dark, .btn-outline, .btn-modern, .btn-action, .btn-submit, .btn-next, .btn-prev, .action-btn, .btn-return, .btn-edit-profile {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Premium Animations */
@keyframes float {
0% {
    transform: translateY(0px);
}

50% {
    transform: translateY(-10px);
}

100% {
    transform: translateY(0px);
}
}

.gold-gradient {
background: var(--gold);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.glass-card {
background: var(--glass);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
box-shadow: var(--card-shadow);
}

.main-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}

.dashboard-layout {
display: flex;
flex: 1;
min-height: 100vh;
align-items: stretch;
}

.sidebar-container {
    overflow-y: auto;
    overflow-x: hidden;
width: 260px;
min-width: 260px;
background: #020617;
/* Full page height: stretch with flex, not fixed 100vh */
position: sticky;
top: 0;
height: 100vh;
align-self: flex-start;
z-index: 1000;
border-right: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.3s ease;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #1e293b #020617;
}

/* Fluid Laptop Reflow (14" and smaller) */
@media (max-width: 1366px) {
.sidebar-container {
    overflow-y: auto;
    overflow-x: hidden;
    width: 220px;
    min-width: 220px;
}

.top-nav {
    padding: 15px 25px !important;
}

.main-content {
    padding: 25px !important;
}

.responsive-grid {
    grid-template-columns: 1fr 320px !important;
    gap: 1.2rem !important;
}

h1 {
    font-size: 1.8rem !important;
}

.card-header h3 {
    font-size: 1.2rem !important;
}
}

.sidebar-container::-webkit-scrollbar {
width: 4px;
}

.sidebar-container::-webkit-scrollbar-track {
background: #020617;
}

.sidebar-container::-webkit-scrollbar-thumb {
background: #1e293b;
border-radius: 10px;
}

.content-area {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
background: #f8fafc;
position: relative;
overflow-x: hidden;
}



.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 45px;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(12px);
border-bottom: 1px solid #e2e8f0;
position: sticky;
top: 0;
z-index: 900;
width: 100%;
}

.main-content {
padding: 40px;
width: 100%;
max-width: 100%;
animation: contentFadeIn 0.5s ease-out;
}

@keyframes contentFadeIn {
from {
    opacity: 0;
    transform: translateY(10px);
}

to {
    opacity: 1;
    transform: none;
}
}

.responsive-grid {
display: grid;
grid-template-columns: 1fr 380px;
gap: 2rem;
align-items: start;
}

.table-container {
width: 100%;
overflow-x: auto;
border-radius: 20px;
background: white;
box-shadow: var(--card-shadow);
}

@media (max-width: 1100px) {
.sidebar-container {
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed !important;
    left: -300px !important;
    top: 0;
    height: 100vh;
    z-index: 2000 !important;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}
body.sidebar-open .sidebar-container {
    overflow-y: auto;
    overflow-x: hidden;
    left: 0 !important;
}
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

.content-area {
    width: 100% !important;
}

.menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f1f5f9 !important;
    border-radius: 12px;
    color: #0f172a !important;
}

.top-nav {
    padding: 12px 20px !important;
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
}

.main-content {
    padding: 20px !important;
}

.responsive-grid {
    grid-template-columns: 1fr !important;
}
}

/* Form Controls Styling */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { 
.form-grid, .form-grid-3 { grid-template-columns: 1fr !important; } 
.mobile-stack { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
}

input[type="text"],
input[type="password"],
select,
textarea {
width: 100%;
padding: 16px;
border-radius: 14px;
border: 2px solid #f1f5f9;
background: #f8fafc;
font-family: inherit;
font-weight: 700;
outline: none;
transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
border-color: #3b82f6;
background: white;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-modern {
padding: 14px 28px;
border-radius: 16px;
font-weight: 800;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
text-decoration: none;
border: none;
}

.btn-primary {
background: #3b82f6;
color: white;
box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.menu-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
color: #0f172a;
cursor: pointer;
padding: 5px;
}

.sidebar-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.4);
backdrop-filter: blur(8px);
z-index: 1500;
opacity: 0;
transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
display: block;
opacity: 1;
}

/* Premium Modal Overlays */
#globalActionPopup {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.4);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
padding: 20px;
}

.popup-card {
background: white;
padding: 3rem;
border-radius: 16px;
width: 100%;
max-width: 450px;
text-align: center;
box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: popupScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popupScale {
0% {
    transform: scale(0.8);
    opacity: 0;
}

100% {
    transform: scale(1);
    opacity: 1;
}
}

.popup-icon {
width: 80px;
height: 80px;
border-radius: 25px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5rem;
margin: 0 auto 2rem;
}

.popup-success {
background: #ecfdf5;
color: #10b981;
}

.popup-error {
background: #fff1f2;
color: #e11d48;
}

.popup-btn {
margin-top: 2.5rem;
width: 100%;
padding: 18px;
border-radius: 20px;
background: #020617;
color: white;
font-weight: 950;
font-size: 1rem;
border: none;
cursor: pointer;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Global Print Optimization Matrix */
@media print {
@page {
    size: auto;
    margin: 0 !important; /* Forces suppression of browser headers/footers */
}

.sidebar-container, 
.top-nav, 
.no-print, 
.sidebar-overlay, 
.btn-modern,
#globalActionPopup,
#globalConfirmPopup,
#globalInputPopup,
.print-hidden {
    display: none !important;
}

.print-only {
    display: block !important;
}

html, body {
    height: auto !important;
    overflow: visible !important;
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

body {
    margin: 1.5cm !important; /* Restore margins to content area */
}

.main-wrapper, .dashboard-layout, .content-area {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
    position: static !important;
    overflow: visible !important;
}

.main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: none !important;
    page-break-after: avoid;
    position: relative !important;
}

/* Precise Table Scaling for Print */
table {
    width: 100% !important;
    table-layout: auto !important;
    font-size: 8pt !important; /* Smaller font for portrait print */
}

th, td {
    padding: 6px 8px !important; /* Minimal padding to fit columns */
    word-wrap: break-word !important;
}

footer {
    position: sticky !important;
    bottom: 0;
    display: block !important;
    position: relative !important;
    margin-top: 30px !important;
    padding: 20px !important;
    border-top: 1px solid #eee !important;
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
    text-align: center !important;
    width: 100% !important;
    page-break-inside: avoid;
}

.watermark {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(-35deg) !important;
    opacity: 0.04 !important;
    width: 600px !important;
    z-index: -1000 !important;
    pointer-events: none !important;
}

.table-container, .glass-card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
}

/* Prevent URL link address showing */
a::after { content: none !important; }
a { text-decoration: none !important; color: inherit !important; }
}
/* PREMIUM KPI MATRIX (V43.17) */
.kpi-matrix {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.2rem;
margin-bottom: 2.5rem;
}

.kpi-card-premium {
background: #ffffff;
padding: 1.5rem;
border-radius: 24px;
border: 1px solid #e2e8f0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 130px;
}

.kpi-card-premium:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
border-color: #3b82f6;
}

.kpi-card-premium::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 6px;
background: #e2e8f0;
transition: background 0.3s;
}

.kpi-card-premium:hover::after {
background: #3b82f6;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 20px 8px 26px;
}

.kpi-label-tactical {
font-size: 0.6rem;
font-weight: 900;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 1.5px;
margin-bottom: 8px;
}

.kpi-value-elite {
font-size: 1.5rem;
font-weight: 950;
color: #020617;
letter-spacing: -0.5px;
line-height: 1.1;
}

.kpi-subtext-dynamic {
font-size: 0.7rem;
font-weight: 700;
margin-top: 10px;
display: flex;
align-items: center;
gap: 6px;
}

/* Color Variants */
.kpi-blue::after { background: #3b82f6 !important; }
.kpi-purple::after { background: #8b5cf6 !important; }
.kpi-orange::after { background: #f59e0b !important; }
.kpi-green::after { background: #10b981 !important; }
.kpi-red::after { background: #ef4444 !important; }
.kpi-dark::after { background: #020617 !important; }

/* PREMIUM DROPDOWN MATRIX */
.dropdown {
position: relative;
display: inline-block;
}

.dropdown-content {
display: none;
position: absolute;
right: 0;
background-color: #ffffff;
min-width: 220px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
border-radius: 18px;
z-index: 1000;
border: 1px solid #e2e8f0;
padding: 10px;
overflow: hidden;
text-align: left;
}

.dropdown:hover .dropdown-content {
display: block;
animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
from { opacity: 0; transform: translateY(12px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 18px;
color: #1e293b;
text-decoration: none;
font-size: 0.8rem;
font-weight: 800;
border-radius: 12px;
transition: 0.2s;
}

.dropdown-item i {
font-size: 1rem;
width: 20px;
text-align: center;
color: #94a3b8;
transition: 0.2s;
}

.dropdown-item:hover {
background: #f1f5f9;
color: #3b82f6;
}

.dropdown-item:hover i {
color: #3b82f6;
transform: scale(1.1);
}

.dropdown-divider {
height: 1px;
background: #f1f5f9;
margin: 8px 10px;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS & OFF-CANVAS SIDEBAR */
/* ========================================= */

@media (max-width: 991px) {
/* Main Content Area adjustments */
.content-area {
width: 100% !important;
min-width: 100vw !important;
margin-left: 0 !important;
}

.top-nav {
padding: 15px 20px !important;
}

.main-content {
padding: 15px !important;
}

/* Grid Adjustments */
.responsive-grid, 
.stats-grid,
.dashboard-grid {
grid-template-columns: 1fr !important;
gap: 15px !important;
}

div[style*="display: grid"], 
div[style*="grid-template-columns"] {
grid-template-columns: 1fr !important;
}

/* Typography & Spacing */
h1 {
font-size: 1.5rem !important;
}
h2 {
font-size: 1.3rem !important;
}
h3 {
font-size: 1.1rem !important;
}

.glass-card {
padding: 1.2rem !important;
}

.btn-action, .btn-modern, button, .action-btn {
padding: 10px 15px !important;
font-size: 0.8rem !important;
}
}

/* ========================================= */
/* UNIVERSAL TABLE RESPONSIVENESS */
/* ========================================= */
.table-responsive {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin-bottom: 1rem;
}

table {
width: 100%;
max-width: 100%;
margin-bottom: 1rem;
background-color: transparent;
}

@media (max-width: 768px) {
table th, table td {
padding: 0.75rem !important;
font-size: 0.75rem !important;
}
}

/* Extracted from 404.php */

.error-container {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
background: radial-gradient(circle at top right, #f8fafc, #eff6ff);
padding: 2rem;
}

.error-code {
font-size: 12rem;
font-weight: 950;
color: #0f172a;
letter-spacing: -10px;
line-height: 1;
margin: 0;
background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: float 6s ease-in-out infinite;
}

.error-title {
font-size: 2.5rem;
font-weight: 900;
color: #0f172a;
letter-spacing: -1.5px;
margin-top: -20px;
}

.error-desc {
color: #64748b;
font-size: 1.1rem;
max-width: 500px;
margin: 1.5rem auto 2.5rem;
font-weight: 600;
line-height: 1.6;
}

.btn-return {
background: #0f172a;
color: white;
padding: 18px 40px;
border-radius: 20px;
font-weight: 800;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
display: inline-flex;
align-items: center;
gap: 12px;
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.btn-return:hover {
transform: translateY(-5px);
box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
background: #1e293b;
}

@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}

.glow {
position: absolute;
width: 400px;
height: 400px;
background: rgba(59, 130, 246, 0.05);
filter: blur(100px);
border-radius: 50%;
z-index: -1;
}

/* Extracted from accounting.php */

.tab-pill { display:inline-block;padding:10px 20px;border-radius:12px;text-decoration:none !important;color:#64748b !important;font-weight:800;font-size:0.85rem;transition:all 0.3s;border:1px solid #e2e8f0;background:#f8fafc;margin-right:5px; }
.tab-pill.active { background:#020617 !important;color:white !important;border-color:#020617; }
.tab-pill:hover:not(.active) { background:#f1f5f9;color:#0f172a !important; }
.input-lite { padding:10px 15px;border-radius:12px;border:1px solid #e2e8f0;font-family:inherit;font-weight:700;color:#1e293b; }
.account-table { width:100%;border-collapse:separate;border-spacing:0; }
.account-table th { padding:1rem 1.5rem;text-align:left;font-size:0.75rem;text-transform:uppercase;color:#475569;background:#f8fafc;border-bottom:2px solid #e2e8f0;white-space:nowrap;letter-spacing:0.5px; }
.account-table td { padding:1rem 1.5rem;border-bottom:1px solid #f1f5f9;font-size:0.88rem; }
.account-table tr:hover td { background:#fafafa; }
.financial-section { display:grid;gap:12px; }
.fin-row { display:flex;justify-content:space-between;font-weight:700;color:#475569;padding:10px 0;border-bottom:1px dashed #e2e8f0; }
.fin-row.header { font-weight:950;color:#3b82f6;border-bottom:2px solid #3b82f6;margin-bottom:10px;font-size:0.9rem; }
.fin-row.total { font-weight:950;color:#0f172a;border-top:2px solid #0f172a;border-bottom:none;background:#f8fafc;padding:15px 10px;margin-top:5px; }

/* Extracted from chat.php */

.chat-container {
height: calc(100vh - 160px);
background: white;
border-radius: 20px;
border: 1px solid #e2e8f0;
display: flex;
overflow: hidden;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.chat-sidebar {
width: 320px;
border-right: 1px solid #e2e8f0;
background: #f8fafc;
display: flex;
flex-direction: column;
}

.chat-main {
flex: 1;
display: flex;
flex-direction: column;
background: #fff;
position: relative;
}

.sidebar-header {
padding: 1.5rem;
border-bottom: 1px solid #e2e8f0;
}

.sidebar-content {
flex: 1;
overflow-y: auto;
padding: 1rem;
}

.chat-item {
padding: 0.85rem 1rem;
border-radius: 12px;
margin-bottom: 0.5rem;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 1rem;
border: 1px solid transparent;
position: relative;
}

.chat-item:hover {
background: #f1f5f9;
}

.chat-item.active {
background: white;
border-color: #e2e8f0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.chat-item.active .chat-icon {
background: var(--accent);
color: white;
}

.chat-icon {
width: 44px;
height: 44px;
background: #e2e8f0;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: #64748b;
flex-shrink: 0;
overflow: hidden;
position: relative;
}

.chat-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}

.online-badge {
width: 12px;
height: 12px;
background: #10b981;
border: 2px solid white;
border-radius: 50%;
position: absolute;
bottom: -2px;
right: -2px;
z-index: 2;
}

.chat-info {
flex: 1;
min-width: 0;
}

.chat-name {
font-weight: 700;
color: #1e293b;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.chat-header {
padding: 1.25rem 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
}

.messages-area {
flex: 1;
padding: 2rem;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1.25rem;
background-color: #f8fafc;
background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
background-size: 20px 20px;
}

.message-bubble {
max-width: 70%;
display: flex;
flex-direction: column;
}

.message-bubble.me {
align-self: flex-end;
}

.message-content {
padding: 0.85rem 1.25rem;
border-radius: 18px;
font-size: 0.95rem;
line-height: 1.5;
position: relative;
}

.message-bubble.me .message-content {
background: var(--accent);
color: white;
border-bottom-right-radius: 4px;
}

.message-bubble.other .message-content {
background: white;
color: #334155;
border: 1px solid #e2e8f0;
border-bottom-left-radius: 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.message-info {
font-size: 0.7rem;
font-weight: 600;
color: #94a3b8;
margin-top: 0.4rem;
display: flex;
gap: 0.5rem;
align-items: center;
}

.message-bubble.me .message-info {
justify-content: flex-end;
}

.chat-input-area {
padding: 1.5rem 2rem;
border-top: 1px solid #e2e8f0;
background: white;
}

.input-wrapper {
display: flex;
gap: 1rem;
background: #f8fafc;
padding: 0.5rem;
padding-left: 1.25rem;
border-radius: 16px;
border: 1px solid #e2e8f0;
transition: all 0.2s;
}

.input-wrapper:focus-within {
border-color: var(--accent);
background: white;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input {
flex: 1;
border: none;
background: transparent;
padding: 0.75rem 0;
outline: none;
font-size: 0.95rem;
color: #1e293b;
}

.send-btn {
width: 44px;
height: 44px;
background: var(--accent);
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}

.send-btn:hover:not(:disabled) {
transform: scale(1.05);
}

#call-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
background: #000;
display: none;
}

.btn-call {
background: #10b981;
color: white;
border: none;
padding: 0.6rem 1.2rem;
border-radius: 10px;
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
transition: all 0.2s;
}

.btn-call:hover {
background: #059669;
transform: translateY(-2px);
}

@media (max-width: 900px) {
.chat-sidebar { width: 80px; }
.chat-name, .sidebar-header h4, .chat-item .chat-info, .sidebar-content span { display: none; }
.sidebar-header { text-align: center; }
.chat-item { justify-content: center; padding: 1rem 0; }
}

/* Extracted from contribution_approvals.php */

    #receiptPreviewSection { display: block !important; visibility: visible !important; opacity: 1 !important; }

/* Extracted from edit_profile.php */

.tab-btn.active { color: #3b82f6 !important; border-bottom-color: #3b82f6 !important; }
.tab-content { display: none; animation: fadeIn 0.4s ease-out; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tabs-scroll::-webkit-scrollbar { height: 4px; }
.tabs-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Extracted from fines_management.php */

.fine-tab {
padding: 1rem 2rem;
border: none;
background: none;
font-weight: 800;
color: #64748b;
cursor: pointer;
border-bottom: 3px solid transparent;
transition: all 0.3s;
}
.fine-tab.active {
color: #0f172a;
border-bottom-color: #0f172a;
}

/* Extracted from forgot_password.php */

/* Extracted from header.php */

@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.chat-header {
padding: 1.25rem 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
}

.messages-area {
flex: 1;
padding: 2rem;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1.25rem;
background-color: #f8fafc;
background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
background-size: 20px 20px;
}

.message-bubble {
max-width: 70%;
display: flex;
flex-direction: column;
}

.message-bubble.me {
align-self: flex-end;
}

.message-content {
padding: 0.85rem 1.25rem;
border-radius: 18px;
font-size: 0.95rem;
line-height: 1.5;
position: relative;
}

.message-bubble.me .message-content {
background: var(--accent);
color: white;
border-bottom-right-radius: 4px;
}

.message-bubble.other .message-content {
background: white;
color: #334155;
border: 1px solid #e2e8f0;
border-bottom-left-radius: 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.message-info {
font-size: 0.7rem;
font-weight: 600;
color: #94a3b8;
margin-top: 0.4rem;
display: flex;
gap: 0.5rem;
align-items: center;
}

.message-bubble.me .message-info {
justify-content: flex-end;
}

.chat-input-area {
padding: 1.5rem 2rem;
border-top: 1px solid #e2e8f0;
background: white;
}

.input-wrapper {
display: flex;
gap: 1rem;
background: #f8fafc;
padding: 0.5rem;
padding-left: 1.25rem;
border-radius: 16px;
border: 1px solid #e2e8f0;
transition: all 0.2s;
}

.input-wrapper:focus-within {
border-color: var(--accent);
background: white;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input {
flex: 1;
border: none;
background: transparent;
padding: 0.75rem 0;
outline: none;
font-size: 0.95rem;
color: #1e293b;
}

.send-btn {
width: 44px;
height: 44px;
background: var(--accent);
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}

.send-btn:hover:not(:disabled) {
transform: scale(1.05);
}

#call-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
background: #000;
display: none;
}

.btn-call {
background: #10b981;
color: white;
border: none;
padding: 0.6rem 1.2rem;
border-radius: 10px;
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
transition: all 0.2s;
}

.btn-call:hover {
background: #059669;
transform: translateY(-2px);
}

@media (max-width: 900px) {
.chat-sidebar { width: 80px; }
.chat-name, .sidebar-header h4, .chat-item .chat-info, .sidebar-content span { display: none; }
.sidebar-header { text-align: center; }
.chat-item { justify-content: center; padding: 1rem 0; }
}

/* Extracted from contribution_approvals.php */

    #receiptPreviewSection { display: block !important; visibility: visible !important; opacity: 1 !important; }

/* Extracted from edit_profile.php */

.tab-btn.active { color: #3b82f6 !important; border-bottom-color: #3b82f6 !important; }
.tab-content { display: none; animation: fadeIn 0.4s ease-out; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tabs-scroll::-webkit-scrollbar { height: 4px; }
.tabs-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Extracted from fines_management.php */

.fine-tab {
padding: 1rem 2rem;
border: none;
background: none;
font-weight: 800;
color: #64748b;
cursor: pointer;
border-bottom: 3px solid transparent;
transition: all 0.3s;
}
.fine-tab.active {
color: #0f172a;
border-bottom-color: #0f172a;
}

/* Extracted from forgot_password.php */

/* Extracted from header.php */

@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* Extracted from header.php */

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

/* Extracted from home.php */

/* Custom Premium Styles */
html { scroll-behavior: smooth; }

.glass-nav {
background: rgba(2, 6, 23, 0.7);
backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.3s ease;
}

.glass-card {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 24px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-5px);
border-color: rgba(250, 204, 21, 0.3);
box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 204, 21, 0.1);
}

.text-gradient {
background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.text-gradient-gold {
background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.btn-premium {
background: linear-gradient(135deg, #facc15, #ca8a04);
color: #020617;
font-weight: 800;
transition: all 0.3s ease;
box-shadow: 0 10px 25px -5px rgba(250, 204, 21, 0.4);
}
.btn-premium:hover {
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(250, 204, 21, 0.6);
}

.btn-outline {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-outline:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}

/* Floating Orbs */
.orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
z-index: -1;
animation: float 10s infinite ease-in-out alternate;
}
.orb-1 { width: 400px; height: 400px; background: rgba(59, 130, 246, 0.15); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: rgba(250, 204, 21, 0.1); bottom: 10%; right: -150px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(139, 92, 246, 0.1); top: 40%; left: 20%; animation-duration: 15s; }

@keyframes float {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Scroll Reveal Utility */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}

/* Extracted from investments.php */

:root {
--glass-bg: rgba(255, 255, 255, 0.85);
--glass-border: rgba(255, 255, 255, 0.5);
--accent-blue: #3b82f6;
--accent-green: #10b981;
--accent-purple: #8b5cf6;
--accent-gold: #f59e0b;
--text-deep: #0f172a;
--text-muted: #64748b;
--bg-main: #f1f5f9;
--card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
--luxury-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}


/* PREMIUM KPI OVERHAUL */
.kpi-matrix {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-bottom: 4rem;
}




/* ASSET CARDS - HIGH PERFORMANCE STYLE */
.investment-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2.5rem;
margin-bottom: 5rem;
}

.asset-card {
background: white;
border: 1px solid #e2e8f0;
border-radius: 24px;
padding: 2rem;
box-shadow: var(--card-shadow);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.asset-card:hover {
transform: translateY(-10px);
box-shadow: var(--luxury-shadow);
border-color: var(--accent-blue);
}

/* ELITE FORMS & MODALS */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(10px);
z-index: 9000;
display: none; /* Flex when active */
align-items: center;
justify-content: center;
padding: 20px;
}

.modal-content {
background: white;
border-radius: 16px;
padding: 3rem;
border: 1px solid #e2e8f0;
box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.4);
animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
max-height: 90vh;
overflow-y: auto;
position: relative;
width: 100%;
}

@keyframes modalSlide {
from { transform: translateY(40px) scale(0.95); opacity: 0; }
to { transform: translateY(0) scale(1); opacity: 1; }
}

.glass-input {
width: 100%;
padding: 18px 24px;
background: #f8fafc;
border: 2px solid #e2e8f0;
border-radius: 20px;
font-weight: 600;
color: var(--text-deep);
transition: all 0.3s;
font-size: 0.95rem;
}

.glass-input:focus {
border-color: var(--accent-blue);
background: white;
box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1);
outline: none;
}

.kpi-label-tactical {
font-size: 0.8rem;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1.5px;
margin-bottom: 12px;
display: block;
}


/* TABLE POLISH */
.account-table {
width: 100%;
border-collapse: separate;
border-spacing: 0 12px;
}

.account-table th {
text-align: left;
padding: 15px 25px;
font-size: 0.65rem;
font-weight: 950;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1.5px;
}

.account-table tr td {
padding: 1.8rem 2.5rem;
background: white;
border: none;
transition: all 0.3s;
}

.account-table tr td:first-child { border-radius: 20px 0 0 20px; }
.account-table tr td:last-child { border-radius: 0 20px 20px 0; }

.account-table tr:hover td {
background: #f8fafc;
transform: scale(1.01);
box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
}

.status-badge.status-active { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge.status-matured { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.status-badge.status-liquidated { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.luxury-tab-nav {
background: #e2e8f0;
padding: 6px;
border-radius: 20px;
display: flex;
gap: 6px;
margin-bottom: 4rem;
overflow-x: auto;
white-space: nowrap;
scrollbar-width: none;
}

.luxury-tab-nav::-webkit-scrollbar { display: none; }

.luxury-tab-btn {
padding: 10px 24px;
border-radius: 16px;
font-weight: 800;
font-size: 0.85rem;
color: #64748b;
transition: all 0.3s;
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.luxury-tab-btn.active {
background: white;
color: #0f172a;
box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

/* RESPONSIVE REFINEMENTS */
@media (max-width: 768px) {
.executive-header {
flex-direction: column;
align-items: flex-start !important;
gap: 20px;
}

.kpi-matrix {
grid-template-columns: 1fr;
gap: 1rem;
}

.investment-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}

.account-table tr td {
padding: 1rem;
font-size: 0.8rem;
}



.asset-card {
padding: 1.5rem;
}

} /* end @media max-width: 768px */

/* Extracted from login.php */

/* Prevent top nav showing on login page */

/* Premium Login Layout */
.login-wrapper {
display: flex;
min-height: 100vh;
width: 100%;
background: #f8fafc;
overflow: hidden;
}

/* Left Branding Panel */
.login-brand-panel {
flex: 1;
background: linear-gradient(135deg, #020617, #0f172a, #1e1b4b);
color: white;
padding: 4rem;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
overflow: hidden;
}

/* Animated Gold Particles */
.particles-container {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 1;
pointer-events: none;
}
.particle {
position: absolute;
background: radial-gradient(circle, rgba(250,204,21,0.8) 0%, rgba(250,204,21,0) 70%);
border-radius: 50%;
animation: float 15s infinite linear;
}
@keyframes float {
0% { transform: translateY(100vh) scale(0); opacity: 0; }
50% { opacity: 0.5; }
100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Glowing Orb */
.glow-orb {
position: absolute;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
top: -200px;
right: -200px;
border-radius: 50%;
z-index: 1;
animation: pulse 8s infinite alternate ease-in-out;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 0.5; }
100% { transform: scale(1.2); opacity: 1; }
}

.brand-content {
position: relative;
z-index: 10;
max-width: 600px;
margin: 0 auto;
}

.brand-logo-container {
margin-bottom: 3rem;
}

.brand-slogan {
font-size: 3.5rem;
font-weight: 950;
line-height: 1.1;
letter-spacing: -2px;
margin-bottom: 1.5rem;
background: linear-gradient(to right, #ffffff, #94a3b8);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.brand-desc {
font-size: 1.1rem;
color: #94a3b8;
line-height: 1.6;
margin-bottom: 3rem;
font-weight: 500;
}

.brand-benefits {
display: flex;
flex-direction: column;
gap: 1.2rem;
}

.benefit-item {
display: flex;
align-items: center;
gap: 15px;
background: rgba(255,255,255,0.03);
padding: 15px 20px;
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.05);
backdrop-filter: blur(10px);
transition: 0.3s;
}
.benefit-item:hover {
background: rgba(255,255,255,0.08);
transform: translateX(10px);
}
.benefit-icon {
color: #facc15;
font-size: 1.2rem;
}

/* Right Form Panel */
.login-form-panel {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
background: #f8fafc;
position: relative;
}

.login-card {
width: 100%;
max-width: 480px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(20px);
border-radius: 30px;
padding: 3.5rem;
box-shadow: 0 40px 80px -20px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.form-header {
text-align: center;
margin-bottom: 2.5rem;
}
.form-header h2 {
font-size: 2rem;
font-weight: 900;
color: #0f172a;
margin-bottom: 8px;
letter-spacing: -1px;
}
.form-header p {
color: #64748b;
font-weight: 600;
font-size: 0.95rem;
}

.input-group {
position: relative;
margin-bottom: 1.5rem;
}
.input-group label {
display: block;
font-weight: 800;
font-size: 0.75rem;
color: #1e293b;
text-transform: uppercase;
margin-bottom: 10px;
letter-spacing: 0.5px;
}
.input-field {
width: 100%;
padding: 16px 16px 16px 50px;
border-radius: 16px;
border: 2px solid #e2e8f0;
background: #f8fafc;
font-weight: 700;
color: #0f172a;
outline: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
font-size: 1rem;
}
.input-field:focus {
border-color: #3b82f6;
background: white;
box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.input-icon {
position: absolute;
left: 18px;
top: 42px; /* label height + margin + padding */
color: #94a3b8;
transition: 0.3s;
}
.input-field:focus + .input-icon {
color: #3b82f6;
}

.password-toggle {
position: absolute;
right: 18px;
top: 42px;
color: #94a3b8;
cursor: pointer;
transition: 0.3s;
}
.password-toggle:hover {
color: #0f172a;
}

.form-options {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}

.remember-me {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.remember-me input {
width: 18px;
height: 18px;
border-radius: 6px;
border: 2px solid #cbd5e1;
cursor: pointer;
accent-color: #0f172a;
}
.remember-me span {
font-size: 0.85rem;
font-weight: 600;
color: #64748b;
}

.forgot-link {
font-size: 0.8rem;
color: #3b82f6;
text-decoration: none;
font-weight: 800;
transition: 0.2s;
}
.forgot-link:hover {
color: #1d4ed8;
text-decoration: underline;
}

.btn-login {
width: 100%;
padding: 18px;
font-weight: 900;
font-size: 1.1rem;
background: linear-gradient(135deg, #0f172a, #1e293b);
color: white;
border: none;
border-radius: 18px;
cursor: pointer;
box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
.btn-login:hover {
transform: translateY(-3px);
box-shadow: 0 15px 25px -5px rgba(15, 23, 42, 0.4);
}
.btn-login:active {
transform: translateY(0);
}

.form-footer {
    position: sticky !important;
animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
from { transform: scale(0); }
to { transform: scale(1); }
}

.error-msg {
background: #fef2f2;
color: var(--danger);
padding: 15px;
border-radius: 12px;
margin-bottom: 20px;
font-weight: 700;
font-size: 0.85rem;
border-left: 4px solid var(--danger);
}

/* Extracted from meeting_details.php */

.form-row-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin-bottom: 1.2rem;
}
@media (max-width: 600px) {
.form-row-grid {
    grid-template-columns: 1fr;
}
}

/* Extracted from member_profile.php */

:root {
--brand-primary: #020617;
--brand-accent: #3b82f6;
--card-bg: #ffffff;
--text-main: #0f172a;
--text-muted: #64748b;
--bg-soft: #f8fafc;
--radius-lg: 32px;
--shadow-soft: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
}

.main-content { padding: 40px; background: var(--bg-soft); min-height: 100vh; }
.glass-card { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid #e2e8f0; box-shadow: var(--shadow-soft); transition: 0.3s; }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1); }

.label-micro { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.value-bold { font-size: 1.8rem; font-weight: 900; color: var(--brand-primary); letter-spacing: -1px; }

.status-badge { padding: 6px 12px; border-radius: 10px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-category { padding: 2px 8px; border-radius: 6px; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; margin-left: 10px; }

.btn-action { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: white; border: 1px solid #e2e8f0; border-radius: 16px; color: var(--text-main); font-weight: 800; font-size: 0.8rem; text-decoration: none; transition: 0.3s; }
.btn-action:hover { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }

.tx-group-header { padding: 20px 30px; background: #f1f5f9; font-weight: 900; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Extracted from my_account.php */

:root {
--profile-brand: #020617;
--profile-accent: #3b82f6;
--profile-bg: #f8fafc;
--profile-card: #ffffff;
--profile-radius: 32px;
}

.profile-main { padding: 40px; background: var(--profile-bg); min-height: 100vh; }
.profile-card { background: var(--profile-card); border-radius: var(--profile-radius); border: 1px solid #e2e8f0; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }

.profile-label { font-size: 0.65rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.profile-value { font-size: 0.95rem; font-weight: 800; color: #0f172a; }

.profile-header-banner {
background: linear-gradient(135deg, #020617 0%, #1e293b 100%);
padding: 60px 40px;
border-radius: var(--profile-radius);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
position: relative;
overflow: hidden;
flex-wrap: wrap;
gap: 20px;
}

.profile-header-banner::before {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 400px;
height: 400px;
background: rgba(59, 130, 246, 0.1);
filter: blur(100px);
border-radius: 50%;
}

.btn-edit-profile {
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
color: white;
padding: 12px 24px;
border-radius: 16px;
font-weight: 800;
text-decoration: none;
transition: 0.3s;
display: flex;
align-items: center;
gap: 10px;
backdrop-filter: blur(10px);
white-space: nowrap;
}
.btn-edit-profile:hover { background: white; color: #020617; }

.stat-mini-card {
padding: 20px;
border-radius: 20px;
background: #f1f5f9;
display: flex;
flex-direction: column;
gap: 5px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
.profile-main-grid { grid-template-columns: 1fr !important; }
.profile-side-snapshot { position: static !important; }
}

@media (max-width: 768px) {
.profile-main { padding: 20px; }
.profile-header-banner { padding: 40px 20px; flex-direction: column; text-align: center; justify-content: center; }
.profile-header-info { flex-direction: column; gap: 20px !important; }
.profile-header-banner h1 { font-size: 1.8rem !important; }
.profile-header-banner .btn-edit-profile { width: 100%; justify-content: center; }

.matrix-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
.prof-res-grid { grid-template-columns: 1fr !important; }
}

/* Extracted from page.php */

/* Styling for QuillJS output to match portal aesthetics */
.dynamic-content h1, .dynamic-content h2, .dynamic-content h3 {
color: #0f172a;
font-weight: 900;
margin-top: 2.5rem;
margin-bottom: 1rem;
letter-spacing: -0.5px;
}
.dynamic-content h1 { font-size: 2.5rem; }
.dynamic-content h2 { font-size: 2rem; }
.dynamic-content h3 { font-size: 1.5rem; }
.dynamic-content p { margin-bottom: 1.5rem; }
.dynamic-content ul, .dynamic-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.dynamic-content li { margin-bottom: 0.5rem; }
.dynamic-content a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.dynamic-content a:hover { text-decoration: underline; }
.dynamic-content blockquote {
border-left: 4px solid #3b82f6;
padding-left: 1.5rem;
margin: 2rem 0;
font-style: italic;
color: #64748b;
background: #f8fafc;
padding: 1.5rem;
border-radius: 0 16px 16px 0;
}
.dynamic-content pre {
background: #0f172a;
color: #f8fafc;
padding: 1.5rem;
border-radius: 16px;
overflow-x: auto;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9rem;
}

/* Extracted from payments.php */

.payment-grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 3rem;
align-items: start;
}
@media (max-width: 1200px) {
.payment-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}
}
@media (max-width: 800px) {
.payment-form-inner {
    grid-template-columns: 1fr !important;
}
}

/* Extracted from reset_password.php */

/* Extracted from secretary_meetings.php */

.meetings-grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 2.5rem;
}
.form-row-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
@media (max-width: 900px) {
.meetings-grid {
    grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.form-row-grid {
    grid-template-columns: 1fr;
}
}

/* Extracted from settings.php */

/* Inline Overrides for Luxury Aesthetic */
.cc-main {
background: #fdfdfd;
min-height: calc(100vh - 80px);
padding: 2.5rem;
}

.executive-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 3rem;
}

.luxury-tab-nav {
display: flex;
flex-wrap: wrap;
gap: 10px;
background: #f1f5f9;
padding: 8px;
border-radius: 20px;
width: 100%;
margin-bottom: 2.5rem;
}

.luxury-tab-btn {
padding: 12px 24px;
border-radius: 14px;
font-weight: 800;
font-size: 0.85rem;
color: #64748b;
text-decoration: none;
transition: all 0.3s;
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
flex: 1 1 auto;
justify-content: center;
}

.luxury-tab-btn.active {
background: white;
color: #0f172a;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.luxury-tab-btn:hover:not(.active) {
background: rgba(255,255,255,0.5);
}

.premium-icon-box {
width: 48px;
height: 48px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
color: #3b82f6;
}

.glass-input {
background: rgba(248, 250, 252, 0.8);
border: 2px solid #f1f5f9;
border-radius: 16px;
padding: 1.2rem;
font-weight: 700;
transition: 0.3s;
}

.glass-input:focus {
background: white;
border-color: #3b82f6;
box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08);
}

/* Extracted from settings.php */

/* â”€â”€ Message Dispatch Center Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.msg-hub-header {
background: linear-gradient(135deg,#020617 0%,#0f172a 60%,#1e1b4b 100%);
border-radius: 28px; padding: 2.5rem 3rem; color: white;
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 2rem; position: relative; overflow: hidden;
}
.msg-hub-header::before {
content: ''; position: absolute; top: -60px; right: -60px;
width: 220px; height: 220px;
background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
border-radius: 50%;
}
.template-grid {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
margin-bottom: 2rem;
}
.tpl-card {
background: white; border-radius: 20px; padding: 1.5rem;
border: 2px solid #f1f5f9; cursor: pointer; text-align: left;
transition: all 0.25s ease; position: relative; overflow: hidden;
}
.tpl-card::after {
content: ''; position: absolute; inset: 0; opacity: 0;
transition: opacity 0.25s;
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.tpl-card:hover { border-color: var(--tpl-color); }
.tpl-icon {
width: 46px; height: 46px; border-radius: 14px;
display: flex; align-items: center; justify-content: center;
font-size: 1.1rem; margin-bottom: 14px; color: white;
}
.tpl-badge {
display: inline-block; font-size: 0.55rem; font-weight: 900;
text-transform: uppercase; letter-spacing: 1.5px;
padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
/* Custom Modals Nuked. Using SweetAlert instead for bulletproof layout. */
.member-search-box {
background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px;
padding: 0.85rem 1.25rem; width: 100%; font-weight: 700; font-size: 0.9rem;
outline: none; transition: 0.25s;
}
.member-search-box:focus { border-color: #6366f1; background: white; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.member-list-wrap {
border: 1.5px solid #e2e8f0; border-radius: 14px; overflow: hidden;
max-height: 240px; overflow-y: auto; margin-top: 10px;
}
.member-row {
display: flex; align-items: center; gap: 14px; padding: 12px 16px;
cursor: pointer; border-bottom: 1px solid #f8fafc; transition: background 0.15s;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: #f8fafc; }
.member-row.selected { background: #f0f0ff; border-left: 3px solid #6366f1; }
.member-avatar-sm {
width: 36px; height: 36px; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-weight: 900; font-size: 0.85rem; color: white; flex-shrink: 0;
}
.msg-preview-box {
background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 16px;
padding: 1.5rem; margin-top: 1rem; font-size: 0.82rem; line-height: 1.7;
color: #475569; max-height: 180px; overflow-y: auto;
}
.section-label {
font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
letter-spacing: 1.5px; color: #94a3b8; margin-bottom: 10px; display: block;
}
.target-chip {
display: inline-flex; align-items: center; gap: 8px;
gap: 3rem;
align-items: start;
}
@media (max-width: 1200px) {
.payment-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}
}
@media (max-width: 800px) {
.payment-form-inner {
    grid-template-columns: 1fr !important;
}
}

/* Extracted from reset_password.php */

/* Extracted from secretary_meetings.php */

.meetings-grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 2.5rem;
}
.form-row-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
@media (max-width: 900px) {
.meetings-grid {
    grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.form-row-grid {
    grid-template-columns: 1fr;
}
}

/* Extracted from settings.php */

/* Inline Overrides for Luxury Aesthetic */
.cc-main {
background: #fdfdfd;
min-height: calc(100vh - 80px);
padding: 2.5rem;
}

.executive-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 3rem;
}

.luxury-tab-nav {
display: flex;
flex-wrap: wrap;
gap: 10px;
background: #f1f5f9;
padding: 8px;
border-radius: 20px;
width: 100%;
margin-bottom: 2.5rem;
}

.luxury-tab-btn {
padding: 12px 24px;
border-radius: 14px;
font-weight: 800;
font-size: 0.85rem;
color: #64748b;
text-decoration: none;
transition: all 0.3s;
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
flex: 1 1 auto;
justify-content: center;
}

.luxury-tab-btn.active {
background: white;
color: #0f172a;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.luxury-tab-btn:hover:not(.active) {
background: rgba(255,255,255,0.5);
}

.premium-icon-box {
width: 48px;
height: 48px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
color: #3b82f6;
}

.glass-input {
background: rgba(248, 250, 252, 0.8);
border: 2px solid #f1f5f9;
border-radius: 16px;
padding: 1.2rem;
font-weight: 700;
transition: 0.3s;
}

.glass-input:focus {
background: white;
border-color: #3b82f6;
box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08);
}

/* Extracted from settings.php */

/* â”€â”€ Message Dispatch Center Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.msg-hub-header {
background: linear-gradient(135deg,#020617 0%,#0f172a 60%,#1e1b4b 100%);
border-radius: 28px; padding: 2.5rem 3rem; color: white;
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 2rem; position: relative; overflow: hidden;
}
.msg-hub-header::before {
content: ''; position: absolute; top: -60px; right: -60px;
width: 220px; height: 220px;
background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
border-radius: 50%;
}
.template-grid {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
margin-bottom: 2rem;
}
.tpl-card {
background: white; border-radius: 20px; padding: 1.5rem;
border: 2px solid #f1f5f9; cursor: pointer; text-align: left;
transition: all 0.25s ease; position: relative; overflow: hidden;
}
.tpl-card::after {
content: ''; position: absolute; inset: 0; opacity: 0;
transition: opacity 0.25s;
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.tpl-card:hover { border-color: var(--tpl-color); }
.tpl-icon {
width: 46px; height: 46px; border-radius: 14px;
display: flex; align-items: center; justify-content: center;
font-size: 1.1rem; margin-bottom: 14px; color: white;
}
.tpl-badge {
display: inline-block; font-size: 0.55rem; font-weight: 900;
text-transform: uppercase; letter-spacing: 1.5px;
padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
/* Custom Modals Nuked. Using SweetAlert instead for bulletproof layout. */
.member-search-box {
background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px;
padding: 0.85rem 1.25rem; width: 100%; font-weight: 700; font-size: 0.9rem;
outline: none; transition: 0.25s;
}
.member-search-box:focus { border-color: #6366f1; background: white; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.member-list-wrap {
border: 1.5px solid #e2e8f0; border-radius: 14px; overflow: hidden;
max-height: 240px; overflow-y: auto; margin-top: 10px;
}
.member-row {
display: flex; align-items: center; gap: 14px; padding: 12px 16px;
cursor: pointer; border-bottom: 1px solid #f8fafc; transition: background 0.15s;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: #f8fafc; }
.member-row.selected { background: #f0f0ff; border-left: 3px solid #6366f1; }
.member-avatar-sm {
width: 36px; height: 36px; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-weight: 900; font-size: 0.85rem; color: white; flex-shrink: 0;
}
.msg-preview-box {
background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 16px;
padding: 1.5rem; margin-top: 1rem; font-size: 0.82rem; line-height: 1.7;
color: #475569; max-height: 180px; overflow-y: auto;
}
.section-label {
font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
letter-spacing: 1.5px; color: #94a3b8; margin-bottom: 10px; display: block;
}
.target-chip {
display: inline-flex; align-items: center; gap: 8px;
background: #f0f0ff; border: 1.5px solid #c7d2fe;
color: #4338ca; border-radius: 10px; padding: 5px 14px;
font-size: 0.75rem; font-weight: 800; margin: 4px;
}
.target-chip .remove-chip { cursor: pointer; color: #6366f1; font-size: 0.7rem; }
#selectedChipsWrap { min-height: 36px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; }

/* Extracted from sidebar.php */

.signup-flow-container {
min-height: 100vh;
background: #f1f5f9;
padding: 3rem 1rem;
display: flex;
justify-content: center;
align-items: flex-start;
}

.form-card {
width: 100%;
max-width: 850px;
background: white;
border-radius: 16px;
padding: 4rem;
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}

.premium-title {
font-size: 2.8rem;
font-weight: 950;
letter-spacing: -2px;
margin: 0;
color: var(--dark);
}

.subtitle {
color: #64748b;
font-weight: 600;
margin-top: 10px;
font-size: 1.1rem;
}

.progress-stepper {
display: flex;
justify-content: space-between;
margin: 3rem 0;
position: relative;
}

.progress-stepper::before {
content: '';
position: absolute;
top: 20px;
left: 0;
right: 0;
height: 2px;
background: var(--border);
z-index: 1;
}

.step {
position: relative;
z-index: 2;
background: white;
width: 40px;
height: 40px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--border);
font-weight: 800;
color: #94a3b8;
transition: 0.3s;
}

.step span {
position: absolute;
top: 50px;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 1px;
white-space: nowrap;
}

.step.active {
border-color: var(--accent);
background: var(--accent);
color: white;
box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3);
}

.step.completed {
border-color: var(--accent);
background: #dcfce7;
color: #166534;
}

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

.section-title {
font-weight: 950;
font-size: 1.4rem;
margin-bottom: 2rem;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 1px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-weight: 900; font-size: 0.75rem; text-transform: uppercase; color: #475569; margin-bottom: 10px; letter-spacing: 0.5px; }
.input-group input, .input-group select, .input-group textarea {
width: 100%;
padding: 1.1rem;
border: 2px solid var(--border);
border-radius: 16px;
font-weight: 700;
font-family: inherit;
transition: 0.3s;
}
.input-group input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }

.radio-group { display: flex; gap: 20px; padding: 10px 0; }
.radio-group label { text-transform: none; font-size: 1rem; color: var(--dark); cursor: pointer; display: flex; align-items: center; gap: 8px; }

.declaration-box {
background: #f8fafc;
padding: 2rem;
border-radius: 20px;
border-left: 6px solid var(--accent);
font-weight: 600;
color: #475569;
line-height: 1.7;
}

.actions { display: flex; gap: 15px; margin-top: 3rem; }
.btn-next, .btn-submit {
flex: 2;
padding: 1.2rem;
background: var(--dark);
color: white;
border: none;
border-radius: 18px;
font-weight: 950;
cursor: pointer;
transition: 0.3s;
text-transform: uppercase;
letter-spacing: 1px;
}
.btn-next:hover, .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-prev {
flex: 1;
padding: 1.2rem;
background: var(--light);
color: #64748b;
border: 2px solid var(--border);
border-radius: 18px;
font-weight: 950;
cursor: pointer;
}

.login-footer {
    position: sticky !important;
    bottom: 0;
margin-top: 3rem;
text-align: center;
font-weight: 800;
color: #64748b;
}
.login-footer a { color: var(--accent); text-decoration: none; }

/* Custom Checkbox */
.checkbox-container { position: relative; padding-left: 35px; cursor: pointer; font-size: 0.9rem; user-select: none; }
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 25px; width: 25px; background-color: #eee; border-radius: 8px; }
.checkbox-container:hover input ~ .checkmark { background-color: #ccc; }
.checkbox-container input:checked ~ .checkmark { background-color: var(--accent); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after { left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }

@media (max-width: 991px) {
/* Auto-wrap tables for mobile without needing wrapper div */
table {
display: block !important;
width: 100% !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important;
white-space: nowrap !important;
}
}
/* ========================================= */
/* MODERN UI COMPONENTS V2                   */
/* ========================================= */

/* --- CARDS & PANELS --- */
.card-modern {
background: var(--bg-card);
border: 1px solid var(--border-light);
border-radius: var(--radius-xl);
padding: 2rem;
box-shadow: var(--shadow-lg);
transition: all 0.3s ease;
}
.card-modern:hover {
box-shadow: var(--shadow-xl);
}
.card-header-modern {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--bg-subtle);
}
.card-title-modern {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-main);
letter-spacing: -0.5px;
margin: 0;
}
.card-subtitle-modern {
font-size: 0.85rem;
color: var(--text-muted);
font-weight: 600;
margin-top: 0.25rem;
}

/* --- BUTTONS --- */
.btn-modern {
padding: 12px 24px;
border-radius: var(--radius-md);
font-weight: 700;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border: none;
text-decoration: none;
}
.btn-primary {
background: var(--brand-accent);
color: var(--text-inverse);
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
background: #2563eb;
box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
transform: translateY(-2px);
}
.btn-dark {
background: var(--brand-primary);
color: var(--text-inverse);
}
.btn-dark:hover {
background: #0f172a;
box-shadow: 0 10px 15px -3px rgba(2, 6, 23, 0.4);
transform: translateY(-2px);
}
.btn-outline {
background: transparent;
color: var(--text-main);
border: 2px solid var(--border-light);
}
.btn-outline:hover {
border-color: var(--brand-accent);
color: var(--brand-accent);
background: var(--bg-subtle);
}
.btn-success {
background: var(--brand-success);
color: white;
}
.btn-danger {
background: var(--status-danger);
color: white;
}

/* --- FORMS & INPUTS --- */
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
font-size: 0.75rem;
font-weight: 800;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 0.5rem;
}
.form-control {
width: 100%;
padding: 14px 18px;
border-radius: var(--radius-md);
border: 2px solid var(--border-light);
background: var(--bg-page);
font-family: inherit;
font-weight: 600;
color: var(--text-main);
transition: all 0.2s ease;
}
.form-control:focus {
outline: none;
border-color: var(--brand-accent);
background: var(--bg-card);
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* --- BADGES --- */
.badge {
padding: 4px 10px;
border-radius: var(--radius-sm);
font-size: 0.7rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.5px;
display: inline-flex;
align-items: center;
gap: 4px;
}
.badge-pending { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.badge-success { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.badge-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.badge-info { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }

/* --- MODERN TABLES --- */
.table-modern-wrapper {
width: 100%;
overflow-x: auto;
border-radius: var(--radius-lg);
border: 1px solid var(--border-light);
background: var(--bg-card);
box-shadow: var(--shadow-sm);
}
.table-modern {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.table-modern thead {
background: var(--bg-page);
border-bottom: 2px solid var(--border-light);
}
.table-modern th {
padding: 1rem 1.5rem;
text-align: left;
font-size: 0.75rem;
font-weight: 800;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 1px;
white-space: nowrap;
}
.table-modern td {
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--bg-subtle);
color: var(--text-main);
font-weight: 500;
vertical-align: middle;
}
.table-modern tbody tr {
transition: background-color 0.2s ease;
}
.table-modern tbody tr:hover {
background: var(--bg-page);
}
/* ========================================= */
/* LAYOUT COMPONENTS                         */
/* ========================================= */

.sidebar-wrapper {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
/* No overflow on desktop - all items must fit */
overflow-y: visible;
}
.sidebar-brand {
text-align: center;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-logo {
max-width: 80px;
max-height: 36px;
margin-bottom: 8px;
border-radius: var(--radius-sm);
}
.sidebar-logo-fallback {
width: 50px;
height: 50px;
background: linear-gradient(135deg, var(--brand-accent), #1d4ed8);
border-radius: var(--radius-md);
margin: 0 auto 15px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.3rem;
box-shadow: 0 10px 15px rgba(59, 130, 246, 0.2);
}
.sidebar-brand-name {
color: white;
font-weight: 800;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sidebar-nav {
flex: 1;
display: flex;
flex-direction: column;
gap: 1px;
}
.top-nav-left {
display: flex;
align-items: center;
gap: 20px;
}
.top-nav-title {
font-weight: 800;
color: var(--text-main);
margin: 0;
letter-spacing: -0.5px;
}
.top-nav-right {
display: flex;
align-items: center;
gap: 20px;
position: relative;
}
.user-info {
text-align: right;
line-height: 1.2;
}
.user-name {
font-weight: 900;
color: var(--text-main);
font-size: 0.85rem;
}
.user-role {
font-size: 0.65rem;
color: var(--brand-accent);
font-weight: 950;
text-transform: uppercase;
}
.profile-toggle-btn {
width: 45px;
height: 45px;
background: var(--bg-subtle);
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
font-weight: 950;
color: var(--brand-accent);
border: 1px solid var(--border-light);
cursor: pointer;
padding: 0;
overflow: hidden;
position: relative;
transition: all 0.2s ease;
}
.profile-toggle-btn:hover {
border-color: var(--brand-accent);
}
.profile-dropdown-menu {
display: none;
position: absolute;
top: 55px;
right: 0;
background: white;
min-width: 180px;
box-shadow: var(--shadow-lg);
border-radius: var(--radius-lg);
border: 1px solid var(--border-light);
overflow: hidden;
z-index: 1000;
flex-direction: column;
}
.profile-dropdown-item {
padding: 12px 20px;
color: var(--text-main);
text-decoration: none;
font-size: 0.85rem;
font-weight: 800;
display: flex;
align-items: center;
gap: 10px;
border-bottom: 1px solid var(--bg-subtle);
transition: background 0.2s ease;
}
.profile-dropdown-item:hover {
background: var(--bg-page);
color: var(--brand-accent);
}
.profile-dropdown-item.logout {
color: var(--status-danger);
}
.profile-dropdown-item.logout:hover {
background: #fef2f2;
}
/* ========================================= */
/* MODALS & NOTIFICATIONS                    */
/* ========================================= */

.live-banner {
background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
color: white;
padding: 12px 25px;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
z-index: 3000;
box-shadow: var(--shadow-md);
}
.live-banner-left {
display: flex;
align-items: center;
gap: 15px;
}
.live-pulse {
width: 10px;
height: 10px;
background: var(--brand-success);
border-radius: 50%;
box-shadow: 0 0 10px var(--brand-success);
animation: pulse 2s infinite;
}
.live-title {
font-weight: 800;
font-size: 0.85rem;
letter-spacing: 0.5px;
}
.live-banner-right {
display: flex;
gap: 15px;
align-items: center;
}
.live-auto-checkin {
font-size: 0.75rem;
font-weight: 600;
background: rgba(255, 255, 255, 0.1);
padding: 4px 10px;
border-radius: var(--radius-sm);
}
.live-join-btn {
background: white;
color: var(--brand-primary);
padding: 6px 15px;
border-radius: var(--radius-sm);
font-weight: 900;
font-size: 0.75rem;
text-decoration: none;
transition: 0.3s;
display: flex;
align-items: center;
gap: 8px;
}
.live-join-btn:hover {
background: var(--bg-hover);
}

.modal-overlay {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.6);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
padding: 20px;
}
.modal-overlay.active {
display: flex;
}
.popup-card-loading {
max-width: 350px;
padding: 2.5rem;
}
.popup-title {
font-weight: 950;
color: var(--text-main);
margin: 0 0 10px 0;
letter-spacing: -1px;
}
.popup-message {
color: var(--text-muted);
font-weight: 700;
margin: 0;
line-height: 1.6;
}

.pwa-banner {
display: none;
position: fixed;
bottom: 24px;
right: 24px;
z-index: 9999;
background: white;
border-radius: var(--radius-lg);
padding: 18px 22px;
box-shadow: var(--shadow-xl);
border: 1px solid var(--border-light);
align-items: center;
gap: 16px;
max-width: 340px;
animation: slideUp 0.4s ease;
}
.pwa-banner-icon {
width: 48px;
height: 48px;
border-radius: var(--radius-md);
object-fit: cover;
}
.pwa-banner-content {
flex: 1;
}
.pwa-banner-title {
font-weight: 800;
font-size: 0.9rem;
color: var(--text-main);
}
.pwa-banner-desc {
font-size: 0.78rem;
color: var(--text-muted);
margin-top: 2px;
}
.pwa-banner-actions {
display: flex;
flex-direction: column;
gap: 6px;
}
.pwa-btn-primary {
background: var(--brand-accent);
color: white;
border: none;
padding: 8px 14px;
border-radius: var(--radius-sm);
font-weight: 800;
font-size: 0.78rem;
cursor: pointer;
}
.pwa-btn-secondary {
background: transparent;
color: var(--text-light);
border: none;
font-size: 0.75rem;
cursor: pointer;
}

.push-banner {
display: none;
position: fixed;
bottom: 24px;
left: 24px;
z-index: 9998;
background: linear-gradient(135deg, var(--brand-primary), #0f172a);
color: white;
border-radius: var(--radius-lg);
padding: 18px 22px;
box-shadow: var(--shadow-xl);
border: 1px solid rgba(255, 255, 255, 0.08);
max-width: 320px;
align-items: center;
gap: 14px;
}

@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.footer-modern {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    background: #020617;
    border-top: 1px solid var(--border-light);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}
.footer-modern a {
color: var(--text-light);
text-decoration: none;
transition: color 0.2s ease;
}
.footer-modern a:hover {
color: var(--brand-accent);
}
/* ========================================= */
/* DASHBOARD COMPONENTS                      */
/* ========================================= */

.dashboard-hero {
background: linear-gradient(135deg, var(--brand-primary) 0%, #1e293b 100%);
padding: 40px;
border-radius: var(--radius-xl);
color: white;
margin-bottom: 30px;
box-shadow: var(--shadow-lg);
}
.dashboard-hero-title {
margin: 0;
font-size: 2rem;
font-weight: 900;
}
.dashboard-hero-subtitle {
opacity: 0.7;
font-size: 1rem;
margin: 10px 0 0 0;
}
.section-title {
font-size: 0.75rem;
font-weight: 900;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1.5px;
margin-bottom: 20px;
}
.action-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.action-card {
text-decoration: none;
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border-light);
padding: 20px;
border-radius: var(--radius-lg);
display: flex;
align-items: center;
gap: 15px;
transition: all 0.3s ease;
}
.action-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-md);
}
.action-card-dark {
background: var(--brand-primary);
color: white;
box-shadow: var(--shadow-lg);
}
.action-card-dark:hover {
background: #1e293b;
}
.action-card-primary {
background: linear-gradient(135deg, var(--brand-accent), #1d4ed8);
color: white;
box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}
.action-icon {
width: 40px;
height: 40px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
}
.action-icon-dark { background: rgba(255, 255, 255, 0.1); color: white; }
.action-icon-primary { background: rgba(255, 255, 255, 0.15); color: white; }
.action-icon-blue { background: #eff6ff; color: var(--brand-accent); }
.action-icon-green { background: #ecfdf5; color: var(--brand-success); }
.action-icon-amber { background: #fef3c7; color: var(--status-pending); }
.action-icon-purple { background: #ede9fe; color: var(--status-purple); }

.action-title {
font-weight: 900;
font-size: 0.9rem;
}
.action-subtitle {
font-size: 0.7rem;
color: var(--text-muted);
margin-top: 2px;
}
.action-card-primary .action-subtitle, 
.action-card-dark .action-subtitle {
color: rgba(255, 255, 255, 0.8);
}
/* ========================================= */
/* TABS & FILTERS                            */
/* ========================================= */

.tabs-modern {
display: flex;
gap: 10px;
margin-bottom: 2.5rem;
background: var(--bg-subtle);
padding: 6px;
border-radius: var(--radius-lg);
width: fit-content;
border: 1px solid var(--border-light);
box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
overflow-x: auto;
}
.tab-item {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 24px;
border-radius: calc(var(--radius-lg) - 4px);
font-weight: 800;
font-size: 0.85rem;
text-decoration: none;
transition: all 0.3s ease;
color: var(--text-muted);
}
.tab-item.active {
background: white;
color: var(--text-main);
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.tab-badge {
background: var(--bg-muted);
color: white;
font-size: 0.7rem;
padding: 2px 8px;
border-radius: var(--radius-sm);
font-weight: 900;
}
.tab-item.active .tab-badge {
background: var(--brand-primary);
}
.filter-form {
background: white;
padding: 8px 16px;
border-radius: var(--radius-md);
border: 1px solid var(--border-light);
display: flex;
align-items: center;
gap: 12px;
box-shadow: var(--shadow-sm);
}
.filter-input {
border: none;
outline: none;
font-weight: 700;
color: var(--text-main);
min-width: 200px;
font-size: 0.85rem;
}
.filter-btn {
background: var(--brand-primary);
color: white;
border: none;
padding: 8px 16px;
border-radius: var(--radius-sm);
font-weight: 800;
cursor: pointer;
font-size: 0.7rem;
transition: background 0.3s ease;
}
.filter-btn:hover {
background: var(--bg-dark);
}




@media (max-width: 900px) { footer { position: relative !important; } }

/* ========================================= */
/* DESKTOP LOCKED LAYOUT & COLLAPSIBLE SIDEBAR */
/* ========================================= */
/* Show Menu Toggle on all screens */
.menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f1f5f9 !important;
    border-radius: 12px;
    color: #0f172a !important;
    border: none;
    cursor: pointer;
}

@media (min-width: 1101px) {
    /* Lock the viewport */
    body, html {
        height: 100vh !important;
        overflow: hidden !important;
    }
    .dashboard-layout {
        height: 100vh !important;
        overflow: hidden !important;
    }
    .content-area {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    /* Scroll only the main content */
    .main-content, .cc-main, .profile-main {
        flex: 1 !important;
        overflow-y: auto !important;
        height: 100% !important;
        min-height: 0 !important;
    }
    
    .top-nav {
        flex-shrink: 0 !important;
    }
    
    footer {
        flex-shrink: 0 !important;
        position: relative !important; /* Override sticky */
        margin-top: auto !important;
    }

    /* Desktop Collapsed Sidebar Logic */
    body.sidebar-open .sidebar-container {
        margin-left: -260px !important;
    }
    
    /* Hide overlay on desktop entirely */
    .sidebar-overlay {
        display: none !important;
    }
}




/* ========================================= */
/* PREMIUM FLOATING SIDEBAR REDESIGN         */
/* ========================================= */

.sidebar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
}

/* Premium Custom Scrollbar for Sidebar */
.sidebar-wrapper::-webkit-scrollbar {
    width: 5px;
}
.sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-brand {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-section-label {
    margin: 20px 0 8px 16px;
    font-size: 0.65rem;
    color: #64748b !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px !important;
}

.side-link {
    display: flex !important;
    align-items: center;
    gap: 14px !important;
    padding: 12px 16px !important;
    margin: 4px 16px !important;
    color: #94a3b8 !important;
    text-decoration: none;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent;
}

.side-link i { 
    font-size: 1.15rem !important; 
    width: 24px !important; 
    text-align: center; 
    flex-shrink: 0; 
    opacity: 0.7 !important; 
    transition: all 0.3s ease !important; 
}

.side-link:hover { 
    background: rgba(255,255,255,0.04) !important; 
    color: #f8fafc !important; 
    transform: translateX(4px);
}

.side-link:hover i { 
    opacity: 1 !important; 
    transform: scale(1.1); 
}

.side-link.active { 
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%) !important; 
    color: white !important; 
    box-shadow: 0 4px 15px rgba(59,130,246,0.35) !important; 
    font-weight: 700 !important; 
}

.side-link.active i { 
    opacity: 1 !important; 
}

.logout-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
    padding: 12px !important;
    margin: 20px 16px 16px 16px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    text-decoration: none;
    border-radius: 14px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.logout-btn i { 
    font-size: 1.15rem !important; 
    width: 24px !important; 
    text-align: center; 
    transition: transform 0.3s; 
}

.logout-btn:hover { 
    background: #ef4444 !important; 
    color: white !important; 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important; 
}

.logout-btn:hover i { 
    transform: scale(1.1); 
}

.nav-dropdown-menu {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-dropdown-menu .side-link {
    font-size: 0.85rem !important;
    padding: 10px 14px !important;
    margin: 2px 12px 2px 34px !important;
    color: #64748b !important;
    border-radius: 10px !important;
}

.nav-dropdown-menu .side-link:hover {
    background: rgba(255,255,255,0.03) !important;
    color: #3b82f6 !important;
    transform: translateX(3px);
}

.nav-dropdown-menu .side-link.active {
    background: transparent !important;
    color: #3b82f6 !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    position: relative;
}

.nav-dropdown-menu .side-link.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
}
