/* styles.css */
/* src/App.css */
.container.no-header-sidebar .content {
    margin-left: 0; /* Remove any sidebar margin on login page */
  }

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Mulish", sans-serif; /* Using Mulish as requested */
    background-color: #f8fafc;
    color: #1f2937;
    padding-top: 80px;
    padding-left: 260px;
    line-height: 1.6;
    overflow-x: hidden;
  }
  body.login-page {
    padding-left: 0 !important;
    padding-top: 0 !important;
    background-image:url("/assets/images/bg.jpg"); /* Optional: Reset background if needed */
    overflow-x: visible; /* Optional: Reset overflow if needed */
  }
  
  /* Header Styles */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e2e8f0;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Search Styles */
  .search-container {
    position: relative;
  }
  
  .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
  }
  
  .search-input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  /* Theme Toggle */
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
  }
  
  /* Profile Styles */
  .profile-container {
    position: relative;
  }
  
  .profile-pic {
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #333; /* Default color for icon */
  }
  
  .profile-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .profile-dropdown button {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .profile-dropdown button:hover {
    background: #f0f0f0;
  }
  
  /* Dark Theme */
  body.dark-theme {
    background-color: #1a1a1a;
    color: #fff;
  }
  
  body.dark-theme .header {
    background-color: #2c2c2c;
  }
  
  body.dark-theme .profile-pic {
    color: #fff; /* Adjust icon color for dark theme */
  }
  
  body.dark-theme .profile-dropdown {
    background: #333;
    border-color: #444;
  }
  
  body.dark-theme .search-input {
    background: #333;
    color: #fff;
    border-color: #444;
  }
  
  body.dark-theme .profile-dropdown button:hover {
    background: #444;
  }
  
  /* Logo Styles */
  .logo {
    width: 80px;
    height: 65px;
    margin-right: 24px;
    object-fit: contain;
    margin-left: 270px;
    transition: transform 0.3s ease;
  }
  
  .logo:hover {
    transform: scale(1.05);
  }
  
  .header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0;
    flex-grow: 1;
  }
  
  /* Menu Toggle Button */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
  }
  
  .menu-toggle:hover {
    color: #A33CD6;
  }
  
  /* Sidebar Styles */
  .sidebar {
    width: 260px;
    background:  #000033;
    color: #ffffff;
    padding: 24px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0; /* Visible in web view */
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
    z-index: 1100;
  }
  
  /* Sidebar Header */
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    width: 100%;
  }
  
  .sidebar h4 {
    font-size: large;
    font-weight: 700;
    margin: 0 0 32px;
    padding-bottom: 25px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    letter-spacing: -0.01em;
    /* text-transform:uppercase; */
  }
  
  .sidebar ul {
    list-style: none;
    /* list-style-position: outside; */
    padding: 0;
    margin: 0;
    flex-grow: 1;
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
  }
  
  .sidebar li {
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: justify;
  }
  
  .sidebar li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }
  
  .sidebar a {
    display: flex;
    align-items: center; /* Align icon and text */
    color: #ffffff;
    text-decoration: none;
    font-size:16px;
    font-weight: 600;
    transition: color 0.3s ease;
    /* text-transform: uppercase; */
  }
  
  .sidebar a.active {
    color: #e0b8ff;
    font-weight: 600;
  }
  
  .sidebar-icon {
    margin-right: 10px; /* Space between icon and text */
    font-size: 18px; /* Icon size */
    vertical-align: middle; /* Align with text */
    display: inline-block; /* Ensure visibility */
    color: #ffffff; /* Ensure icon color matches text */
  }
  
  /* Close Button */
  .sidebar-close-btn {
    display: none; /* Hidden in web view */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
  }
  
  .sidebar-close-btn:hover {
    color: #e0b8ff;
  }
  
  /* Dashboard Styles */
  .dashboard {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 0;
    box-shadow: none;
    margin-top: 24px;
  }
  
  .dashboard-title {
    /* font-size: 32px; */
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-align: left;
    text-transform: uppercase;
    font-size: x-large;
  }
  
  /* Metric Cards - 3 columns, each col-4 */
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns (33.33% each) */
    gap: 24px;
    /* padding: 16px; */
    /* background: #ffffff; */
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
  }
  
  .metric-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%; /* Ensure it fits the grid cell */
  }
  
  .metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }
  
  .metric-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
  }
  
  .metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
  }
  
  .metric-trend {
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
  }
  
  .metric-trend.down {
    color: #ef4444;
  }
  
  /* Chart and Table Sections - Split into col-4 and col-8 */
  .chart-table-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr; /* col-4 (33.33%) and col-8 (66.66%) */
    gap: 24px;
    margin-top: 24px;
  }
  
  /* Additional Sections - Split into col-8 and col-4 */
  .additional-sections {
    display: grid;
    grid-template-columns: 2fr 1fr; /* col-8 (66.66%) and col-4 (33.33%) */
    gap: 24px;
    margin-top: 24px;
  }
  
  .chart-section,
  .table-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%; /* Ensure it fits the grid cell */
  }
  
  .chart-section:hover,
  .table-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }
  
  .chart-section h3,
  .table-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
  }
  
  .chart-container {
    width: 100%;
    height: 300px;
  }
  
  .payment-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
  }
  
  .payment-table th,
  .payment-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .payment-table th {
    background: #845ADF;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .payment-table td {
    color: #4b5563;
    font-size: 15px;
  }
  
  /* Payments Styles */
  
  .payments {
    padding: 32px;
    max-width: 1280px;
    margin: 0 auto;
    /* background: #ffffff; */
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .payments h2 {
    font-size:x-large;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
    text-transform: uppercase;

  }
  
  .payments table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .payments th,
  .payments td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #b9b9ba; /* Dark Blue - Matches Sidebar */
  }
  
  .payments th {
    background: #C0C0C0; /* Silver - Matches Button */
    color: #000033; /* Dark Blue - Matches Sidebar */
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .payments tr:nth-child(even) {
    background: #F8F8F8; /* Light Gray for contrast */
  }
  
  .payments tr:nth-child(odd) {
    background: #FFFFFF; /* White for clean look */
  }
  
  .payments tr:hover {
    background: #e9e7e7; /* Gray hover effect for smooth transition */
    color: black;
    transition: background 0.2s ease;
  }
  
  
  .payments .add-payment-section {
    width: 100%;
    background: #f8fafc;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .payments h3 {
    font-size:larger;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    /* text-transform: uppercase; */
  }
  
  .payments input,
  .payments button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
  }
  
  .payments input:focus {
    border-color: #845ADF;
    box-shadow: 0 0 0 3px rgba(163, 60, 214, 0.2);
    outline: none;
  }
  
  .payments button {
    width: 200px;
    background: #C0C0C0;
    color: #000033;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
  }
  /* Action Icons */
