/* ===========================
   Login page styles
   =========================== */

:root {
  --sidebar-w: 25%;        /* width of left fixed sidebar */
  --gutter: 48px;           /* left gutter from sidebar to content */
  --blue: #263D8D;
  --muted: #f6f7fb;
  --card-bg: #ffffff;
  --card-shadow: 0 12px 30px rgba(11,20,40,0.04);
  --navy: #263D8D;
  --accent: #FED600;
  --input-border: #d6d6d6;
  --muted: #6c757d;
}

/* page base */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: #F5F5F5;
  color: #111;
  overflow: auto;
}

/* The fixed left sidebar (assumes sidebar.php uses .sidebar and position:fixed) */
.sidebar {
  width: var(--sidebar-w) !important;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 28px 20px;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

/* Make logo tighter inside the sidebar */
.sidebar .logo-box {
  width: 100%;
  display: flex;
  justify-content: center; /* center horizontally */
  margin-bottom: 16px;     /* some space below logo */
}

.sidebar .logo-img {
  width: 70%;
  height: auto;
  display: block;
}


/* Sidebar buttons (stack) */
.sidebar button {
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(38,61,141,0.08);
  font-weight: 600;
}
.sidebar button:hover{ background:#FFD600; transform:translateY(-1px); }


/* 1. This perfectly centers the login box on the screen */
.login-viewport {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 20px; /* Adds breathing room on small screens */
  box-sizing: border-box;
}

/* MAIN CONTENT: leave space for fixed sidebar */
.main { margin-left: calc(var(--sidebar-w) + var(--gutter)); padding: 36px 48px 80px 0; }

/* outer card container */
.login-card {
  width: 100%;
  max-width: 400px; /* Controls the width of the login card */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* spacing between logo / form blocks */
  box-sizing: border-box;
}

/* logo */
.logo-wrap {
  width: 100%;
  text-align: center;
}

.logo-wrap img {
  max-width: 240px;
  width: 60%;
  height: auto;
}

/* Login form wrapper */
.form-wrap {
  width: 100%;
}

/* Making the form a flex container to handle spacing */
.form-wrap form {
  display: flex;
  flex-direction: column;
  /* 2. This adds space between the input fields and the button */
  gap: 16px;
}


/* Common styles for inputs and buttons for consistent width */
.input-field,
.login-btn {
  width: 100%;
  box-sizing: border-box;
}

/* Inputs */
.input-field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #f4f8ff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  box-sizing: border-box; /* Ensures padding is included in the width */
}

/* Input Focus state */
.input-field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(38, 61, 141, 0.1);
  background: #fff;
}

/* Button */
.login-btn {
  padding: 14px 18px;
  border-radius: 28px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(38, 61, 141, 0.12);
  transition: transform .1s ease, filter .1s ease;
}

.login-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.login-btn:active {
  transform: translateY(0);
  filter: brightness(1);
}

/* Forgotten link */
.forgot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.forgot a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.forgot a:hover {
  text-decoration: underline;
}

/* error banner */
.error-banner {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff0f0;
  color: #9b1c1c;
  border: 1px solid #f5c2c2;
  font-weight: 600;
  text-align: center;
}

.tile-card {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(11,20,40,0.04);
  background: #fff;
  border: 1px solid #D9D9D9;
  height: 110px;
  width: 100%;
  display: flex;
  align-items: center;       /* center vertically */
  justify-content: center;   /* center horizontally */
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #111;
  padding: 0;                /* remove extra padding */
}

.tile-card .icon {
  font-size: 22px;
  color: #263D8D;
  line-height: 1;            /* remove extra line spacing */
}

.tile-card span {
  font-weight: 700;
  color: #0b213a;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;          /* tighter alignment */
}

    
    .app-header { padding: 28px 0; }

    .company-title { font-size: 42px; font-weight: 700; color: #263D8D; }

    .company-frn { font-size: 24px; color: #263D8D; font-weight: 600; }
    
    
    .admin-back-btn {
  border-radius: 28px!important;
  padding: 10px 20px!important;
  border: 2px solid #263D8D!important;  /* bright yellow */
  color: #263D8D!important;             /* yellow text */
  background: #fff!important;           /* white background */
  font-weight: 600!important;
  display: inline-block!important;
  text-align: center!important;
  text-decoration: none!important;
  transition: all 0.2s ease-in-out!important;
}

.upload-btn{
    border-radius: 28px!important;
  padding: 10px 20px!important;
  border: 2px solid #263D8D!important;  /* bright yellow */
  color: #263D8D!important;             /* yellow text */
  background: #fff!important;           /* white background */
  font-weight: 600!important;
  display: inline-block!important;
  text-align: center!important;
  text-decoration: none!important;
  transition: all 0.2s ease-in-out!important;
}

.upload-btn:hover {
  background: #fff!important;   /* yellow background */
  color: #FFD600!important;           /* white text */
  border: 2px solid #FFD600!important;  /* bright yellow */
  text-decoration: none!important; /* remove underline */
}

.admin-back-btn:hover {
  background: #fff!important;   /* yellow background */
  color: #FFD600!important;           /* white text */
  border: 2px solid #FFD600!important;  /* bright yellow */
  text-decoration: none!important; /* remove underline */
}
    
    
    .notice { background:#f2ebc7; border:1px solid #000; color:#333; border-radius:6px; padding:12px 16px; margin-bottom:16px; }
    
    .section-title { margin-top:28px; margin-bottom:12px; color:#263D8D; font-weight:700; }
    .sidebar-placeholder { display:none; } /* keep included sidebar.php; hide duplicate if present */
    /* ensure the container has comfortable padding */
    .new_container { padding: 18px 26px; }
    @media (min-width: 992px) {
      .tile-card { height:120px; }
    }
    
    h1 {
  font-size: 38px !important; /* override Bootstrap size */
  color: #263D8D !important;  /* your custom blue */
  font-weight: 700;           /* bold */
}

    h2 {
  font-size: 20px !important; /* override Bootstrap size */
  color: #263D8D !important;  /* your custom blue */
  font-weight: 700;           /* bold */
}

th {
        background:#263D8D!important; 
        border:1px solid #ddd!important;
        color:#fff!important; 
        font-weight:600!important;
        padding:6px!important; 
        padding-left:12px!important;
        text-align:left!important;
    }
    
    td {
        background:#fff!important; 
        border:1px solid #ddd!important;
        padding:6px!important; vertical-align:middle!important;
        padding-left:12px!important;
        margin-left:1%!important;
}

.question-card { border-radius:8px; border:2px solid #CCC; box-shadow:0 6px 18px rgba(11,20,40,0.03); background:#fff; padding:18px; margin-bottom:18px; }

.regulatory-requirement { font-weight:700; color:#000; margin-bottom:10px; }


    
    