:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e1e4f0;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2E368E;      
  --primary-dark: #22286c;  
  --accent: #00A94C;       
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-align: right;
}

.login-body {
  background: #eaedf1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 620px;
  padding: 60px 40px 80px;
  background: #f7f8fb;
  box-shadow: 0 0 0 1px #d0d4db;
}

.login-logo-box {
  width: 140px;
  height: 140px;
  margin: 0 auto 60px;
  border: 1px solid #c6cad1;
  background: #e7e9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.login-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.login-form {
  max-width: 420px;
  margin: 0 auto;
}

.field-line {
  margin-bottom: 32px;
}

.field-line label {

  color: #7a7f87;
}
.add-client-page .field-line label {

  color: #000;
  font-weight: bold;
}
.field-line label i {
  font-size: 14px;
}

.field-line .form-control {
  border: none;
  border-bottom: 1px solid #cfd3d8;
  border-radius: 0;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  text-align: right;
}

.field-line .form-control:focus {
  box-shadow: none;
  border-bottom-color: #6b7280;
}

.login-btn {
  margin-top: 10px;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}

.login-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.add-client-panel .field-line .form-control {background: #ffffff;border-radius: 0;border: 1px solid #cfd3d8;padding-right: 8px;padding-left: 8px;border-radius: 8px;}

.add-client-panel .field-line .form-control:focus {border-color: #151a4a;box-shadow: none;}

.customers-body {
  background: #f5f6f8;
}

.customers-page {
  padding: 40px 40px 60px;
  background: #fff;
}

.customers-page .form-control{
  border-radius: 10px !important;
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
  -ms-border-radius: 10px !important;
  -o-border-radius: 10px !important;
}

.customers-header-row {
  margin-bottom: 8px;
}

.customers-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.customers-breadcrumb {
  font-size: 19px;
  color: #000;
  font-weight: bold;
}

.customers-breadcrumb a {
  color: #2e368e;
  text-decoration: none;
}

.customers-breadcrumb a:hover {
  text-decoration: underline;
}

.customers-breadcrumb .active {
  font-weight: 700;
  color: #00a94c;
}

.customers-search-wrapper {
  max-width: 260px;
 
}

.customers-search-input {
  height: 36px;
  border-radius: 0;
  border: 1px solid #2e368e6e;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}

.customers-add-btn {
  margin: 8px 0 12px;
  border-radius: 0;
  border: 1px solid #00a94c;
  background: #00a94c;
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  color: #ffffff;
  border-radius: 10px;
}

.customers-add-btn:hover {
background: var(--primary-dark);
color: #fff;
border-color: var(--primary-dark);
}

.customers-toolbar-row {
  margin-bottom: 50px;
}

.request-filter-label {
  font-size: 13px;
  color: #6b7280;
  margin-left: 8px;
  white-space: nowrap;
}

.request-filter-group .customers-search-wrapper {
  max-width: none;
}

.filter-search-btn {
  background: var(--primary);
  color: #ffffff;
  border-radius:8px;
  border: 1px solid var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  -webkit-border-radius:8px;
  -moz-border-radius:8px;
  -ms-border-radius:8px;
  -o-border-radius:8px;
}

.filter-search-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.customers-table-wrapper {
  border: 1px solid #2e368e6e;
  background: #fff;
  border-radius: 12px;
  overflow: hidden; 
  border-top: unset;
}

.customers-table thead th {
  border-bottom: 1px solid #151a4a;
  /* border-left: 1px solid #151a4a; */
  font-size: 14px;
  /* font-weight: 600; */
  text-align: center;
  background: #2e368e; 
  color: #fff;
}

.customers-table tbody td {
  border-top: 1px solid #2e368e6e;
  /* border-left: 1px solid #151a4a; */
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}

.request-status-select {
  height: 32px;
  padding: 2px 8px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid #ced4da;
  background-color: #ffffff;
}

.customers-table tbody tr:last-child td {
  border-bottom: 1px solid #e5e7eb;
}

.customers-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.icon-btn {
  border: none;
  background: #e5edff;
  padding: 6px;
  cursor: pointer;
  color: #111827;
  border-radius: 999px; 
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn i {
  font-size: 18px;
}

.icon-btn:hover {
  background: #00a94c26;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
}

.icon-btn.toggle {
  width: 40px;
  height: 22px;
  border-radius: 18px;
  border: 1px solid #111827;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0px 4px 1px;
}

.icon-btn.toggle span {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #111827;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-btn.toggle.active {
  justify-content: flex-end;
background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.icon-btn.toggle.active span {
background: #ffffff;
}

.customers-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 26px;
}

.page-btn {
  min-width: 34px;
  height: 32px;
  border-radius: 0;
  border: 1px solid var(--primary);
  background: #ffffff;
  font-size: 13px;
  cursor: pointer;
  color: var(--primary);
  border-radius: 6px;
  margin-right: 10px;
}

.page-btn.active {background: #2e368e;color: #ffffff;}

.add-client-page {
  background: #ffffff;
}

.add-client-panels-row {
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
}

.add-client-panel {
  background: #2e368e1f;
  padding: 40px 40px 32px;
  /* min-height: 260px; */
  border-radius: 20px;
}

.add-client-panel-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.add-client-actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}

.add-client-primary,
.add-client-secondary {
  min-width: 160px;
  border-radius: 0;
  border: 1px solid #f8f9fa;
  background: #ced4da;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 8px;
}

.add-client-primary {
  background: var(--accent);
  color: #ffffff;
}

.add-client-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.add-client-secondary:hover {
  background: #e5e7eb;
}

  .detail-field {
    margin: 0;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    color: #111827;
  }

  .request-details-panel {
    background: #2e368e1a;
    padding: 30px 40px 32px;
    border-radius: 20px;
  }

  .request-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .request-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .request-row > label {
    width: 100px;
    font-weight: 600;
    margin-bottom: 0;
  }

  .request-row .detail-field {
    flex: 1;
  }

  .request-row.two-cols {
    justify-content: space-between;
  }

  .request-row.two-cols .half {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  .request-row.time-row .date-field {
    flex: 1;
    margin-left: 16px;
  }

  .request-time-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .request-time-group .time-label {
    font-size: 13px;
  }

  .request-time-group .time-field {
    min-width: 90px;
  }

  .property-section {
    /* background: #00a94c; */
    /* padding: 0; */
  }

  .property-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    background: #2e368e;
    color: #fff;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
  }

  .property-section-body {
    background: #2e368e12;
    padding: 24px 24px 20px;
  }

  .section-title {
    font-weight: 700;
    font-size: 16px;
  }

  .section-toggle-icon i {
    font-size: 14px;
  }

  .nice-file-input .custom-file-input {
    cursor: pointer;
  }

  .nice-file-input .custom-file-label {
    border-radius: 6px;
    border: 1px solid #cfd3d8;
    background-color: #ffffff;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10%;
  }

  .nice-file-input .custom-file-label::after {
    content: "Ø§Ø®ØªØ± Ø§Ù„Ù…Ù„Ù";
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 0 6px 6px 0;
    flex: 0 0 auto;
  }

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.main-area {
  flex: 1;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

    /* Top Navbar */
/* Header */
.topbar {
  background: var(--primary);
  height: 73px;
  width: 100%;
  color: #ffffff;
  padding: 10px;
}

.topbar-inner {
  max-width: 100%;
  height: 100%;
  padding: 0px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-left i {
  font-size: 25px;
  cursor: pointer;
  color: #e0f2fe;
}

.top-center {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.top-center i {
  margin-right: 6px;
  color: #e0f2fe;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.top-arrow-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #999;
  background: #e1e3e6;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.top-arrow-btn i {
  font-size: 14px;
}

.logo-box {
  padding: 4px 14px;
 
  justify-content: center;
}

.header-logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
}
  
/* Sidebar */
.sidebar {
  background: #151a4a; 
  min-height: 100vh;
  padding-top: 20px;
}

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

.sidebar ul li {
  padding: 12px 20px;
  /* display: flex;
  align-items: center; */
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar ul li:hover {
  transform: translateX(5px);
  -webkit-transform: translateX(5px);
  -moz-transform: translateX(5px);
  -ms-transform: translateX(5px);
  -o-transform: translateX(5px);
}

.sidebar ul li a {
  font-weight: bold;
  font-size: 16px;
  color: #e5f2ff;
  text-decoration: none;
}

.sidebar ul li:hover a {
  color: var(--accent);
}

.sidebar ul li i {
  margin-left: 10px;
  font-size: 22px;
  color: var(--accent);
}
  
      .sidebar ul li:hover  {
        background: #fff;
        border-radius: 8px;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        -ms-border-radius: 8px;
        -o-border-radius: 8px;
}
.sidebar ul li:hover i  {
color: var(--primary);
}
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-right: 15px;
}


.sidebar ul li.has-submenu:hover  {
  background: unset;
 
}
.has-submenu.open .submenu {
  max-height: 500px;
  background-color: unset;
}
.has-submenu.open .submenu li{
 margin-right: 20px;
}

.arrow {
  transition: transform 0.3s ease;
}

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

.submenu a.active {
  color: #007bff;
  font-weight: bold;
}

      /* Cards */
      .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 60px;
        margin-top: 40px;
        padding: 25px;
      }

      .stat-card {
        background: #e4e7f8; 
        padding: 26px 18px 20px;
        position: relative;
        min-height: 130px;
        box-shadow: 0 8px 12px rgb(15 23 42 / 28%);
        border: 1px solid rgb(46 54 142 / 22%);
        border-radius: 15px;
      }
  
      .stat-card i {
        position: absolute;
        top: -23px;
        left: 16px;
        background: var(--primary);
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        font-size: 26px;
        /* border-radius: 8px; */
      }
  
      .stat-card h6 {
        font-weight: bold;
        margin: 6px 0 16px;
        font-size: 18px;
        color: var(--primary);
      }
  
      .stat-card .number {
        font-size: 22px;
        font-weight: bold;
        color: #111827;
      }

    

      .stat-card::after {
        content: "";
        position: absolute;
        inset: 18px 18px -28px 18px;
        background: rgb(0 169 76 / 16%); 
        z-index: -1;
        left: -31px;
        top: 15%;
        height: 140px;
        border-radius: 15px;
      }
  
      /* Charts */
      .chart-box {
        background: #fff;
        padding: 20px;
        margin-bottom: 30px;
      }
  
      .fake-chart {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: conic-gradient(#00a94c 0% 30%, #2e368e 30% 65%, #e6e9ec 65% 100%);
        margin: auto;
      }
  
      .legend {
        margin-top: 15px;
        font-size: 13px;
        display: flex;
        justify-content: center;
      }
      .legend div {
          margin-left: 15px;
         
        }
      .legend span {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-left: 5px;
        border-radius: 50%;
      }
      .icon-btn.toggle.add-proberty-toggle{
        width: 60px;
    height: 30px;
      }


      .icon-btn.toggle.add-proberty-toggle span {
        display: block;
        width: 25px;
        height: 23px;}

      .region-badge {
        display: inline-block;
        padding: 6px 16px;
        background: #00a94c24;
        border-radius: 20px;
        font-weight: 500;
      }

      .region-form-toggle {
        opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .region-form-toggle.show {
        opacity: 1;
        transform: translateY(0);
      }