/* ============================================================
   Styled by ANUBIT TECHNOLOGIES (OPC) PRIVATE LIMITED
   Optimized NYCEI Modern Layout (v2.0)
   ============================================================ */

/* ---------- GLOBAL ---------- */
body {
  background: #F8FAFC;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
}

#page-wrapper {
  background-color: #f5f7fb4f;
  max-height: 94vh;
  overflow-x: visible;
  overflow-y: scroll;
}

/* ---------- NAVBAR ---------- */
.navbar-default {
  background-color: #ffffff;
  border-color: #e7e7e7;
  box-shadow: 3px 2px 8px #ebebeb;
}

.navbar-default .navbar-brand {
  color: #0142a7;
  font-weight: bold;
}

.navbar-default .navbar-brand:hover {
  color: #000;
  background-color: transparent;
}

/* ---------- SIDEBAR ---------- */
.sidebar ul li a {
  padding: 15px 15px;
  font-size: 15px;
  color: #002649;
  position: relative;
}

.sidebar ul li a.active {
  color: #fff;
  background-color: #009bffb8;
  border-right: 7px solid #0172ff;
}

.sidebar ul li a:hover {
  color: #3e3e3e;
  background-color: #079eff12;
  border-right: 7px solid #0172ff;
}

.nav-link-text {
  margin-left: 24px;
}

/* ---------- PAGE STRUCTURE ---------- */
.page_container {
  border-style: groove;
  border-width: 0 2px;
  border-color: #002d64;
  background-color: #f5f7fb;
  max-width: 1920px;
}

.page_content {
  padding: 4rem;
}

.page-header {
  text-transform: capitalize;
}

/* ---------- FORMS & INPUTS ---------- */
.ab_form {
  background-color: white;
  padding: 10px;
  box-shadow: 3px 5px 8px #ebebeb;
  margin-bottom: 21px !important;
}

.ab_form .form-control {
  background-color: #009bff03;
  border-radius: 0 !important;
}

.ab_form .form-control:focus {
  color: #001530;
  background-color: #fff;
  border-color: #001530;
  outline: 0;
  box-shadow: 0px 0px 2px rgba(71, 183, 255, 0.55);
}

/* ---------- TABLE CONTAINER ---------- */
.table-ctainater {
  background-color: white;
  margin-top: 16px;
  padding: 18px;
  border-radius: 11px;
  box-shadow: 0px 0px 3px #00000024;
}

.table-ctainater .table td {
  vertical-align: middle;
  padding: 7px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fdfdfd;
}

.table-striped > tbody > tr:hover {
  background-color: #007ccb;
  color: white;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  color: #ffffff;
  background-color: #0576ff;
  border-color: #ffffff;
  letter-spacing: 1px;
}

.btn-primary:hover {
  color: #fff;
  background-color: #004599;
  border-color: #ffbe00;
  border-width: 2px;
  border-radius: 6px;
}

/* ---------- WELL (FILTER BOX) ---------- */
.well {
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 19px;
  margin-bottom: 0 !important;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
}

/* ---------- STATUS TAGS ---------- */
.red_span {
  background-color: red;
  padding: 7px;
  color: white;
  border-radius: 7px;
  cursor: pointer;
}

.green_span {
  background-color: green;
  padding: 7px;
  color: white;
  border-radius: 7px;
  cursor: pointer;
}

/* ============================================================
   NYCEI MODERN MINIMAL THEME
   ============================================================ */

/* ---------- PAGE WRAPPER ---------- */
.nycei-container {
  padding: 24px;
}

.nycei-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.nycei-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #0F172A;
}

.nycei-header-actions .ny-btn {
  margin-left: 8px;
}

/* ---------- BUTTONS ---------- */
.ny-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.ny-btn-primary {
  background: #2D8CFF;
  color: #fff;
}

.ny-btn-primary:hover {
  background: #005FCC;
}

.ny-btn-light {
  background: #F1F5F9;
  color: #334155;
}

.ny-btn-light:hover {
  background: #E2E8F0;
}

.ny-btn-danger {
  background: #F87171;
  color: #fff;
}

.ny-btn-danger:hover {
  background: #DC2626;
}

.ny-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #334155;
  margin: 0 3px;
  transition: 0.2s ease;
}

.ny-btn-icon.blue:hover {
  background: #E8F3FF;
  color: #2D8CFF;
}

.ny-btn-icon.red:hover {
  background: #FEECEC;
  color: #B91C1C;
}

.ny-btn-icon.orange:hover {
  background: #FFF4E6;
  color: #F59E0B;
}

/* ---------- CARDS ---------- */
.nycei-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.nycei-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 18px;
  text-align: center;
  transition: all 0.2s ease;
}

