@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root{
  /* Palette & tokens (inspired by the provided example) */
  --gradient-1: #ff7a2e;
  --gradient-2: #ff962c;
  --gradient-3: #f36b2a;
  --bg: linear-gradient(135deg,var(--gradient-1) 0%, var(--gradient-2) 50%, var(--gradient-3) 100%);
  --surface: #ffffff;
  --muted: #6b7280;
  --accent: var(--gradient-1);
  --accent-700: var(--gradient-3);
  --glass: rgba(255,255,255,0.06);
  --shadow-1: 0 18px 40px rgba(15,15,15,0.12);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --text: #111827;
}
*{box-sizing:border-box}
body{font-family:var(--font-sans); background:var(--bg); background-repeat:no-repeat; background-size:cover; background-attachment:fixed; min-height:100vh; margin:0; color:var(--text); display:flex; align-items:flex-start; justify-content:center; padding:40px 20px;}
/* Make the whole page scroll naturally on mobile */
html, body {height:100%;}

/* Container centering and visual rhythm */
.app-wrapper{width:100%; display:flex; justify-content:center; padding:28px 0 48px;}
.container-inner{width:100%; max-width:1100px;}

/* app shell: single column by default, switch to 2-column on desktop */
.app-shell{width:100%; background:var(--surface); border-radius:var(--radius-xl); padding:28px; display:grid; grid-template-columns:1fr; gap:18px}
@media (min-width:921px){
  .app-shell{grid-template-columns: 1fr 360px; gap:28px}
  .left-col{padding-right:18px}
  .right-col{padding-left:18px}
}

/* Improve header */
header{background:transparent; padding:14px 0; display:flex; align-items:center; justify-content:space-between}
header strong{color:white}

