:root {

  --primary: #111111;

  --primary-light: #2a2a2a;

  --success: #16A34A;

  --warning: #F59E0B;

  --danger: #DC2626;

  --bg: #f5f5f5;

  --card: #ffffff;

  --text: #111111;

  --subtext: #6b7280;

  --border: #d9d9d9;

}

body{
font-family:"Inter","Segoe UI",Roboto,Arial,sans-serif;
font-size:15px;
font-weight:500;
color:#111827;
letter-spacing:0.1px;
}

body {
  margin: 0;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: var(--primary-light);
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: white;
}

.badge.pending {
  background: var(--warning);
}

.badge.progress {
  background: var(--primary);
}

.badge.completed {
  background: var(--success);
}

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.status.pending {
  background: #ffe5e5;
  color: #d32f2f;
}

.status.inprogress {
  background: #fff4e5;
  color: #f57c00;
}

.status.completed {
  background: #e6f4ea;
  color: #2e7d32;
}

button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #162d6b;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 18px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.details-container {
  max-width: 900px;
  margin: auto;
}

.section {
  background: white;
  padding: 16px;
  margin-top: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.label {
  font-size: 12px;
  color: gray;
}

.value {
  font-weight: bold;
}

.delete-btn {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #d9363e;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fb;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  margin: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

button {
  background: #1d4ed8;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  background: #1e40af;
}

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: capitalize;
}

/* Pending */
.status.pending {
  background: #fff3cd;
  color: #856404;
}

/* In Progress */
.status.inprogress {
  background: #cce5ff;
  color: #004085;
}

/* Completed */
.status.completed {
  background: #d4edda;
  color: #155724;
}

.details-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.label {
  font-size: 12px;
  color: gray;
}

.value {
  font-weight: 600;
}

.header {
  background: #1e3a8a;
  color: white;
  padding: 15px 20px;
  border-radius: 0 0 10px 10px;
  margin-bottom: 20px;
}

.header h2 {
  margin: 0;
}

.header span {
  font-size: 13px;
  opacity: 0.8;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1d4ed8;
}

.section {
  margin-bottom: 20px;
}

.card div {
  margin-bottom: 5px;
}

.card {
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.section h3 {
  margin-bottom: 10px;
  color: #1e3a8a;
}

@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  .container {
    padding: 10px;
  }

  /* 🔹 GRID FIX (VERY IMPORTANT) */
  .grid {
    grid-template-columns: 1fr;
  }

  /* 🔹 HEADER */
  .header {
    padding: 12px;
    text-align: center;
  }

  .header h2 {
    font-size: 18px;
  }

  /* 🔹 CARDS */
  .card {
    padding: 14px;
    margin: 10px 0;
  }

 
  /* 🔹 FORM BUTTONS ONLY */
  .login-btn,
  .form-btn {

    width:100%;

    padding:12px;

    font-size:15px;
  }

  /* SMALL ACTION BUTTONS */

  .export-btn,
  .upgrade-btn{

    width:auto !important;

    padding:10px 16px !important;

    font-size:13px !important;
  }

  /* 🔹 ACTION BUTTONS */
  .delete-btn{

    width:auto;

    padding:8px 14px;

    font-size:13px;
  }

  /* 🔹 LOGOUT BUTTON */
  .header button{

    width:auto;

    min-width:110px;
  }

  /* 🔹 DELETE BUTTON */
  .delete-btn {
    width: auto;
    padding: 6px 10px;
    font-size: 12px;
  }

  /* 🔹 DETAILS PAGE */
  .details-container {
    margin: 10px;
    padding: 12px;
  }

  /* 🔹 TEXT SIZE */
  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

}

button {
  min-height: 44px;
}

a {
  word-break: break-word;
}

.hearing-item {
  padding: 12px;
  border-left: 4px solid #1e3a8a;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor:pointer;
  transition:0.25s ease;
}

.hearing-item:hover{

  transform:translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);
}

.hearing-date {
  font-size: 13px;
  color: #1e3a8a;
  font-weight: bold;
}

.hearing-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.hearing-client {
  font-size: 13px;
  color: gray;
}

