/* ===============================
   NRIMS – Polished Theme Add-on
   Put this at the END of assets/css/custom.css
   =============================== */

/* Theme tokens */
:root{
  --brand: #0b5ed7;           /* primary */
  --brand-600:#0a53be;
  --accent:#fe4641;           /* call-to-action */
  --ink:#0f172a;              /* headings */
  --muted:#64748b;            /* secondary text */
  --bg:#f8fafc;               /* page bg */
  --card:#ffffff;             /* cards / table cells */
  --line:#e2e8f0;             /* borders */
  --success:#16a34a;
}

/* Base */
html,body{
  background:var(--bg);
  color:#1f2937;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5{
  color:var(--ink);
  letter-spacing:.2px;
}

/* Topbars & navbar */
.navbar-top{
  background:linear-gradient(90deg, #0b5ed7 0%, #0846a8 100%) !important;
  color:#fff;
  font-weight:500;
  padding:6px 0;
}
.navbar-top a{ color:#e5efff; }
.navbar-top a:hover{ color:#fff; text-decoration:underline; }

.navbar.navbar-default.navbar-fixed-top{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 20px rgba(2, 6, 23, .06);
  backdrop-filter:saturate(180%) blur(6px);
}
.navbar-brand img.logo{
  height:44px;
  margin-top:3px;
}
.navbar-default .navbar-nav>li>a{
  font-weight:600;
  letter-spacing:.2px;
  color:#0f172a;
  padding:18px 16px;
  transition:color .2s ease, background .2s ease;
}
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus{
  color:var(--brand);
  background:transparent;
}
.navbar-default .navbar-toggle{
  border:none;
  margin-top:14px;
}
.navbar-default .navbar-toggle .icon-bar{ background:#0f172a; }

/* Body offset for fixed navbar stack (topbar + mainbar).
   The topbar is ~38px and navbar ~64px; give breathing room. */
body{ padding-top: 118px; }
@media (max-width: 991px){ body{ padding-top: 132px; } }

/* Top search */
.top-search{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fff;
}
.top-search .input-group{
  max-width:640px;
  margin:12px auto;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.top-search .form-control{
  height:44px;
  border:none !important;
  box-shadow:none !important;
}
.top-search .input-group-addon{
  background:#fff;
  border:none;
  font-size:18px;
  color:var(--muted);
}

/* Action band */
#action.action.bg-primary{
  background:linear-gradient(90deg, var(--brand) 0%, var(--brand-600) 100%) !important;
  border-radius:16px;
  margin-top:48px;
}
#action h2{
  margin:0;
  line-height:1.3;
}
#action .btn{
  background:#fff;
  border:none;
  color:var(--brand);
  font-weight:700;
  padding:12px 22px;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(11,94,215,.25);
}
#action .btn:hover{ transform:translateY(-1px); }

/* Buttons (general) */
.button, #c-signup-submit3, .btn-default{
  background:var(--brand);
  border:1px solid var(--brand);
  color:#fff !important;
  font-weight:700;
  border-radius:12px;
  padding:10px 16px;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, #c-signup-submit3:hover, .btn-default:hover{
  background:var(--brand-600);
  box-shadow:0 8px 16px rgba(11,94,215,.25);
  transform:translateY(-1px);
}

/* Forms in filters */
input[type="text"], input[type="date"], select{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  outline:none !important;
  transition:border-color .2s ease, box-shadow .2s ease;
  background:#fff;
}
input[type="text"]:focus, input[type="date"]:focus, select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(11,94,215,.15);
}

