/* assets/style.css - Sidmark styling */

/* ---------- Theme tokens ---------- */
:root{
  --brand:#0c6cf2;
  --brand-dark:#094db0;
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --danger:#dc2626;
  --success:#059669;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html, body { height: 100%; }
body{
  margin:0;
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  background:var(--bg);
  color:var(--text);
    display: flex;
  flex-direction: column;
  min-height: 100vh;
}


main {
  flex: 1 0 auto;
}


/* ---------- Auth (login/reset) ---------- */
.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.table-sm.compact-table th,
.table-sm.compact-table td {
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    font-size: 1rem !important;  /* smaller font size */
    line-height: .9 !important;    /* tighter line spacing */
    vertical-align: middle !important; /* center text vertically */
    text-align: left !important;      /* keep left aligned */
    height: 1.4rem !important; 
}
.table-sm.compact-table .btn {
    padding: 0.25rem 0.25rem !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
}

.table-sm.compact-table .badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.3rem !important;
    line-height: 1 !important;
}


.content-wrap {
  max-width: 1200px;   /* adjust as needed */
  margin: 0 auto;      /* center it */
}
.card-login{
  max-width:600px;

  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:28px;
}
@media (min-width: 1200px) {
    .col-xl-9 {
        flex: 0 0 auto;
        width: 100%;
    }
}
@media (min-width: 992px) {
    .col-lg-10 {
        flex: 0 0 auto;
        width: 100%;
    }
}
.card{
  width:100%;

  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:28px;
}
          .card-header {
            font-weight: 600;
            background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
            border-bottom: 1px solid #cbd5e1;
          }

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.brand img{height:36px}
.brand h1{
  font-size:20px;
  margin:0;
  font-weight:700;
}

h2.title{
  margin:6px 0 18px;
  font-size:22px;
}

.form-group{margin-bottom:14px}
label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
input[type="text"],input[type="email"],input[type="password"]{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  outline:none;
}
input:focus{border-color:var(--brand)}

.btn{
  appearance:none;
  border:0;
  border-radius:10px;
  padding:12px 14px;
  font-weight:600;
  cursor:pointer;
}
          .btn-primary {
            background: linear-gradient(90deg, #2563eb, #3b82f6);
            border: none;
          }
          .btn-danger {
            background: linear-gradient(90deg, #ef4444, #dc2626);
            border: none;
          }
          .btn-secondary {
            background: linear-gradient(90deg, #64748b, #475569);
            border: none;
          }

.btn-link{
  background:transparent;
  color:var(--brand);
  padding:0;
  border-radius:0;
}
.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}

.alert{
  border:1px solid var(--border);
  border-left:4px solid var(--danger);
  background:#fff;
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:12px;
  color:var(--danger);
  font-size:14px;
}
.alert.success{
  border-left-color:var(--success);
  color:var(--success);
}

.helper{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}
.footer-note{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin-top:12px;
}

/* ---------- Password helper UI ---------- */
.password-generator {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.password-display {
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
  margin: 10px 0;
  word-break: break-all;
  display: none;
}
.password-toggle {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  margin-left: 10px;
}

/* Password strength meter */
.password-strength-meter {
  margin-top: 5px;
  height: 5px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.password-strength-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
}
.password-strength-text {
  font-size: 12px;
  margin-top: 3px;
  color: #666;
}
.strength-weak { background: #ff4d4d; width: 25%; }
.strength-fair { background: #ffa64d; width: 50%; }
.strength-good { background: #33cc33; width: 75%; }
.strength-strong { background: #009900; width: 100%; }

/* ---------- App Layout (fixed header/footer, scrollable body) ---------- */
/* Full-height 3-row grid: header (auto), body (1fr), footer (auto) */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}
body.app {
            background: #f8fafc;
            font-family: "Segoe UI", Tahoma, sans-serif;
            color: #1e293b;
          }
/* === App layout: header (fixed), body scrolls, footer at bottom === */
html, body { height: 100%; }
body { margin: 0; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* header -> body -> footer */
}

/* header: keep navbar visible; let Bootstrap handle stickiness if you want */
.app-header {
  flex: 0 0 auto;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1030;
}

/* body: the only thing that grows and scrolls */
.app-body {
  flex: 1 1 auto;           /* fills remaining height */
  min-height: 0;            /* critical so the child can scroll */
  overflow: Auto;         /* contain the scroller */
  background: var(--bg);
}
.main-scroll {
  height: 100%;
  overflow: auto;           /* scroll here, not the page */
  padding: 16px;
}

/* ---------- App Layout with fixed footer ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-body {
  flex: 1;
  padding: 16px;
  background: var(--bg);
}

/* Fixed footer styles */
.app-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  margin-top: auto; /* Pushes footer to bottom */
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* optional: clean navbar look */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid var(--border);
}
.navbar-brand img { height: 32px; }

/* Utility badges in header if you re-add them later */
.header-right {
  display:flex; align-items:center; gap:14px; color: var(--muted); font-size:14px;
}
.badge {
  background: #eef2ff; color: #3730a3; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
}

/* ---------- Clean up: remove old sidebar assumptions ---------- */
/* If any leftover .sidebar/.submenu markup exists, keep it neutral */
.sidebar { display:none; }       /* we’re using a horizontal navbar now */

/* Old submenu hover style (kept harmless) */
.submenu { list-style: none; padding-left: 10px; margin: 4px 0 8px; }
.submenu li a {
  padding: 8px 12px;
  display: block; border-radius: 8px;
}
.submenu li a:hover { background: #f8fafc; }

/* Cards used inside main pages */
.card.full {
  max-width: none;
  border-radius: 14px;
}

/* CSS fix for button color */
.btn-fixed {
    background-color: #0d6efd; /* Primary blue */
    color: white;
    border: none;
}

.btn-fixed:hover {
    background-color: #0b5ed7; /* Darker blue on hover */
    color: white;
}
/* Custom CSS for the button */ 
.btn-custom { 
    background-color: #0d6efd; /* Primary blue */ 
    color: white; 
    border: none; 
    padding: 6px 12px; 
    font-size: 14px; 
    border-radius: 4px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    height: 32px; 
    
} 
.btn-custom:hover { 
    background-color: #0b5ed7; /* Darker blue on hover */ 
    color: white; 
    
} 
.btn-custom i { 
    font-size: 12px; 
    margin-right: 5px; 
    
}