.field-label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:#1e3a8a;
}

.form-section{
  margin-top: 30px;
}

.form-btn{
  margin-top: 10px;
  margin-bottom: 14px;
}

textarea{
  min-height: 90px;
}

.section-title{
  margin-bottom: 14px;
  color:#1e3a8a;
}

/* =========================
   PREMIUM LOGIN UI
========================= */

.login-body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, #1e3a8a 0%, transparent 30%),
    radial-gradient(circle at bottom right, #2563eb 0%, transparent 30%),
    #050816;

  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.login-wrapper{
  width:100%;
  max-width:1200px;

  display:grid;
  grid-template-columns:1fr 420px;

  gap:40px;
  align-items:center;
}

.login-left h1{
  font-size:64px;
  margin:20px 0 10px;
  color:white;
  font-weight:700;
}

.tagline{
  color:#cbd5e1;
  font-size:20px;
  max-width:500px;
  line-height:1.6;
}

.login-logo{
  width:170px;
  border-radius:32px;
  box-shadow:
    0 0 40px rgba(37,99,235,0.5),
    0 0 80px rgba(30,58,138,0.4);
}

.feature-list{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.feature-list div{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  padding:16px 20px;
  border-radius:14px;

  color:#e2e8f0;
  font-size:16px;
}

.login-card{
  background:rgba(255,255,255,0.08);

  border:1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(20px);

  padding:40px;

  border-radius:28px;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.4);
}

.login-card h2{
  color:white;
  font-size:32px;
  margin-bottom:10px;
}

.login-subtitle{
  color:#cbd5e1;
  margin-bottom:30px;
}

.login-input{
  width:100%;
  padding:16px;

  margin-bottom:18px;

  border-radius:14px;

  border:1px solid rgba(255,255,255,0.12);

  background:rgba(255,255,255,0.06);

  color:white;

  font-size:15px;
}

.login-input::placeholder{
  color:#94a3b8;
}

.login-input:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 4px rgba(59,130,246,0.15);
}

.login-btn{
  width:100%;

  padding:16px;

  border:none;

  border-radius:14px;

  background:linear-gradient(
    135deg,
    #2563eb,
    #1e3a8a
  );

  color:white;

  font-size:16px;
  font-weight:600;

  cursor:pointer;

  margin-bottom:18px;

  transition:0.25s;
}

.login-btn:hover{
  transform:translateY(-2px);
  box-shadow:
    0 10px 30px rgba(37,99,235,0.35);
}

#recaptcha-container{
  margin-top:20px;
}

/* MOBILE */

@media(max-width:900px){

  .login-wrapper{
    grid-template-columns:1fr;
  }

  .login-left{
    text-align:center;
  }

  .login-left h1{
    font-size:42px;
  }

  .tagline{
    margin:auto;
    font-size:16px;
  }

  .feature-list{
    margin-top:25px;
  }

  .login-card{
    padding:28px;
  }

}

/* =========================
   TOAST NOTIFICATION
========================= */

#toast{

  position:fixed;

  bottom:20px;
  right:20px;

  background:#111827;
  color:white;

  padding:14px 18px;

  border-radius:12px;

  font-size:14px;

  opacity:0;
  pointer-events:none;

  transform:translateY(20px);

  transition:0.3s ease;

  z-index:9999;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25);
}

#toast.show{

  opacity:1;

  transform:translateY(0);
}

@media(max-width:768px){

  #toast{

    left:10px;
    right:10px;

    bottom:15px;

    text-align:center;
  }

  /* 🔹 MOBILE FILTER CHIPS */

  .filter-row{ 

    flex-wrap:nowrap;

    overflow-x:auto;

    padding-bottom:5px;

    scrollbar-width:none;
  }

  .filter-row::-webkit-scrollbar{
    display:none;
  }

  .filter-row button{

    flex:0 0 auto;

    white-space:nowrap;

    padding:8px 16px;

    font-size:13px;
  }

}

/* =========================
   PAGE LOADER
========================= */

#pageLoader{

  position:fixed;

  inset:0;

  background:#f5f7fb;

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  z-index:9999;
}