/* Table – Approved Research */
table.prop{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(2,6,23,.06);
}
table.prop caption{
  caption-side:top;
  text-align:left;
  padding:16px 20px;
  font-weight:800;
  color:var(--ink);
  font-size:20px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
table.prop thead th{
  background:#f1f5f9;
  color:#0f172a;
  font-weight:700;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.6px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
table.prop tbody td{
  padding:14px;
  vertical-align:top;
  border-bottom:1px solid var(--line);
  background:#fff;
}
table.prop tbody tr:nth-child(even) td{
  background:#fbfdff;
}
table.prop a{
  color:var(--brand);
  font-weight:700;
}
table.prop a:hover{ text-decoration:underline; }

/* Subtable (footer controls under main table) */
.subtable{
  background:#fff;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:10px;
}
.serby table td{
  padding-right:10px;
  color:var(--muted);
  font-weight:600;
}

/* Thumbnails */
.pthumb{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:50%;
  border:2px solid #fff;
  box-shadow:0 4px 10px rgba(2,6,23,.12);
}

/* Pagination */
.nav_purgination{ display:flex; justify-content:center; padding:18px; }
.nav_purgination ul{ list-style:none; margin:0; padding:0; display:flex; gap:8px; flex-wrap:wrap; }
.nav_purgination li a{
  display:inline-block;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  font-weight:700;
  transition:all .2s ease;
}
.nav_purgination li a:hover{
  border-color:var(--brand);
  color:var(--brand);
  box-shadow:0 6px 14px rgba(11,94,215,.18);
  transform:translateY(-1px);
}
.nav_purgination a.current{
  background:var(--brand);
  color:#fff !important;
  border-color:var(--brand);
}
.nav_purgination a.disabled{
  opacity:.5;
  pointer-events:none;
}

/* Footer */
.footer .main_footer{
  background:#0b1220;
  color:#cbd5e1;
  border-top:1px solid #0b1a33;
}
.footer p{ margin:0; }

/* Utilities */
.text-white{ color:#fff !important; }
.text-uppercase{ text-transform:uppercase; }

/* Mobile tweaks */
@media (max-width: 991px){
  .navbar-default .navbar-nav>li>a{ padding:12px 12px; }
  table.prop thead{ display:none; }
  table.prop tbody tr{ display:block; border-bottom:1px solid var(--line); }
  table.prop tbody td{
    display:flex; justify-content:space-between; align-items:center;
    gap:16px; padding:12px 16px;
  }
  table.prop tbody td:before{
    content: attr(data-label);
    font-weight:700; color:var(--muted); text-transform:uppercase; font-size:11px;
  }
}

/* Bigger, clearer photos */
.pthumb{
  width: 96px;          /* was 44px */
  height: 96px;         /* was 44px */
  display: inline-block;
  object-fit: cover;
  border-radius: 12px;  /* switch from circle to rounded square; use 50% for a circle */
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(2,6,23,.18);
}

/* Keep them comfortable on small screens */
@media (max-width: 768px){
  .pthumb{
    width: 72px;
    height: 72px;
  }
}

/* Optional: give the photo column more room */
table.prop td:last-child{
  min-width: 120px;
}

/* Mobile: show the thead (so filters appear), hide only the header labels row */
@media (max-width: 991px){
  table.prop thead{ display: table-header-group !important; }
  table.prop thead tr{ display: table-row !important; }

  /* Assuming the 3rd thead row is the column headings */
  table.prop thead tr:nth-of-type(4){
    display: none !important;
  }
}

/* Pretty filter header cell */
table.prop thead th.th-filters{
  background:#f8fafc;
  padding:14px 18px;
  border-bottom:1px solid #e2e8f0;
}

.th-filters .filter-row{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.th-filters .filter-group{
  display:flex;
  align-items:center;
  gap:10px;
}

.th-filters .label{
  font-weight:700;
  color:#475569; /* slate-600-ish */
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.4px;
}

.th-filters .input-wrap{
  position:relative;
}

.th-filters .input-wrap i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8; /* slate-400 */
  pointer-events:none;
  font-size:14px;
}

.th-filters input[type="date"]{
  min-width:220px;
  padding:10px 12px 10px 36px; /* left space for icon */
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#fff;
  outline:0;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.th-filters input[type="date"]:focus{
  border-color:#0b5ed7;
  box-shadow:0 0 0 3px rgba(11,94,215,.15);
}

/* Mobile stacking */
@media (max-width:576px){
  .th-filters .filter-row{ gap:12px; }
  .th-filters .filter-group{ width:100%; }
  .th-filters input[type="date"]{ width:100%; min-width:0; }
}

.btn-clear{
  display:inline-block; background:#f8fafc; border:1px solid #e2e8f0;
  color:#0f172a; font-weight:700; border-radius:8px; padding:6px 10px;
  text-decoration:none; transition:background .15s ease, box-shadow .2s ease;
}
.btn-clear:hover{ background:#eef2f7; box-shadow:0 2px 8px rgba(2,6,23,.07); }
.btn-clear--xs{ font-size:12px; padding:4px 8px; margin-left:8px; }

/* Make the whole block clickable and pretty */
.date-label{ cursor:pointer; display:inline-block; }
.date-label .input-wrap{
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; background:#fff;
  border:1px solid #e2e8f0; border-radius:10px;
  transition:border-color .2s ease, box-shadow .2s ease, background .15s ease;
}
.date-label:hover .input-wrap{
  border-color:#0b5ed7;
  box-shadow:0 0 0 3px rgba(11,94,215,.15);
}
.date-label i.fa{ opacity:.7; }

/* Keep the native control but remove extra chrome */
.date-label input[type="date"]{
  border:0; background:transparent; outline:none;
  height:36px; line-height:36px; padding:0;
  width:180px;   /* adjust to your layout */
}
@media (max-width:768px){
  .date-label input[type="date"]{ width:140px; }
}

/* Make the entire date box act like a button */
.input-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
}
.input-wrap:hover{
  border-color:#0b5ed7;
  box-shadow:0 0 0 3px rgba(11,94,215,.15);
}

/* Let clicks pass through the icon to the input */
.input-wrap i.fa{ pointer-events: none; }

/* Make the input fill the whole clickable area */
.input-wrap input[type="date"]{
  border: 0;
  background: transparent;
  outline: none;
  height: 36px;
  line-height: 36px;
  width: 100%;
  cursor: pointer;
}

table.prop caption .caption-sub{
  display:block;
  margin-top:6px;
  font-size:14px;
  line-height:1.5;
  color:#64748b;   /* muted */
  font-weight:500;
}

.th-filters .filter-row{
  display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start;
}
.th-filters .filter-group{
  min-width: 220px;
}
.th-filters .filter-label{
  display:block; font-size:12px; color:#64748b; margin-bottom:4px; font-weight:600;
}
.btn-clear.btn-clear--xs{
  display:inline-block; padding:6px 10px; border:1px solid #e2e8f0; border-radius:8px;
  text-decoration:none; font-weight:700; color:#334155; background:#fff;
}
.btn-clear.btn-clear--xs:hover{
  border-color:#0b5ed7; color:#0b5ed7; box-shadow:0 4px 10px rgba(11,94,215,.12);
}

        #c-signup-submit3{ padding:5px; border-style:solid; border-width:1px; color:#FFFFFF; cursor:pointer; _overflow:visible; 
        font-family: 'Segoe UI', Segoe, 'Helvetica Neue', Helvetica, Arial, sans-serif;
        -moz-border-radius:4px; /*add some nice CSS3 round corners*/
        -webkit-border-radius:4px;
        border-radius:4px; width:150px;

        }
        #c-signup-submit3{background: #090; border-color: #090;}
        #c-signup-submit3:hover{ background:#FF9900; border:1px solid #FF9900; }

.count-pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; margin-left:8px;
  border:1px solid var(--line); background:#fff; border-radius:8px;
  font-weight:700; color:#0b5ed7;
}
.count-pill .lbl{
  color:#64748b; text-transform:uppercase; font-size:11px; letter-spacing:.3px;
}