.action-icon {
    display: inline-block; /* Ensure inline alignment */
    color: #000000; /* Matches your theme */
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: color 0.3s ease;
    font-weight: normal !important;
  }
  
  .action-icon:hover {
    color: #000; /* Darker shade on hover */
  }
  
  .action-icon:last-child {
    margin-right: 0; /* Remove margin from the last icon */
  }
  
  .payments button:hover {
    background: #5c0178;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 1, 120, 0.3);
  }
  
  /* Reminders Styles */
  .reminder {
    padding: 32px;
    max-width: 1280px;
    margin: 0 auto;
    /* background: #ffffff; */
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .reminder h2 {
    font-size:x-large;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
    text-transform: uppercase;
  }
  
  .reminder ul {
    list-style: none;
    padding: 0;
    margin-top: 0;
  }
  
  .reminder li {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
  }
  
  .reminder li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }
  
  .reminder p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    flex: 1;
  }
  
  .reminder .add-reminder-section {
    width: 100%;
    background: #f8fafc;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .reminder h3 {
    font-size:large;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    /* text-transform: uppercase; */
  }
  
  .reminder input,
  .reminder select,
  .reminder button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
  }
  
  .reminder input:focus,
  .reminder select:focus {
    border-color: #845ADF;
    box-shadow: 0 0 0 3px rgba(163, 60, 214, 0.2);
    outline: none;
  }
  
  .reminder select {
    background: #ffffff;
    appearance: none;
    padding-right: 32px;
  }
  
  .reminder button {
    width: 250px;
    background: #C0C0C0;
    color: #000033;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
  }
  
  .reminder button:hover {
    background: #C0C0C0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 1, 120, 0.3);
  }
  
  .reminder li button {
    width: auto;
    padding: 8px 16px;
    margin-left: 12px;
    font-size: 13px;
    background: #A33CD6;
    border-radius: 6px;
  }
  
  .reminder li button:hover {
    background: #5c0178;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    body {
      padding-left: 0;
      padding-top: 70px;
    }
  
    .header {
      padding: 0 20px;
      height: 70px;
      justify-content: space-between;
      align-items: center;
    }
  
    .header-right {
      gap: 0.5rem;
    }
  
    .logo {
      width: 60px;
      height: auto;
      margin-left: 0;
      margin-right: 10px;
    }
  
    .header h1 {
      font-size: 22px;
      flex-grow: 1;
      text-align: left;
    }
  
    .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .sidebar {
      transform: translateX(-100%); /* Hidden by default in mobile */
      width: 240px;
      top: 0;
      padding: 20px;
      height: 100vh;
      transition: transform 0.3s ease;
      z-index: 1200; /* Ensure it stays above other content */
    }
  
    .sidebar.open {
      transform: translateX(0); /* Visible when open */
    }
  
    .sidebar-close-btn {
      display: block !important; /* Force show close button */
      margin-left: auto; /* Push to the right */
      line-height: 1; /* Ensure proper alignment */
      opacity: 1 !important; /* Force visibility */
      visibility: visible !important; /* Force visibility */
      background: none;
      border: none;
      color: #ffffff !important; /* Ensure icon color */
      font-size: 24px !important; /* Ensure size */
      cursor: pointer;
      padding: 5px;
      position: relative; /* Ensure proper stacking */
      z-index: 1300; /* Above sidebar content */
      transition: color 0.3s ease;
    }
  
    .sidebar-close-btn:hover {
      color: #e0b8ff;
    }
  
    .sidebar-icon {
      display: inline-block !important; /* Icons are working, keep as is */
      margin-right: 10px;
      font-size: 18px;
      vertical-align: middle;
      color: #ffffff !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
  
    .sidebar a {
      display: flex !important; /* Keep flex for icons and text */
      align-items: center;
      font-size: 15px;
    }
  
    .dashboard,
    .payments,
    .reminder {
      padding: 20px;
      margin-top: 16px;
      border-radius: 10px;
      margin-left: 0;
      margin-right: 0;
      width: 100%;
    }
  
    .dashboard-title {
      font-size: 24px;
      margin-bottom: 16px;
    }
  
    .dashboard-grid {
      grid-template-columns: 1fr; /* Stack metric cards */
      gap: 16px;
      padding: 12px;
    }
  
    .chart-table-wrapper,
    .additional-sections {
      display: block; /* Stack sections vertically */
    }
  
    .metric-card,
    .chart-section,
    .table-section {
      padding: 16px;
      width: 100%;
      margin-bottom: 16px;
    }
  
    .metric-value {
      font-size: 22px;
    }
  
    .chart-container {
      height: 250px;
    }
  
    .payment-table th,
    .payment-table td {
      padding: 12px 14px;
      font-size: 13px;
    }
  
    .payments .add-payment-section,
    .reminder .add-reminder-section {
      padding: 20px;
    }
  
    .payments h2,
    .reminder h2 {
      font-size: 24px;
    }
  
    .payments h3,
    .reminder h3 {
      font-size: 20px;
    }
  
    .payments input,
    .payments button,
    .reminder input,
    .reminder select,
    .reminder button {
      padding: 10px 14px;
      font-size: 14px;
    }
  
    .payments button,
    .reminder button {
      width: 100%;
      max-width: 180px;
    }
  
    .payments table {
      width: 100%;
      overflow-x: auto;
      display: block;
    }
  
    .payments th,
    .payments td {
      padding: 12px 16px;
      font-size: 14px;
      min-width: 100px;
    }
  
    .reminder li {
      flex-direction: row;
      align-items: flex-start;
      padding: 16px;
    }
  
    .reminder li p {
      font-size: 14px;
      margin-bottom: 12px;
    }
  
    .reminder li button {
      width: 100%;
      margin: 8px 0 0 0;
      padding: 10px;
    }
    
  }
  
  @media (max-width: 480px) {
    body {
      padding-top: 60px;
    }
  
    .header {
      padding: 0 16px;
      height: 60px;
    }
  
    .logo {
      width: 50px;
      margin-right: 8px;
    }
  
    .header h1 {
      font-size: 18px;
    }
  
    .menu-toggle {
      font-size: 24px;
      padding: 6px;
    }
  
    .sidebar {
      width: 200px;
      padding: 16px;
      top: 0;
    }
  
    .sidebar-icon {
      display: inline-block !important; /* Keep icons working */
      font-size: 16px;
      margin-right: 10px;
      vertical-align: middle;
      color: #ffffff !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
  
    .sidebar-close-btn {
      display: block !important; /* Force show close button */
      font-size: 20px; /* Adjust close button size */
      margin-left: auto; /* Push to the right */
      line-height: 0; /* Ensure proper alignment */
      opacity: 1 !important; /* Force visibility */
      visibility: visible !important; /* Force visibility */
      color: #ffffff !important; /* Ensure icon color */
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
      z-index: 1300; /* Above sidebar content */
      transition: color 0.3s ease;
      margin-bottom: 82px;
    }
  
    .sidebar-close-btn:hover {
      color: #e0b8ff;
    }
  
    .sidebar a {
      display: flex !important; /* Keep flex for icons and text */
      font-size: 14px;
    }
  
    .sidebar h2 {
      font-size: 14px;
      margin-bottom: 20px;
    }
    .sidebar h4 {
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 32px;
        padding-bottom: 10px;
        border-bottom: 3px solid rgba(255, 255, 255, 0.15);
        letter-spacing: -0.01em;
      }
  
    .sidebar li {
      padding: 10px 12px;
      margin: 0px 0;
    }
  
    .dashboard,
    .payments,
    .reminder {
      padding: 16px;
      margin-top: 12px;
    }
  
    .dashboard-title {
      font-size: 20px;
      margin-bottom: 12px;
    }
  
    .dashboard-grid {
      gap: 12px;
      padding: 8px;
    }
  
    .metric-card,
    .chart-section,
    .table-section {
      padding: 12px;
    }
  
    .metric-value {
      font-size: 18px;
    }
  
    .metric-trend {
      font-size: 11px;
    }
  
    .chart-container {
      height: 300px;
    }
  
    .payment-table th,
    .payment-table td {
      padding: 10px 12px;
      font-size: 12px;
    }
  
    .payments .add-payment-section,
    .reminder .add-reminder-section {
      padding: 16px;
    }
  
    .payments h2,
    .reminder h2 {
      font-size: 20px;
      margin-bottom: 16px;
    }
  
    .payments h3,
    .reminder h3 {
      font-size: 18px;
      margin-bottom: 12px;
    }
  
    .payments input,
    .payments button,
    .reminder input,
    .reminder select,
    .reminder button {
      padding: 8px 12px;
      font-size: 13px;
      margin-bottom: 10px;
    }
  
    .payments button,
    .reminder button {
      max-width: 180px;
    }
  
    .payments table {
      width: 100%;
      display: block;
      overflow-x: auto;
    }
  
    .payments th,
    .payments td {
      padding: 10px 12px;
      font-size: 12px;
      min-width: 80px;
    }
  
    .reminder li {
      padding: 12px;
    }
  
    .reminder li p {
      font-size: 13px;
      margin-bottom: 10px;
    }
  
    .reminder li button {
      padding: 8px 12px;
      font-size: 12px;
    }
   
  }