.loader-spinner{

  width:42px;

  height:42px;

  border:4px solid #dbeafe;

  border-top:4px solid #1e3a8a;

  border-radius:50%;

  animation:spin 0.8s linear infinite;

  margin-bottom:15px;
}

@keyframes spin{

  from{
    transform:rotate(0deg);
  }

  to{
    transform:rotate(360deg);
  }
}

#pageLoader p{

  font-size:15px;

  font-weight:600;

  color:#1e3a8a;
}



/* =========================
   FILTER CHIPS
========================= */

.filter-row{

  display:flex;

  gap:10px;

  flex-wrap:wrap;

  margin:15px 0;
}

.filter-row button{

  width:auto !important;

  min-height:auto;

  padding:8px 14px;

  border-radius:999px;

  font-size:13px;

  font-weight:600;
}

/* =========================
   AUTH LOADER
========================= */

#authLoader{

  position:fixed;

  inset:0;

  background:
    rgba(5,8,22,0.92);

  backdrop-filter:blur(10px);

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  z-index:99999;
}

#authLoader p{

  color:white;

  font-size:16px;

  font-weight:600;

  margin-top:15px;
}

/* =========================
   CASE ACTION BUTTONS
========================= */

.case-action-buttons{

  display:flex;

  gap:10px;

  align-items:center;

  flex-wrap:wrap;
}

.action-btn{

  height:40px;

  padding:0 16px;

  border:none;

  border-radius:10px;

  font-size:14px;

  font-weight:600;

  display:flex;

  align-items:center;

  justify-content:center;

  cursor:pointer;

  transition:0.2s ease;
}

.share-btn{

  background:#1e3a8a;

  color:white;
}

.delete-btn{

  background:#ff4d4f;

  color:white;
}

/* MOBILE */

/* MOBILE */

@media(max-width:768px){

  .case-action-buttons{

    width:100%;

    justify-content:flex-start;

    gap:8px;

    margin-top:10px;
  }

  .action-btn{

    height:34px;

    padding:0 12px;

    font-size:12px;

    border-radius:8px;
  }

  /* MOBILE LOGOUT BUTTON */

  .header button{

    min-width:auto !important;

    padding:8px 14px !important;

    font-size:13px !important;

    border-radius:10px;
  }

}

/* =========================
   PREMIUM FORM SPACING
========================= */

.compact-group{

  display:flex;

  flex-direction:column;

  gap:8px;

  margin-bottom:18px;
}

.compact-btn{

  width:auto !important;

  align-self:flex-start;

  margin-top:0 !important;

  margin-bottom:0 !important;

  padding:10px 18px;
}

#notesInput{

  margin-bottom:10px;
}

#updatesInput{

  margin-bottom:14px;
}

.action-title{

  margin-top:6px;

  margin-bottom:10px;

  color:#1e3a8a;
}

.field-label{

  display:block;

  margin-top:4px;

  margin-bottom:6px;

  font-size:14px;

  font-weight:600;

  color:#1e3a8a;
}

/* =========================
   STEP 2
   MOBILE CASE PREMIUM
========================= */

@media(max-width:768px){

  .details-container{

    margin:0 !important;

    padding:0 !important;

    background:transparent;
  }

  .section{

    border-radius:18px;

    padding:18px;

    margin-top:14px;
  }

}

@media(max-width:768px){

  .section h2{

    font-size:22px;

    line-height:1.4;

    word-break:break-word;
  }

}

@media(max-width:768px){

  button[onclick="goDashboard()"]{

    border-radius:14px !important;

    padding:10px 16px !important;

    font-weight:600;

    box-shadow:
      0 4px 12px rgba(0,0,0,0.08);
  }

}

@media(max-width:768px){

  .grid{

    gap:10px;
  }

  .value{

    font-size:15px;
  }

}

/* =========================
   MOBILE ACTION CARDS
========================= */

@media(max-width:768px){

  .compact-group{

    background:white;

    padding:16px;

    border-radius:18px;

    box-shadow:
      0 6px 20px rgba(0,0,0,0.05);

    border:1px solid #eef2f7;
  }

}

@media(max-width:768px){

  .section-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:14px;
  }

}

