@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
:root{
   --secondary-font: 'Montserrat', sans-serif;
   --tertiary-font: 'Poppins', sans-serif;
   --semi-secondary-font: 'Outfit', sans-serif;
   --primary-color: #159A9C; /* #159A9C */
   --secondary-color: #97A3AA;
   --primary-background: #f8fafc;
   --heading-color: #1C1C1E;
   --text-color: #8E8E93;
   --large-font: 48px;
   --medium-font: 20px;
   --x-medium-font: 18px;
   --xl-small-font: 16px;
   --small-font: 14px;
   --x-small-font: 12px;
   --heading-weight: 600;
   --text-weight: 400;
}

/* common css */
*{ margin: 0;  box-sizing: border-box; }
body{ margin-top: 20px;}
.section-heading h3{font-family: var(--semi-secondary-font); font-weight: 600; font-size: 20px;  color: white; background-color: var(--primary-color); padding: 10px 20px; border-radius: 0px 0px 10px 10px; text-transform: uppercase; width:fit-content; }
form{padding: 0px;}
a{text-decoration: none; color: inherit;}
/* i{ padding-right:5px;} */
.col-lg-6{padding-top: 0px;}
.row{ padding-top:0px}
.section-heading{ padding: 0px; margin: 0px 45px;}
.main-page-content{ box-shadow: 0px 0px 26.78px 6px rgba(0, 0, 0, 0.07); border-radius: 20px;}
.add-more-btn{ background-color: #002333; color: #ffffff; padding: 5px 15px; text-transform: uppercase; font-family: var(--secondary-font); font-size: var(--x-small-font); border: none; border-radius: 10px;  font-weight: 400; text-align: center; }
.section-btn { float: right; background: linear-gradient(45deg, #34C759, #34C759); color: white; padding: 7px 28px; border-radius: 12px; font-family: var(--semi-secondary-font); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; border: none; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15); margin-top: 30px; margin-bottom: 40px; }
.section-btn:hover { transform: translateY(-2px); }
.section-add-button{  padding: 5px 20px; margin-top: 10px; border-radius: 10px; border: none; background-color: #ECF8F7; color: #007F6D; font-size: var(--small-font); font-weight: 500;  font-family: var(--semo); text-transform: uppercase; transition: all 0.3s ease;}
.field-add-button{ padding: 0px 10px; border-radius: 10px; border: none; background-color: transparent; color: #007F6D; font-size: var(--x-small-font); font-weight: 500;  font-family: var(--semo); text-transform: uppercase; transition: all 0.3s ease;}
.field-add-button:hover{  color: #093932;}
.form-label { font-family: var(--semi-secondary-font); font-size: 13px; font-weight: 500; color: #4a5568; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.form-control{ border: 1px solid #dee2e6; border-radius: 10px; padding: 4px 40px; }
.form-wrapper { background: #ffffff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03); }
.edit-btn{ background-color: #fef2e5; color: #cd6200; padding: 6px 9px; font-size: 14px; border: none; border-radius: 10px; }
.edit-btn i{padding-right: 0px; }
.delete-btn{ background-color: #fbe7e8; color: #a30d11; padding: 8px 9px; font-size: 14px; border: none; border-radius: 10px; }
.delete-btn i{padding-right: 0px; }
.show-btn{ padding: 5px 20px;  border-radius: 10px; border: none; background-color: #ECF8F7; color: #007F6D; font-size: var(--small-font); font-weight: 500;  font-family: var(--semo); text-transform: uppercase;}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 8px; }
::-webkit-scrollbar-track { background: #ecf8f7; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #61bdbf; border-radius: 4px; transition: all 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-track { background: transparent; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px; }
.app-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

.table-responsive::-webkit-scrollbar {height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: #f1f5f9; }
.table-responsive::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* Form input with icons */
.input-group .form-control {  border-radius: 10px !important; }
.input-group { position: relative; margin-bottom: 4px;}
.input-group .form-control,
.input-group .form-select { border-radius: 10px !important; padding: 4px 40px 4px 40px; background: var(--primary-background); border: 1px solid #e2e8f0; border-radius: 12px;padding: 12px 16px 12px 44px; font-size: 14px; font-family: var(--tertiary-font); color: #2d3748; transition: all 0.2s ease; }
.input-group-text { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: #718096; font-size: 16px; z-index: 4; }
textarea.form-control { min-height: 50px; resize: vertical; }
.text-danger { color: #e53e3e; font-size: 12px; margin-top: 4px; font-family: var(--tertiary-font); }
.input-group .form-control:focus,
.input-group .form-select:focus { z-index: 3; background: #fff; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1); }

/* Form Sections */
.form-section { margin-bottom: 32px; border-bottom: 1px dashed #e2e8f0; }
.form-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* Dashboard */
.dashboard-wrapper { padding: 24px; border-radius: 16px; background: var(--primary-background); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 24px; }
.stat-card { position: relative; background: white; border-radius: 16px; padding: 24px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.stat-card.primary { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.stat-card.success { background: linear-gradient(135deg, #10b981, #34d399); }
.stat-card.warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.stat-card.danger { background: linear-gradient(135deg, #ef4444, #f87171); }
.stat-card-content { position: relative; z-index: 1; color: white; }
.stat-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stat-card-header h4 { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; opacity: 0.9; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-value { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.stat-comparison { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.percentage { font-weight: 600; }
.percentage.positive { color: #a7f3d0; }
.percentage.negative { color: #fecaca; }
.period { opacity: 0.7; }
.stat-card-progress { position: absolute; bottom: 0; left: 0; height: 4px; background: rgba(255,255,255,0.3); border-radius: 0 2px 2px 0; }

/* Dashboard Grid Layout */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dashboard-card { background: white; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; }
.dashboard-card .card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.dashboard-card .card-header h3 { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0; }
.view-all { font-size: 14px; color: var(--primary-color); text-decoration: none; display: flex; align-items: center; gap: 4px; }

/* Projects Card */
.projects-list { padding: 16px; }
.project-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 12px; transition: all 0.2s ease; }
.project-item:hover { background: var(--primary-background); }
.project-info { display: flex; align-items: center; gap: 16px; }
.project-avatar { width: 40px; height: 40px; background: var(--primary-color); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.project-details h4 { font-size: 15px; font-weight: 500; color: #1e293b; margin: 0 0 4px; }
.client-name { font-size: 13px; color: #64748b; }

/* Chart Card */
.chart-card { grid-column: span 2; }
.chart-actions { display: flex; gap: 8px; }
.service-table { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 16px; }
.service-header { display: grid; grid-template-columns: 3fr 5fr 3fr 80px; gap: 16px; padding: 16px; background: var(--primary-background); border-radius: 12px 12px 0 0; font-family: var(--semi-secondary-font); font-size: 14px; font-weight: 600; color: #4a5568; }
.service-row { display: grid; grid-template-columns: 3fr 5fr 3fr 80px; gap: 16px; padding: 16px; border-bottom: 1px solid #e2e8f0; align-items: center; }
.service-col .form-control,
.service-col .form-select { padding: 12px; height: auto; }
.service-col .input-group { flex: 1; }
.service-col .input-group .form-control { text-align: right; font-weight: 500; font-size: 15px; }

/* member */
.member-wrapper  { border: 1px dashed #d0d0d0; border-radius: 10px; padding: 40px 0px; }
.member-wrapper table {margin:auto ;table-layout: auto; border-collapse: collapse;}
.member-wrapper tbody tr{  box-shadow: 0px 0px 6px 1px rgba(93, 93, 93, 0.1); border-radius: 10px; margin-bottom: 20px;}
.member-wrapper td {  padding: 8px 0px }
.member-input {  border: none;  border-radius: 0px; text-align: center}
.member-input::placeholder{color: #808080; font-weight: 300; font-family: var(--tertiary-font); font-size: var(--small-font);}
.member-input:focus, .form-select:focus { outline: none; border-color: var(--primary-color); }
.member-wrapper thead tr{ border-radius: 10px; margin-bottom: 15px; padding: 10px 0px; background-color: #DEEFE7; color: #3f8283;  font-family: var(--secondary-font); font-size: var(--small-font); font-weight: 400 !important;}

/* Animations */
.box { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.box:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.section-add-button { position: relative; overflow: hidden; transition: all 0.2s ease; }
.section-add-button:hover { transform: translateY(-2px); }
.section-add-button:active { transform: translateY(1px); }
.project-row { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.project-row:hover { transform: translateX(8px); background: linear-gradient(90deg, rgba(236,248,247,0.3) 0%, transparent 100%); }
.sidebar-navbar li { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-navbar li:hover { padding-left: 40px; }
.section-add-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Table */
.table { width: 100%; border-spacing: 0 15px; border-collapse: separate; background: transparent; }
.table-head th { background: #f8f9fa; font-family: var(--semi-secondary-font); font-size: var(--small-font); font-weight: 500 !important; color: #6c757d; padding: 16px 20px; text-transform: uppercase; letter-spacing: 0.5px; border: none; border-bottom: 2px solid #e9ecef; }
.table tbody tr { background: white; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); transition: all 0.2s ease; margin-bottom: 12px; }
.table tbody tr:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.05); background: linear-gradient(to right, #ffffff, #f8f9fa); }
.table tbody td { padding: 20px; vertical-align: middle; border: none; color: #495057; font-family: var(--tertiary-font); font-size: var(--small-font); }

/* Status badges */
.status-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block;}
.status-active { background: #e6f7ed; color: #1f7b4d; }
.status-active::before { background: #1f7b4d; }
.status-pending { background: #fff4e6; color: #b75e09; }
.status-pending::before { background: #b75e09; }

/* Action buttons */
.action-buttons { display: flex; gap: 8px; opacity: 0.8; transition: opacity 0.2s ease; }
.table tr:hover .action-buttons { opacity: 1; }
.btn-action { padding: 8px; border-radius: 8px; border: none; background: transparent; transition: all 0.2s ease; }
.btn-edit { color: #4361ee; }
.btn-edit:hover { background: #eceefb; }
.btn-delete { color: #ef476f; }
.btn-delete:hover { background: #fdeef1; }

/* Empty state */
.table-empty-state { text-align: center; padding: 40px 20px; color: #6c757d; }

/* Layout */
.app-layout { margin: 0; padding: 0; min-height: 100vh; background: #f1f5f9; overflow-x: hidden; }
.app-container { display: flex; min-height: 100vh; }
.app-sidebar { width: 280px; background: #fff; border-right: 1px solid #e2e8f0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; transition: all 0.3s ease; }
.sidebar-header { padding: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e8f0; }
.sidebar-logo { height: 40px; width: auto; }
.sidebar-close { display: none; background: none; border: none; color: #64748b; font-size: 24px; cursor: pointer; }
.sidebar-nav { padding: 24px 0; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin: 4px 16px; }
.sidebar-nav a { display: flex; align-items: center; padding: 12px 16px; color: #64748b; border-radius: 8px; transition: all 0.2s ease; }
.sidebar-nav a:hover, .sidebar-nav li.active a { background: var(--primary-background); color: var(--primary-color); }
.sidebar-nav i { font-size: 20px; margin-right: 12px; }

/* Main Content Area */
.app-main { flex: 1; margin-left: 280px; min-height: 100vh; transition: all 0.3s ease; }

/* Header */
.app-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 24px; position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; align-items: center; justify-content: space-between; }
.header-title h1 { font-size: 24px; font-weight: 600; color: #1e293b; margin: 0; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-trigger { display: flex; align-items: center; gap: 12px; padding: 8px; border: none; background: none; cursor: pointer; }
.user-name { color: #1e293b; font-weight: 500; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-dropdown { position: absolute; top: 100%; right: 0; width: 200px; background: #fff; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); margin-top: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; }
.user-menu.active .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; padding: 12px 16px; color: #64748b; transition: all 0.2s ease; }
.dropdown-item:hover { background: var(--primary-background); color: var(--primary-color); }
.dropdown-item i { margin-right: 12px; font-size: 18px; }

/* Content Area */
.app-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* Login */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%); display: flex; align-items: center; justify-content: center; padding: 20px; margin: 0; }
.login-container { width: 100%; max-width: 420px; }
.login-card { background: #ffffff; border-radius: 24px; padding: 40px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05); }
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { height: 48px; margin-bottom: 24px; }
.login-header h1 { font-family: var(--semi-secondary-font); font-size: 24px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.login-header p { color: #64748b; font-size: 14px; font-family: var(--tertiary-font); }
.login-form .form-group { margin-bottom: 24px; }
.login-form label { display: block; font-family: var(--semi-secondary-font); font-size: 14px; font-weight: 500; color: #4a5568; margin-bottom: 8px; }
.login-form .input-group { position: relative; background: var(--primary-background); border-radius: 12px; transition: all 0.2s ease; }
.login-form .input-group:focus-within { background: #ffffff; box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1); }
.login-form .input-group-text { background: transparent; border: none; color: #64748b; padding-left: 16px; }
.login-form .form-control { border: 1px solid #e2e8f0; padding: 12px 16px 12px 44px; font-size: 14px; background: transparent; transition: all 0.2s ease; } 
.login-form .form-control:focus { border-color: #4361ee; box-shadow: none; }
.password-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.password-toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #64748b; cursor: pointer; padding: 0; font-size: 16px; }
.custom-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #4a5568; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { height: 18px; width: 18px; background-color: var(--primary-background); border: 2px solid #e2e8f0; border-radius: 4px; position: relative; transition: all 0.2s ease; }
.custom-checkbox input:checked ~ .checkmark { background-color: #4361ee; border-color: #4361ee; }
.checkmark:after { content: ''; position: absolute; display: none; left: 5px; top: 2px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.login-button { width: 100%; padding: 12px; background: linear-gradient(45deg, var(--primary-color), #37b2b4); color: white; border: none; border-radius: 12px; font-family: var(--semi-secondary-font); font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15); }
.login-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(67, 97, 238, 0.25); }

/* Modal */
.modal-content { border: none; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.modal-header { background: var(--primary-background); border-bottom: 1px solid #e2e8f0; border-radius: 16px 16px 0 0; padding: 20px; }
.modal-title { font-family: var(--semi-secondary-font); font-size: 18px; font-weight: 600; color: #1e293b; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid #e2e8f0; padding: 16px 24px; }
.modal .btn { padding: 8px 16px; font-family: var(--semi-secondary-font); font-size: 14px; font-weight: 500; border-radius: 8px; transition: all 0.2s ease; }
.modal .btn-primary { background: linear-gradient(45deg, var(--primary-color), #37b2b4); border: none; box-shadow: 0 4px 12px rgba(21, 154, 156, 0.15); }
.modal .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(21, 154, 156, 0.25); }
.modal .btn-secondary { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
.modal .btn-secondary:hover { background: #e2e8f0; color: #1e293b; }

/* Notification Toast */
.notification-toast { position: fixed; top: 20px; right: 20px; min-width: 300px; z-index: 1050; border: none; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); font-family: var(--semi-secondary-font); }

/* Form Responsive */
@media (max-width: 768px) {
  .form-wrapper { padding: 20px; }
  .input-group .form-control,
  .input-group .form-select { padding: 10px 12px 10px 40px; font-size: 13px; }
  .input-group-text { width: 40px; }
  .section-btn { width: 100%; padding: 12px; }
}

/* Login Responsive */
@media (max-width: 480px) {
    .login-card { padding: 24px; border-radius: 16px; }
    .login-logo { height: 40px; margin-bottom: 20px; }
    .login-header h1 { font-size: 20px; }
    .login-header p { font-size: 13px; }
    .login-form .form-control { padding: 10px 16px 10px 40px; }
    .login-button { padding: 10px; font-size: 14px; }
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dashboard-wrapper { padding: 16px; }
  .stat-cards { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 20px; }
  .stat-value { font-size: 28px; }
  .stat-icon { width: 40px; height: 40px; font-size: 20px; }
}

/* Expenses Responsive */
@media (max-width: 768px) {
  .expense-header { display: none; }
  .expense-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; background: #fff; border-radius: 8px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
  .expense-col { position: relative; }
  .expense-col::before { content: attr(data-label); font-family: var(--semi-secondary-font); font-size: 12px; font-weight: 500; color: #4a5568; margin-bottom: 4px; display: block; }
  .summary-section { padding: 16px; }
  .summary-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .summary-value { font-size: 24px; }
}

/* Responsive table */
@media (max-width: 768px) {
  .table thead { display: none; }
  .table tbody tr { display: block; margin-bottom: 16px; padding: 12px; background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
  .table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px; border-bottom: 1px solid #f1f3f5; }
  .table tbody td:last-child { border-bottom: none; }
  .table tbody td::before { content: attr(data-label); font-weight: 500; color: #495057; font-family: var(--semi-secondary-font); font-size: var(--small-font); text-transform: uppercase; min-width: 40%; padding-right: 1rem; }
  .action-buttons { justify-content: flex-end; width: 100%; }
  .status-badge { margin-left: auto; }
  .section-heading{  margin: 0px 25px;}
  .section-heading h3{ font-size: 16px;  padding: 10px 10px; font-weight: 500; }
  .section-add-button{  padding: 5px 20px; margin-top: 5px; font-size: 12px;}
  .section-btn{  padding: 5px 15px;  margin-top: 25px; margin-bottom: 40px ; font-weight: 500; font-size: var(--small-font);}
}

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); }
  .app-sidebar.active { transform: translateX(0); }
  .sidebar-close { display: block; }
  .app-main { margin-left: 0; }
  .sidebar-toggle { display: block; position: fixed; top: 20px; left: 20px; z-index: 1001; background: #fff; border: none; padding: 8px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 1); color: #64748b; }
}

@media (max-width: 575.98px) {
  .app-header { padding: 12px 16px; }
  .header-title h1 { font-size: 20px; }
  .app-content { padding: 16px; }
}

/* show page */
.page { background: var(--primary-background); min-height: 100vh; }
.content { padding: 24px 0; }
.card { background: white; border-radius: 12px; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 24px; }
.card-header { background: none; border-bottom: 1px solid #e2e8f0; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0; }
.header-card { padding: 24px; margin-bottom: 24px; }
.main-info { display: flex; align-items: center; gap: 16px; }
.header-link {font-size: 14px;}
.avatar { width: 56px; height: 56px; background: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; font-weight: 600; }
.info-block h1 { font-size: 24px; font-weight: 600; color: #1e293b; margin: 0 0 4px; }
.meta { display: flex; gap: 16px; color: #64748b; font-size: 14px; }
.metrics-summary { display: flex; justify-content: flex-end; gap: 24px; }
.metric-item { text-align: center; }
.metric-item .label { font-size: 13px; color: #64748b; margin-bottom: 4px; display: block; }
.metric-item .value { font-size: 24px; font-weight: 600; color: var(--primary-color); }
.item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e2e8f0; }
.item:last-child { border-bottom: none; }
.item-info { display: flex; gap: 24px; align-items: center; }
.date { color: #64748b; font-size: 14px; }
.amounts { display: flex; flex-direction: column; gap: 4px; }
.budget { font-size: 18px; font-weight: 600; color: #1e293b; }
.details { display: flex; gap: 16px; font-size: 13px; color: #64748b; }
.info-list { display: flex; flex-direction: column;  }
.info-item { display: flex; gap: 12px; align-items: center;  }
.info-item i { color: #64748b; font-size: 20px; width: 20px; }
.info-content span { color: #1e293b; font-weight: 500; }


/* show client */
.client-profile { padding: 24px; background: #fff; border-radius: 16px; }
.profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.profile-info { display: flex; align-items: center; gap: 20px; }
.client-avatar { width: 64px; height: 64px; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; font-weight: 600; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 32px; }
.metric-card { background: var(--primary-background); padding: 24px; border-radius: 12px; text-align: center; }
.metric-value { font-size: 32px; font-weight: 600; color: var(--primary-color); margin-bottom: 8px; }
.info-grid { display: grid;  gap: 24px; margin-bottom: 32px; }
.transactions-section { background: var(--primary-background); border-radius: 12px; padding: 24px; }
.section-tabs { display: flex; gap: 16px; margin-bottom: 24px; }
.tab-btn { padding: 8px 16px; border: none; background: none; color: #64748b; font-weight: 500; cursor: pointer; }
.tab-btn.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); } 
.transaction-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: white; border-radius: 8px; margin-bottom: 12px; }
.transaction-meta { display: flex; gap: 16px; align-items: center; }
.transaction-main .project{ font-size: 18px; font-weight: 500; }
.transaction-main .service{ font-weight: 500;  }
.expense-group { background: white; border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.expense-group-header { background: #f1f5f9; padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; }
.expense-group-header h4 { margin: 0; font-size: 16px; font-weight: 600; color: #1e293b; }
.expense-group-total { font-size: 15px; font-weight: 600; color: var(--primary-color); }
.expense-group .transaction-item { margin-bottom: 0; border-bottom: 1px solid #f1f5f9; }
.expense-group .transaction-item:last-child { border-bottom: none; }
.info-card { background: var(--primary-background); border-radius: 12px; padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.info-content{ display: flex; gap: 24px; }
.info-item{ background-color: #ffffff; padding: 7px 20px; border-radius: 10px;}
.info-item i { color: #363a41; font-size: 15px; }

/* Dashboard Stats */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: 16px; padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: all 0.3s ease; } 
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary-color);background: #ecf8f7; }
.stat-content { flex: 1; }
.stat-title { font-size: 13px; font-weight: 500; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 600; color: #1e293b; margin: 0 0 8px; }

/* Chart Periods */
.chart-actions { display: flex; gap: 8px; }
.chart-period { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 500; color: #64748b; background: var(--primary-background); cursor: pointer; transition: all 0.2s ease; }
.chart-period:hover { background: var(--primary-background); border-color: #cbd5e1; }
.chart-period.active { background: #ecf8f7; border-color: var(--primary-color); color: var(--primary-color); }

/* Profile Page */
.profile-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #e2e8f0; }
.profile-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.profile-section h4 { font-family: var(--semi-secondary-font); font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 24px; }

@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr;}
    .profile-header { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* expenses */
.add-service-row-btn{ width: 100%; padding: 9px; background: #ecf8f7; border: 1px dashed var(--primary-color); border-radius: 8px; color: var(--primary-color); font-family: var(--semi-secondary-font); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease;}
.add-expense-row-btn{ width: 100%; padding: 9px; background: #ecf8f7; border: 1px dashed var(--primary-color); border-radius: 8px; color: var(--primary-color); font-family: var(--semi-secondary-font); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease;}
.expense-row { display: grid; grid-template-columns: 5fr 3fr  80px; gap: 16px; padding: 16px; border-bottom: 1px solid #e2e8f0; align-items: center; }
.expense-header { display: grid; grid-template-columns: 5fr 3fr  80px; gap: 16px; padding: 16px; background: var(--primary-background); border-radius: 12px 12px 0 0; font-family: var(--semi-secondary-font); font-size: 14px; font-weight: 600; color: #4a5568; }
.expense-col .form-control,
.expense-col .form-select { padding: 12px; height: auto; }
.expense-col .input-group { flex: 1; }
.expense-col .input-group .form-control { text-align: right; font-weight: 500; font-size: 15px; }
.expense-table { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 16px; }

/* Summary Section */
.summary-section { display: flex; gap: 24px; margin-top: 32px; padding: 24px; background: #ffffff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.summary-item { flex: 1; padding: 20px; background: linear-gradient(135deg, var(--primary-background) 0%, #f1f5f9 100%); border-radius: 12px; text-align: center; transition: all 0.3s ease; }
.summary-label { font-family: var(--semi-secondary-font); font-size: 14px; font-weight: 500; color: #64748b; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-value { font-family: var(--semi-secondary-font); font-size: 28px; font-weight: 600; color: #1e293b; }
.summary-value.positive { color: #10b981; }
.summary-value.negative { color: #ef4444; }

@media (max-width: 768px) {
    .summary-section { flex-direction: column; gap: 16px; padding: 16px; }
    .summary-item { padding: 16px; }
    .summary-value { font-size: 24px; }
}


/* Recurring */
.recurring-card-header{ display: flex; justify-content: space-between;  }
.recurring-card-body{ margin-top: 10px;}
.recurring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 24px; }
.recurring-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.3s ease; border: 1px solid #e2e8f0; position: relative; overflow: hidden;}
.recurring-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.payment-badge { display: flex;  align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.payment-badge.fixed { background: #dbeafe; color: #1d4ed8; }
.payment-badge.variable { background: #ede9fe; color: #6d28d9; }
.recurring-card-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.action-btn {  display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 13px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.action-btn.collect { background: #ecfdf5; color: #059669; }
.action-btn.collect:hover { background: #d1fae5; }
.action-btn.delete { background: #fef2f2; color: #dc2626; }
.action-btn.delete:hover { background: #fee2e2; }
.info-row { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9;}
.info-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.info-row .label { font-size: 13px; color: #64748b; font-weight: 500; }
.info-row .value { font-size: 15px; color: #1e293b; font-weight: 600; }
.action-btn.history {background: #f0f9ff; color: #0369a1; }
.action-btn.history:hover { background: #e0f2fe; }
.status-badge.status-pending { background: #fff4e6; color: #b75e09; }
.status-badge.status-paid { background: #ecfdf5; color: #059669; }
.status-badge.status-overdue { background: #fef2f2; color: #dc2626; }
.deleted-transaction { background-color: #f8f9fa; opacity: 0.7; }
.deleted-transaction td { text-decoration: line-through; }
.deleted-transaction td:last-child { text-decoration: none; }
.deleted-reason { color: #dc3545; font-size: 13px; display: flex; align-items: center; gap: 4px; cursor: help; }
.deleted-reason i { font-size: 16px; }
#deleteReasonModal .form-control { resize: vertical; min-height: 100px; }

@media (max-width: 768px) {
    .recurring-grid { grid-template-columns: 1fr; }
    .recurring-card { padding: 20px; }
}

/* Add Recurring */
.section-title { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 16px; }
.payment-type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.type-card { cursor: pointer; position: relative; }
.type-radio { position: absolute; opacity: 0; }
.card-content { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 24px; text-align: center; transition: all 0.3s ease; }
.type-radio:checked+.card-content { border-color: var(--primary-color); background: #ecf8f7; }
.icon-circle { width: 48px; height: 48px; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.icon-circle i { color: white; font-size: 24px; }
.card-content h5 { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 8px; }
.card-content p { font-size: 14px; color: #64748b; margin: 0; }
.frequency-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.frequency-option { cursor: pointer; }
.frequency-option input { position: absolute; opacity: 0; }
.option-content { display: flex; align-items: center; gap: 8px; padding: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; transition: all 0.3s ease; }
.frequency-option input:checked+.option-content { background: #ecf8f7; border-color: var(--primary-color); color: var(--primary-color); }
.form-group { margin-bottom: 20px; }

/* Responsive Design */
@media (max-width: 768px) {
    .payment-type-cards { grid-template-columns: 1fr; }
    .frequency-options { grid-template-columns: 1fr; }
}

/* Analytics */

.analytics-dashboard { padding: 24px; background: #f8fafc; }
.analytics-header { margin-bottom: 32px; }
.analytics-header h1 { font-size: 32px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.analytics-header .text-muted { color: #64748b; font-size: 16px; }
.analytics-container { display: grid; gap: 24px; max-width: 1400px; margin: 0 auto; }
.analytics-card { background: #ffffff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); padding: 24px; transition: all 0.3s ease; }
.analytics-card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); transform: translateY(-2px); }

/* Project Selection Form */
.analytics-form { display: flex; flex-direction: column; gap: 32px; }
.form-section { margin-bottom: 24px; }
.section-header { display: flex; gap: 16px; margin-bottom: 24px; }
.section-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #059669; font-size: 20px;}
.section-title h3 { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.section-title p { color: #64748b; font-size: 14px; margin-bottom: 0px; }
.custom-select-wrapper { position: relative; }
.custom-select { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 15px; color: #1e293b; background: #ffffff; transition: all 0.2s ease; cursor: pointer; appearance: none; }
.custom-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Period Selection */
.period-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.period-card { background: #f8fafc; border-radius: 12px; padding: 20px; transition: all 0.2s ease; }
.period-card:hover { background: #f1f5f9; }
.period-header { margin-bottom: 16px; }
.period-label { font-size: 15px; font-weight: 600; color: #475569; }
.date-inputs { display: grid; gap: 16px; }
.input-group { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; z-index: 1; }
.form-control { width: 100%; padding: 12px 12px 12px 40px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #1e293b; background: #ffffff; transition: all 0.2s ease; }
.form-control:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.input-group .form-control:focus + label,
.input-group .form-control:not(:placeholder-shown) + label { transform: translateY(-130%) scale(0.85); left: 12px; color: #3b82f6; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 32px; }
.btn-compare { display: flex; align-items: center; gap: 8px; padding: 10px 22px; background: linear-gradient(135deg, var(--primary-color) 0%, #37b2b4 100%); border: none; border-radius: 12px; color: white; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.btn-compare:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(21, 154, 156, 0.2); }

/* Comparison Results */
.comparison-results-wrapper { display: grid; gap: 24px; }
.comparison-overview { padding: 32px; }
.overview-header { margin-bottom: 32px; }
.overview-header h2 { font-size: 24px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.metrics-grid-analytics { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.metric-card { display: flex; gap: 20px; padding: 24px; border-radius: 12px; background: #f8fafc; transition: all 0.3s ease; }
.metric-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.metric-card.revenue { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.metric-card.expenses { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.metric-card.profit { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.metric-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255, 255, 255, 0.9); }
.revenue .metric-icon { color: #059669; }
.expenses .metric-icon { color: #3b82f6; }
.profit .metric-icon { color: #d97706; }
.metric-info { flex: 1; }
.metric-info h4 { text-align: right; font-size: 15px; font-weight: 600; color: #475569; margin-bottom: 16px; }
.metric-values { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.period-value { display: flex; justify-content: space-between; align-items: center; }
.period-value .label { font-size: 13px; color: #64748b; }
.period-value .value { font-size: 15px; font-weight: 600; color: #1e293b; }
.metric-change { float: right; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 100px; font-size: 13px; font-weight: 500; }
.metric-change.positive { background: #ecfdf5; color: #059669; }
.metric-change.negative { background: #fef2f2; color: #dc2626; }

/* Expense Breakdown */
.expense-breakdown .card-header-analytics { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-header-analytics h3 { font-size: 18px; font-weight: 600; color: #1e293b; }
.period-toggle { display: flex; gap: 8px; }
.period-btn { padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; color: #64748b; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.period-btn:hover { background: #f8fafc; }
.period-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }
.expense-categories { position: relative; }
.category-list { display: none; animation: fadeIn 0.3s ease; }
.category-list.active { display: block; }
.category-item { margin-bottom: 16px; }
.category-info { display: flex; gap: 7px; margin-bottom: 8px; }
.category-name { font-size: 14px; color: #475569; }
.category-amount { font-size: 14px; font-weight: 500; color: #1e293b; }
.category-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color) 0%, #37b2b4 100%); border-radius: 4px; transition: width 0.3s ease; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.comparison-table th { padding: 16px; background: #f8fafc; color: #475569; font-weight: 500; text-align: left; border-bottom: 1px solid #e2e8f0; }
.comparison-table td { padding: 16px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }
.comparison-table tr:last-child td { border-bottom: none; }
.change-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 100px; font-size: 13px; font-weight: 500; }
.change-badge.positive { background: #ecfdf5; color: #059669; }
.change-badge.negative { background: #fef2f2; color: #dc2626; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .analytics-dashboard { padding: 16px; }
    .analytics-header h1 { font-size: 24px; }
    .period-selection { grid-template-columns: 1fr; }
    .metrics-grid-analytics { grid-template-columns: 1fr; }
    .metric-card { padding: 20px; }
    .comparison-table { display: block; overflow-x: auto; white-space: nowrap; }
}