/* Toasts (fixed) */
.toast-fixed{position:fixed; right:20px; bottom:24px; min-width:220px; max-width:360px; background:#111827; color:white; padding:12px 16px; border-radius:10px; box-shadow:0 12px 40px rgba(15,15,30,0.25); z-index:9999; opacity:0; transform:translateY(12px); transition:opacity .18s ease, transform .18s ease}
.toast-fixed.show{opacity:1; transform:translateY(0)}
.toast-fixed.success{background:linear-gradient(90deg,#00b894,#00d28a)}
.toast-fixed.error{background:linear-gradient(90deg,#ff6b6b,#ff8a8a)}

/* Small UI polish: icon buttons and filter controls */
.icon-btn{display:inline-flex; align-items:center; gap:8px; padding:8px 12px}
.icon-btn svg{display:inline-block; vertical-align:middle}
.filter-controls .form-input{max-width:160px}
.filter-controls .gradient-btn{box-shadow:0 10px 28px rgba(243,107,42,0.14);}

/* Table hover & improved header */
.table thead th{border-bottom:2px solid rgba(15,15,30,0.06); padding-bottom:14px}
.table tbody tr:hover{background:rgba(15,15,30,0.02)}


/* Footer visual adjustments */
footer{position:relative; text-align:center; padding:18px 0; color:rgba(255,255,255,0.95); margin-top:18px}
/* Ensure footer is visually separated from gradient edge */
.app-wrapper + footer{margin-top:20px}

/* Table responsiveness */
.table-responsive{overflow-x:auto; -webkit-overflow-scrolling:touch;}
.table{width:100%; border-collapse:collapse; min-width:640px}
.table th, .table td{padding:12px 14px; text-align:left; border-bottom:1px solid rgba(15,15,15,0.04)}
.table thead th{font-weight:700; color:var(--text)}

/* Card polish */
.card{background:var(--surface); border-radius:14px; padding:20px; box-shadow:0 18px 40px rgba(15,15,30,0.06); margin-bottom:18px}

/* Buttons & inputs spacing */
.form-row{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.form-field{padding:12px 14px; border-radius:12px; border:1px solid rgba(15,15,30,0.04); background:rgba(255,255,255,0.98); margin:0}
.gradient-btn{padding:10px 14px; border-radius:10px}

/* Ensure the right column (sidebar) does not cover content */
/* sticky on desktop only */
/* Sidebar sticky removed because layout stacks cards vertically */
.right-col .card{position:static}

/* Form buttons alignment */
.form-row .gradient-btn{align-self:center; min-width:110px}
.form-row .secondary-btn{align-self:center}

/* Make create form more compact on mobile */
@media (max-width:520px){
  .form-row{gap:8px; flex-direction:column}
  .form-field{padding:10px}
  .table th, .table td{padding:10px}
  .card{padding:12px}
  .h1-large{font-size:20px}
  .form-row .gradient-btn{width:100%; min-width:unset}
  .form-row .secondary-btn{width:100%;}
}

/* Accessibility */
.table td, .table th{font-size:14px}

/* Reduce the min-width requirement on smaller displays */
@media (max-width:920px){
  .table{min-width:480px}
}
@media (max-width:520px){
  .table{min-width:380px}
  .card{padding:14px}
  .app-shell{gap:12px; padding:12px}
  .container-inner{padding:0 8px}
  .toast-fixed{right:12px; left:12px}
}

/* Legacy overrides removed — unified styles above to avoid conflicts */
/* Site header */
.site-header{display:flex; align-items:center; justify-content:space-between; gap:12px; color:white; padding:10px 0}
.site-header strong{color:white}

/* Site footer */
.site-footer{padding:18px 0; color:rgba(255,255,255,0.95); text-align:center; margin-top:18px}

/* Layout & components (inspired by provided design) */
.app-shell{width:100%; max-width:1100px; background:var(--surface); border-radius:var(--radius-xl); padding:28px; display:grid; /* single-column layout: stack cards vertically */ grid-template-columns: 1fr; gap:18px; box-shadow:var(--shadow-1); overflow:visible}
.left-col{padding:8px 8px; min-width:0}
.right-col{display:block}
.right-col .card{width:100%; margin-top:8px}

.hero{width:100%; border-radius:20px; padding:20px; position:relative; color:rgba(255,255,255,0.95); background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); box-shadow:0 12px 30px rgba(10,10,30,0.12); backdrop-filter: blur(6px); overflow:hidden}
.hero .visual{border-radius:14px; min-height:160px}
.hero::before{content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)); pointer-events:none}
.hero .visual{height:320px; border-radius:16px; margin-bottom:16px; overflow:hidden; display:flex; align-items:flex-end; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent), linear-gradient(180deg, rgba(255,120,46,0.18), rgba(255,120,46,0.06)); background-size:cover; box-shadow:inset 0 0 40px rgba(0,0,0,0.06);}
.hero .quote{background:rgba(255,255,255,0.08); color: #fff; padding:18px; border-radius:14px; max-width:340px; font-weight:600}
.h1-large{font-size:34px; font-weight:700; margin:6px 0 8px}
.lead{color:var(--muted); margin-bottom:20px}
.form-card{background:transparent}
.form-field{display:block; width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(15,15,15,0.06); background:rgba(255,255,255,0.98); margin-bottom:12px; font-size:15px}
.input-label{font-size:13px; margin-bottom:6px; display:block}
.gradient-btn{display:inline-block; padding:12px 18px; border-radius:12px; color:white; font-weight:700; background:linear-gradient(90deg,var(--gradient-1), var(--gradient-2)); box-shadow:0 8px 24px rgba(243,107,42,0.18); border:none; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease}
.gradient-btn:hover{transform:translateY(-2px); box-shadow:0 12px 30px rgba(243,107,42,0.22)}
.gradient-btn:active{transform:translateY(1px)}

.form-field:focus{outline:none; box-shadow:0 0 0 4px rgba(255,122,46,0.12); border-color:var(--accent-700)}
.gradient-btn:focus{outline:none; box-shadow:0 0 0 4px rgba(255,122,46,0.14)}
.secondary-btn{background:transparent; color:var(--accent); border:1px solid rgba(15,15,15,0.05); padding:10px 14px; border-radius:10px}
.social-row{display:flex; gap:10px; margin-top:14px}
.social-row .social{width:44px; height:44px; border-radius:10px; background:rgba(255,255,255,0.85); display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(10,10,30,0.08)}
/* smaller helpers */
..status-pill{background:var(--glass); padding:6px 10px; border-radius:999px; font-weight:600}
.time{font-size:18px; font-weight:700}
@media (min-width:921px){ .time{font-size:22px} }
.toast{padding:10px 14px; border-radius:8px; background:#e9f7ec; color:#155724; display:inline-block}
.help{margin-top:8px; color:var(--muted)}
/* Login helper */
.login-center{display:flex; align-items:center; justify-content:center; height:100vh; padding:20px}
.small-card{width:360px}
/* Utilities */
.link-underline{color:var(--gradient-3); text-decoration:none; padding:4px 6px; border-radius:6px; display:inline-block}
.link-underline:hover{background:rgba(255,255,255,0.04); text-decoration:underline}
.actions .muted{margin:0 8px}
.actions a{color:var(--gradient-3); font-weight:600}
.table td .link-underline{padding:4px 6px}
.btn-success{background:#28a745}
.form-inline{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px}
.form-input{padding:8px; border:1px solid #e6e9ef; border-radius:8px; min-width:120px}
.actions{display:flex; gap:8px; align-items:center}
.header-link{color:white; text-decoration:underline}
@media (max-width:920px){
  .app-shell{grid-template-columns:1fr; padding:20px}
  .hero .visual{height:220px}
  /* stack the sidebar under content and allow fluid widths */
  .right-col{order:2}
  .left-col{order:1}
  .right-col .card{max-width:100%; margin-left:0}
  /* ensure the right column becomes full-width and left column stretches */
  .left-col, .right-col{min-width:0}
  .right-col{justify-content:flex-start}
}

/* Mobile-first adjustments for full responsiveness */
@media (max-width:720px){
  body{padding:20px; align-items:flex-start}
  header{padding:12px 14px}
  .app-shell{gap:18px; padding:16px}
  .hero{padding:18px}
  .hero .visual{height:180px}
  .quote{max-width:100%; font-size:15px}
  .left-col, .right-col{padding:0}
  .card{padding:12px; border-radius:12px}
  .form-field{width:100%; font-size:15px}
  .gradient-btn{width:100%}
  .secondary-btn{width:100%; margin-top:8px}
  .status-pill{display:inline-block; font-size:13px}
  /* Ensure main content sits at top and does not overflow the viewport */
  main.site-main{display:block; padding:12px 0}
  body{min-height:100vh}
}

@media (max-width:420px){
  .app-shell{padding:12px; gap:12px}
  .hero .visual{height:140px}
  .h1-large{font-size:22px}
  .lead{font-size:13px}
  .quote{font-size:14px}
  .time{font-size:16px}
  .muted{font-size:13px}
  header{flex-direction:column; align-items:flex-start; gap:8px}
  body{padding:12px}
}

/* ensure inputs behave on very small screens */
@media (max-width:360px){
  .form-field{padding:10px}
  .gradient-btn{padding:12px}
}


/* Specific page helpers */
.status-pill{background:rgba(0,0,0,0.06); padding:6px 10px; border-radius:10px; font-weight:600; color:#0b3d91; background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92)); box-shadow:0 8px 18px rgba(0,0,0,0.04)}
.time{font-size:20px; font-weight:700}
.toast{padding:10px 14px; border-radius:8px; background:#e9f7ec; color:#155724; display:inline-block}
.help{margin-top:8px; color:var(--muted)}
/* Login helper */
.login-center{display:flex; align-items:center; justify-content:center; height:100vh; padding:20px}
.small-card{width:360px}

/* Simplified split login (brand colors) */
.login-center .small-card{max-width:640px; width:100%; padding:20px}
.login-split{display:grid; grid-template-columns:1fr 240px; gap:18px; align-items:center; overflow:hidden}
.login-split .login-left{padding-right:8px}
.login-split .login-right{background:linear-gradient(180deg, rgba(255,122,46,0.06), rgba(255,122,46,0.02)); border-radius:10px; height:160px; display:flex; align-items:center; justify-content:center; padding:12px}
.login-visual-img{width:100%; max-width:180px; height:auto; border-radius:12px; box-shadow:0 12px 28px rgba(15,15,30,0.08); display:block}
.login-split .visual-lock{display:none}
.login-logo{width:48px; height:48px; margin-bottom:8px}
.login-split .h1-large{font-size:22px; margin:6px 0}
.login-form .gradient-btn{min-width:140px}
.login-form .gradient-btn.full{width:100%}
@media (max-width:720px){ .login-center .small-card{padding:16px} .login-split{grid-template-columns:1fr; gap:12px} .login-right{height:140px} .h1-large{font-size:20px} .login-form .gradient-btn{width:100%} }

/* Utilities */
.link-underline{color:var(--accent); text-decoration:underline}
.btn-success{background:#28a745}
.form-inline{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px}
.form-input{padding:8px; border:1px solid #e6e9ef; border-radius:8px; min-width:120px}
.actions{display:flex; gap:8px; align-items:center}
.header-link{color:white; text-decoration:underline}
@media (max-width:520px){.time{font-size:18px} .form-row{flex-direction:column} .container{padding:12px} .card{padding:14px} .small-card{width:100%}}

.form-row .form-field{flex:1; min-width:80px}
.form-row .form-field.wide{flex:2}
.checkbox-label{display:flex; align-items:center; gap:8px}
.mt-8{margin-top:8px}
.actions .muted{margin:0 6px}