@media(max-width:768px){

  input,
  textarea,
  select{

    min-height:52px;

    border-radius:14px;

    font-size:15px;
  }

}

@media(max-width:768px){

  textarea{

    min-height:110px;

    resize:vertical;
  }

}

@media(max-width:768px){

  button[onclick="updateCase()"]{

    width:100%;

    min-height:56px;

    border-radius:16px;

    font-size:16px;

    font-weight:700;

    margin-top:10px;

    box-shadow:
      0 10px 25px rgba(30,58,138,0.25);
  }

}

@media(max-width:768px){

  .compact-btn{

    width:100% !important;

    min-height:52px;

    border-radius:14px;

    font-weight:600;
  }

}

/* =========================
   PREMIUM TIMELINE
========================= */

@media(max-width:768px){

  .section div[style*="border-left:3px solid"]{

    border-left:4px solid #1e3a8a !important;

    border-radius:0 14px 14px 0;

    background:#f8fafc;

    padding:14px !important;

    margin-bottom:12px !important;
  }

}

/* =========================
   PREMIUM FINANCIALS
========================= */

@media(max-width:768px){

  .section p{

    line-height:1.8;
  }

  .section p b{

    font-size:16px;
  }

}

/* =========================
   PREMIUM STATUS
========================= */

@media(max-width:768px){

  .status{

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    letter-spacing:0.3px;
  }

}

/* =========================
   BETTER SECTION DEPTH
========================= */

@media(max-width:768px){

  .section{

    box-shadow:
      0 8px 24px rgba(0,0,0,0.05);
  }

}

/* =========================
   FILE LIST
========================= */

@media(max-width:768px){

  .section a{

    font-weight:600;

    text-decoration:none;
  }

}

@media(max-width:768px){

  .action-title{

    font-size:17px;

    font-weight:700;
  }

}

@media(max-width:768px){

  .label{

    font-size:13px;

  }

  .value{

    font-size:16px;

    font-weight:700;

  }

}

/* =========================
   DASHBOARD QUICK NOTES
========================= */

.hearings-panel{

  display:flex;

  flex-direction:column;

}


.hearings-scroll{

  flex:3;

  overflow-y:auto;

}


.quick-notes-box{

  flex:1;

  margin-top:12px;

  padding-top:12px;

  border-top:1px solid #e5e7eb;

}


.quick-notes-box h3{

  font-size:16px;

  margin-bottom:8px;

}

#quickNotes{

  height:100%;

  min-height:110px;

  resize:none;
}

/* =========================
   PREMIUM EDIT POPUP
========================= */

.edit-modal{

  position:fixed;

  inset:0;

  background:rgba(15,23,42,0.45);

  display:none;

  align-items:center;

  justify-content:center;

  z-index:99999;
}


.edit-box{

  background:white;

  width:90%;

  max-width:380px;

  padding:24px;

  border-radius:22px;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.25);

  animation:popIn .2s ease;
}


.edit-box h3{

  margin-bottom:18px;
}


.edit-box input{

  width:100%;

  height:50px;

  border-radius:14px;

  font-size:16px;
}


.edit-actions{

  display:flex;

  justify-content:flex-end;

  gap:10px;

  margin-top:15px;
}


.edit-actions button{

  width:auto !important;

  padding:10px 18px;
}


@keyframes popIn{

  from{
    transform:scale(.95);
    opacity:0;
  }

  to{
    transform:scale(1);
    opacity:1;
  }

}

.edit-pencil{

  all:unset !important;

  background:transparent !important;

  color:inherit !important;

  display:inline !important;

  cursor:pointer !important;

  font-size:16px !important;

  margin-left:8px !important;

}


.edit-pencil:hover{

  background:transparent !important;

}

.value,
.hearing-title{
font-size:16px;
font-weight:700;
color:#0f172a;
}

.label,
.hearing-client{
font-size:13px;
font-weight:500;
color:#64748b;
}

h2{
font-size:24px;
font-weight:800;
color:#020617;
}

h3{
font-size:18px;
font-weight:800;
color:#020617;
}

p,
div{
line-height:1.5;
}