.nycei-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.nycei-card span {
  font-size: 13px;
  color: #64748B;
}

.nycei-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 8px;
}

.nycei-card.highlight { background: #E8F3FF; }
.nycei-card.success { background: #E8FBF4; color: #065F46; }
.nycei-card.danger { background: #FEECEC; color: #B91C1C; }

/* ---------- FILTER ---------- */
.nycei-filter {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

.nycei-filter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nycei-filter input,
.nycei-filter select {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}

.nycei-filter input:focus,
.nycei-filter select:focus {
  border-color: #2D8CFF;
  outline: none;
}

/* ---------- TABLE ---------- */
.nycei-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nycei-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nycei-table thead {
  background: #F1F5F9;
}

.nycei-table th,
.nycei-table td {
  padding: 10px 12px;
  text-align: left;
}

.nycei-table th {
  font-weight: 600;
  color: #334155;
}

.nycei-table tbody tr:hover {
  background: #F9FAFB;
}

.balance {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.balance.positive { background: #E8FBF4; color: #047857; }
.balance.negative { background: #FEECEC; color: #B91C1C; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nycei-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nycei-filter form {
    flex-direction: column;
    align-items: stretch;
  }

  .nycei-table th,
  .nycei-table td {
    font-size: 13px;
  }
}

/* --- NYCEI Enhanced Form Design --- */
.nycei-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  color: #0B1A33;
}

/* Card Sections */
.nycei-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(13, 42, 76, 0.05);
  padding: 24px 28px;
  transition: all 0.3s ease;
}
.nycei-card:hover {
  box-shadow: 0 3px 15px rgba(45, 140, 255, 0.08);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2D8CFF;
  margin-bottom: 18px;
}

/* Form Layout */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.full-width { flex: 1 1 100%; }
.half-width { flex: 1 1 48%; }

/* Inputs */
.form-control {
  border: 1px solid #D0D7E2;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.25s ease-in-out;
  background-color: #F9FBFE;
}
.form-control:focus {
  border-color: #2D8CFF;
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.15);
  background: #fff;
  outline: none;
}

/* Labels */
label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #0B1A33;
}

/* Buttons */
.btn-info {
  background: #2D8CFF;
  border: none;
  color: white;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 500;
  transition: background 0.25s;
}
.btn-info:hover { background: #005FCC; }

.btn-save {
  background: linear-gradient(90deg, #2D8CFF, #005FCC);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  padding: 10px 32px;
  font-size: 15px;
  transition: box-shadow 0.25s ease;
}
.btn-save:hover {
  box-shadow: 0 4px 12px rgba(45, 140, 255, 0.3);
}

/* Logo preview */
.logo-preview img {
  width: 130px;
  height: auto;
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logo-preview p {
  font-size: 13px;
  color: #7A8699;
  margin-top: 3px;
}

/* Inline group */
.inline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .half-width { flex: 1 1 100%; }
  .nycei-card { padding: 18px; }
  .btn-save { width: 100%; }
}

/* --- NYCEI Polished Form --- */
.nycei-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  color: #0B1A33;
}

/* Card */
.nycei-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(13, 42, 76, 0.05);
  padding: 24px 28px;
  transition: all 0.3s ease;
}
.nycei-card:hover {
  box-shadow: 0 4px 16px rgba(45, 140, 255, 0.08);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2D8CFF;
  margin-bottom: 18px;
}

/* Layout */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.full-width { flex: 1 1 100%; }
.half-width { flex: 1 1 48%; }

/* Inputs */
.form-control {
  border: 1px solid #D0D7E2;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  background-color: #F9FBFE;
  transition: all 0.25s ease;
}
.form-control:focus {
  border-color: #2D8CFF;
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.15);
  background: #fff;
  outline: none;
}

/* Labels */
label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #0B1A33;
}

/* Buttons */
.btn-info {
  background: #2D8CFF;
  border: none;
  color: white;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 500;
  transition: background 0.25s;
}
.btn-info:hover { background: #005FCC; }

.btn-save {
  background: linear-gradient(90deg, #2D8CFF, #005FCC);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  padding: 10px 32px;
  font-size: 15px;
  transition: box-shadow 0.25s ease;
}
.btn-save:hover {
  box-shadow: 0 4px 12px rgba(45, 140, 255, 0.3);
}

/* Inline group */
.inline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.logo-preview img {
  width: 130px;
  height: auto;
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logo-preview p {
  font-size: 13px;
  color: #7A8699;
  margin-top: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .half-width { flex: 1 1 100%; }
  .nycei-card { padding: 18px; }
  .btn-save { width: 100%; }
}
