*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  height:100%;
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:Arial, Helvetica, sans-serif;
  background:#6f73d2;
  color:#111;
}


/* HEADER */

.top-header{
  background:#f6f7fb;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-title{
  color:#2e64ff;
  font-weight:700;
}

.logo-img{
  width:80px;
  height:auto;
}


/* NAV */

.nav{
  background:#f6f7fb;
  padding:10px 0 14px;
  display:flex;
  justify-content:center;
  gap:170px;
  border-bottom:3px solid rgba(0,0,0,0.06);
}

.nav-link{
  text-decoration:none;
  color:#111;
  font-weight:600;
  padding:8px 10px;
  border-radius:8px;
  transition:0.15s;
}

.nav-link:hover{
  background:rgba(46,100,255,0.10);
  color:#2e64ff;
}

.nav-link.active{
  color:#2e64ff;
}


/* INDEX PAGE */

.main{
  max-width:980px;
  margin:auto;
  padding:44px 14px 70px;
  flex:1;
  width:100%;
}

.card{
  background:white;
  border-radius:10px;
  padding:34px;
  margin:34px 0;
  box-shadow:0 8px 18px rgba(0,0,0,0.10);
}

.hero h1{
  text-align:center;
  font-size:34px;
  margin-bottom:14px;
}

.desc{
  text-align:center;
  max-width:740px;
  margin:auto;
  font-size:14px;
  color:#333;
}

.buttons{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:18px;
}

.btn{
  padding:10px 18px;
  border-radius:8px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  border:none;
}

.btn.primary{
  background:#2e64ff;
  color:white;
}

.btn.primary:hover{
  filter:brightness(.95);
}

.btn.outline{
  border:2px solid #2e64ff;
  background:transparent;
  color:#2e64ff;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.box{
  background:#f3f6fb;
  padding:18px;
  border-radius:10px;
}

.icon{
  font-size:36px;
  margin-bottom:8px;
}

.users .userbox{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:130px;
}

.usericon{
  font-size:50px;
  margin-bottom:10px;
}


/* AUTH PAGES */

.auth-wrap{
  flex:1;
  min-height:calc(100vh - 160px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 14px 60px;
}

.auth-card{
  width:430px;
  max-width:100%;
  background:white;
  border-radius:12px;
  padding:26px;
  box-shadow:0 10px 22px rgba(0,0,0,0.14);
  position:relative;
}

.auth-card h1{
  text-align:center;
  margin-top:10px;
}

.subtitle{
  text-align:center;
  font-size:13px;
  color:#666;
  margin-bottom:20px;
}

.card h2{
  text-align:center;
  margin-bottom:25px;
  font-size:34px;
}


/* BACK BUTTON */

.back-btn{
  position:absolute;
  top:18px;
  left:18px;
  width:60px;
  height:32px;
  border-radius:8px;
  background:#2e64ff;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:18px;
}

.back-btn:hover{
  filter:brightness(.95);
}


/* FORM */

form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

label{
  font-size:13px;
  font-weight:600;
}

.req{
  color:#2e64ff;
}

input,
select{
  width:100%;
  padding:10px;
  border-radius:7px;
  border:1px solid #ccc;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#2e64ff;
  box-shadow:0 0 0 3px rgba(46,100,255,0.12);
  outline:none;
}

.hint{
  font-size:11px;
  color:#777;
}


/* CHECKBOX */

.check-row{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.check{
  font-size:13px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:#111;
  justify-content:flex-start;
}

.check input{
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 auto;
}


/* BUTTON */

.btn.full{
  width:100%;
  margin-top:10px;
}


/* LINK UNDER BUTTON */

.center-link{
  text-align:center;
  margin-top:10px;
}

.center-link a{
  color:#2e64ff;
  font-weight:600;
  text-decoration:none;
}

.center-link a:hover{
  text-decoration:underline;
}


/* FOOTER */

.footer{
  width:100%;
  background:#f6f7fb;
  border-top:1px solid #e6ebf2;
  padding:14px 20px;
  margin-top:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:#6b778c;
}

.footer a{
  color:#6b778c;
  text-decoration:none;
  margin-left:18px;
}

.footer a:hover{
  color:#2e64ff;
}


/* FORGOT PASSWORD PAGE */

.auth-card form{
  margin-top:15px;
}

.auth-card .btn.full{
  margin-top:18px;
}

.auth-card{
  width:460px;
}


/* FEEDBACK PAGE */

.feedback-card{
  width:500px;
  max-width:100%;
}

textarea{
  width:100%;
  min-height:120px;
  padding:10px;
  border-radius:7px;
  border:1px solid #ccc;
  font-family:Arial, Helvetica, sans-serif;
  font-size:12.5px;
  resize:none;
}


/* TERMS */

.terms-text h3{
  margin-top:18px;
  margin-bottom:6px;
  font-size:16px;
  color:#2e64ff;
}


/* FORM VALIDATION */

.just-validate-error-field{
  border-color:#d93025 !important;
  box-shadow:0 0 0 3px rgba(217,48,37,0.12) !important;
}

.just-validate-error-label{
  color:#d93025;
  font-size:11px;
  margin-top:4px;
  display:block;
}


/* PASSWORD STRENGTH */

.pw-strength{
  font-size:11px;
  color:#555;
  margin-top:-6px;
}


/* FIELD WRAPPERS */

.field-wrap,
.fullname-field-wrap,
.email-field-wrap,
.password-field-wrap,
.role-field-wrap,
.dept-field-wrap,
.pass-field-wrap,
.pass2-field-wrap,
.fb-name-field-wrap,
.fb-email-field-wrap,
.fb-type-field-wrap,
.fb-msg-field-wrap,
.fp-email-field-wrap{
  display:flex;
  flex-direction:column;
}


/* TERMS OF SERVICE ACCEPTANCE */

.terms-check-wrap{
  margin-top:18px;
  margin-bottom:18px;
}

.terms-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:15px;
  color:#333;
  line-height:1.5;
}

.terms-check input[type="checkbox"]{
  margin-top:3px;
  width:18px;
  height:18px;
  cursor:pointer;
}

.terms-check a{
  color:#2e64ff;
  text-decoration:none;
  font-weight:600;
}

.terms-check a:hover{
  text-decoration:underline;
}

/* LOGGED-IN HOME PAGE */

.app-main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#6f73d2;
}

.app-content{
  flex:1;
  padding:30px;
  background:transparent;
  min-height:calc(100vh - 120px);
}

.home-main{
  max-width:980px;
  width:100%;
  margin:0 auto;
  padding:14px 14px 40px;
  background:transparent;
  min-height:auto;
}
.home-main .card{
  margin:34px 0;
}

.home-main .users .userbox:hover{
  background:#eaf1ff;
  transition:0.15s;
}

/* AUDIO UPLOAD PAGE */

.app-body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:#f3f4f6;
  color:#1c2434;
}

.app-layout{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:260px;
  background:#ffffff;
  border-right:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
}

.sidebar-top{
  padding:18px 22px;
  height:70px;
  display:flex;
  align-items:center;
}

.sidebar-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.sidebar-brand-title{
  font-size:14px;
  font-weight:700;
  color:#5a73a8;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  padding:24px 0;
}

.side-link{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 24px;
  text-decoration:none;
  color:#2d3748;
  font-size:15px;
  transition:0.15s;
}

.side-link:hover{
  background:#f6f8fc;
}

.side-link.active{
  background:#eef2f8;
  color:#2e64ff;
}

.side-icon{
  width:20px;
  text-align:center;
  font-size:18px;
}

.app-main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.app-topbar{
  background:#ffffff;
  height:70px;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e5e7eb;
}

.app-user-info h1{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#2d3748;
}

.app-user-info p{
  margin:6px 0 0;
  font-size:14px;
  color:#6b7280;
}

.app-top-right{
  display:flex;
  align-items:center;
  gap:20px;
}

.account-btn{
  background:#edf2fb;
  color:#4c6ddf;
  border:1px solid #dbe4f4;
  border-radius:12px;
  padding:11px 18px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.account-btn:hover{
  filter:brightness(.98);
}

.app-top-logo{
  width:78px;
  height:auto;
}

.app-content {
  padding: 30px;
  background: #6f73d2;
  min-height: calc(100vh - 120px);
}

.upload-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.upload-card{
  background:#ffffff;
  border-radius:24px;
  margin-bottom:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.upload-card-inner{
  padding:34px 34px 30px;
}

.upload-card h2{
  margin:0 0 10px;
  font-size:26px;
  color:#1f2a44;
  text-align:left;
}

.upload-subtitle{
  margin:0 0 22px;
  font-size:14px;
  color:#7b8794;
}

.upload-drop-zone{
  border:2px dashed #d9e0ea;
  border-radius:22px;
  background:#fbfcfe;
  min-height:380px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:30px 20px;
}

.upload-drop-zone.dragover{
  border-color:#2e64ff;
  background:#f4f8ff;
}

.upload-icon{
  font-size:58px;
  margin-bottom:18px;
}

.upload-drop-zone h3{
  margin:0 0 10px;
  font-size:26px;
  color:#1f2a44;
}

.browse-text{
  margin:0 0 10px;
  font-size:15px;
  color:#808b98;
}

.browse-link{
  background:none;
  border:none;
  color:#2e64ff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  padding:0;
}

.browse-link:hover{
  text-decoration:underline;
}

.upload-meta{
  margin:6px 0;
  font-size:14px;
  color:#8a94a6;
}

.selected-file-box{
  margin-top:18px;
  width:360px;
  max-width:100%;
  background:#eef3fb;
  border:1px solid #dde5f2;
  border-radius:12px;
  padding:14px 16px;
  text-align:center;
  color:#4b5563;
  font-weight:600;
}

.details-card form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.details-card label{
  font-size:14px;
  font-weight:700;
  color:#2b3445;
  margin-bottom:-8px;
}

.details-card select,
.details-card input[type="date"]{
  width:100%;
  padding:14px 16px;
  border:1px solid #d8dee9;
  border-radius:12px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}

.details-card select:focus,
.details-card input[type="date"]:focus{
  outline:none;
  border-color:#2e64ff;
  box-shadow:0 0 0 3px rgba(46,100,255,0.12);
}

.speaker-options{
  display:flex;
  gap:28px;
  align-items:center;
  padding-top:4px;
  padding-bottom:6px;
}

.speaker-option{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:#374151;
}

.speaker-option input{
  width:16px;
  height:16px;
  margin:0;
}

.upload-main-btn{
  width:100%;
  margin-top:8px;
  padding:14px 18px;
  background:#2e64ff;
  color:#ffffff;
  border:none;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.upload-main-btn:hover{
  filter:brightness(.96);
}

.app-footer{
  background:#ffffff;
  border-top:1px solid #e5e7eb;
  padding:18px 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#111827;
}

.app-footer-links a{
  color:#111827;
  text-decoration:none;
  margin-left:28px;
}

.app-footer-links a:hover{
  color:#2e64ff;
}


/* ACCOUNT DROPDOWN */

.account-menu{
  position:relative;
}

.account-dropdown{
  position:absolute;
  right:0;
  top:46px;
  background:white;
  border:1px solid #e6ebf2;
  border-radius:10px;
  width:160px;
  box-shadow:0 10px 20px rgba(0,0,0,0.1);
  display:none;
  flex-direction:column;
  overflow:hidden;
  z-index:10;
}

.account-dropdown a,
.account-dropdown button{
  padding:12px 14px;
  font-size:14px;
  background:none;
  border:none;
  text-align:left;
  cursor:pointer;
  color:#333;
  text-decoration:none;
}

.account-dropdown a:hover,
.account-dropdown button:hover{
  background:#f4f6fb;
}


/* RESPONSIVE */

@media (max-width:1100px){
  .sidebar{
    width:220px;
  }

  .upload-card-inner{
    padding:24px;
  }
}

@media (max-width:900px){
  .nav{
    gap:40px;
    flex-wrap:wrap;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .footer{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
  }

  .footer a{
    margin-left:0;
    margin-right:18px;
  }

  .app-layout{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    border-right:none;
    border-bottom:1px solid #e5e7eb;
  }

  .sidebar-nav{
    padding:12px 0;
  }

  .side-link{
    padding:14px 18px;
  }

  .app-topbar{
    flex-direction:column;
    gap:16px;
    align-items:flex-start;
    height:auto;
    padding:16px 20px;
  }

  .app-top-right{
    width:100%;
    justify-content:space-between;
  }

  .upload-page-shell{
    padding:18px 14px;
  }

  .upload-drop-zone{
    min-height:300px;
  }

  .upload-drop-zone h3{
    font-size:22px;
  }

  .speaker-options{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .app-footer{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
  }

  .app-footer-links a{
    margin-left:0;
    margin-right:18px;
  }
}
/* PROFILE PAGE */

.profile-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.profile-header-card,
.profile-section-card,
.danger-zone-card{
  width:100%;
  max-width:820px;
  margin:0 auto 18px;
  background:#ffffff;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.profile-header-card{
  padding:18px 24px;
}

.profile-header-card h2{
  margin:0 0 6px;
  font-size:22px;
  color:#1f2a44;
}

.profile-header-card p{
  margin:0;
  color:#7b8794;
  font-size:14px;
}

.profile-section-card{
  padding:18px 24px 22px;
}

.section-title{
  text-align:center;
  margin:0 0 16px;
  font-size:17px;
  color:#2d3748;
  padding-bottom:12px;
  border-bottom:1px solid #e9edf3;
}

.profile-picture-box{
  background:#f5f7fc;
  border-radius:10px;
  padding:22px 18px;
  display:flex;
  align-items:center;
  gap:18px;
}

.profile-avatar{
  width:74px;
  height:74px;
  border-radius:50%;
  background:#6f73d2;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:700;
  flex:0 0 auto;
}

.profile-photo-img{
  width:74px;
  height:74px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #e5ebf3;
  flex:0 0 auto;
}

.profile-picture-info h4{
  margin:0 0 6px;
  font-size:20px;
  color:#2d3748;
}

.profile-picture-info p{
  margin:0 0 12px;
  color:#7b8794;
  font-size:14px;
}

.profile-picture-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.profile-photo-btn{
  min-width:120px;
}

.profile-remove-btn,
.profile-outline-btn{
  background:#fff;
  color:#4c6ddf;
  border:1px solid #9eb4df;
  border-radius:8px;
  padding:10px 16px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.profile-remove-btn:hover,
.profile-outline-btn:hover{
  background:#f5f8ff;
}

.profile-grid-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.profile-field{
  display:flex;
  flex-direction:column;
  margin-bottom:12px;
}

.profile-field label{
  margin-bottom:6px;
  font-size:13px;
  font-weight:700;
  color:#2b3445;
}

.profile-field input,
.profile-field select,
.profile-field textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid #d8dee9;
  border-radius:8px;
  font-size:14px;
  background:#ffffff;
}

.profile-field input[readonly]{
  background:#f8f9fb;
  color:#687385;
}

.profile-field textarea{
  min-height:90px;
  resize:none;
  font-family:Arial, Helvetica, sans-serif;
}

.profile-save-btn{
  width:auto;
  min-width:120px;
}

.security-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
}

.security-item{
  background:#f5f7fc;
  border-radius:10px;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.security-item h4{
  margin:0 0 4px;
  font-size:16px;
  color:#2d3748;
}

.security-item p{
  margin:0;
  color:#7b8794;
  font-size:13px;
}

.security-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.switch{
  position:relative;
  display:inline-block;
  width:46px;
  height:26px;
  flex:0 0 auto;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  cursor:pointer;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:#cfd6df;
  transition:.2s;
  border-radius:999px;
}

.slider:before{
  position:absolute;
  content:"";
  height:18px;
  width:18px;
  left:4px;
  top:4px;
  background:white;
  transition:.2s;
  border-radius:50%;
}

.switch input:checked + .slider{
  background:#2e64ff;
}

.switch input:checked + .slider:before{
  transform:translateX(20px);
}

.danger-zone-card{
  padding:18px 24px 22px;
  background:#fff3f1;
  border:1px solid #f5c6be;
}

.danger-zone-card h3{
  margin:0 0 6px;
  color:#c0392b;
  font-size:18px;
}

.danger-zone-card p{
  margin:0 0 14px;
  color:#7a5b56;
  font-size:14px;
}

.danger-btn{
  background:#ef4d3c;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 16px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.danger-btn:hover{
  filter:brightness(.96);
}

@media (max-width:900px){
  .profile-grid-two{
    grid-template-columns:1fr;
  }

  .profile-picture-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .profile-header-card,
  .profile-section-card,
  .danger-zone-card{
    max-width:100%;
  }
}

/* TRANSCRIPTION PAGES */

.transcription-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.transcription-main-card{
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:24px 24px 20px;
}


/* TRANSCRIPTION VIEWER HEADER */

.transcription-header-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:18px;
}

.transcription-header-box h2{
  margin:0;
  font-size:28px;
  color:#1f2a44;
}

.new-transcription-btn{
  min-width:190px;
  font-size:14px;
  white-space:nowrap;
}


/* NEW TRANSCRIPTION HEADER */

.new-transcription-header{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:16px;
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:18px;
}

.new-transcription-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
}

.new-transcription-text h2{
  margin:0;
  font-size:28px;
  color:#1f2a44;
}

.transcription-back-btn{
  background:#2e64ff;
  border:none;
  color:#ffffff;
  font-size:20px;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  transition:0.2s;
  flex-shrink:0;
}

.transcription-back-btn:hover{
  background:#1d4ed8;
}


/* TRANSCRIPTION SELECT */

.transcription-select-row{
  margin-bottom:18px;
}

.transcription-select-box{
  max-width:380px;
}

.transcription-select-box label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#2b3445;
  margin-bottom:8px;
}

.transcription-select-box select{
  width:100%;
  padding:12px 14px;
  border:1px solid #d8dee9;
  border-radius:10px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}


/* TRANSCRIPTION META HEADER */

.transcription-meta-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:18px;
}

.transcription-meta-header h3{
  margin:0 0 8px;
  font-size:24px;
  color:#1f2a44;
}

.transcription-meta-header p{
  margin:0 0 8px;
  color:#6f7c8f;
  font-size:14px;
}

.transcription-top-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.small-action-btn{
  min-width:110px;
  height:46px;
}

.transcription-outline-btn{
  background:#fff;
  color:#4c6ddf;
  border:2px solid #7ea0e8;
  border-radius:12px;
  padding:12px 22px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.transcription-outline-btn:hover{
  background:#f5f8ff;
}

/*delete audio and create transcript buttons */
/* buttons container */
.stacked-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:180px;
}


/* TRANSCRIPT CONTENT */

.transcript-scroll-box{
  background:#f5f7fc;
  border-radius:14px;
  padding:16px;
  max-height:760px;
  overflow-y:auto;
  margin-bottom:18px;
}

.transcript-line{
  background:#ffffff;
  border-radius:12px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:120px 140px 1fr;
  align-items:start;
  gap:12px;
  margin-bottom:14px;
}

.transcript-time{
  color:#5373a7;
  font-weight:700;
  font-size:14px;
}

.transcript-speaker{
  color:#2d3748;
  font-weight:700;
  font-size:15px;
}

.transcript-text{
  color:#4b5563;
  font-size:15px;
  line-height:1.5;
}

.transcript-highlight{
  background:#f5e767;
  padding:0 3px;
  border-radius:3px;
}


/* TRANSCRIPTION ACTIONS */

.transcription-bottom-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.bottom-action-btn{
  min-width:190px;
  font-size:14px;
}

.export-btn{
  min-width:190px;
}


.transcription-empty-state{
  background:#f5f7fc;
  border-radius:14px;
  padding:50px 20px;
  text-align:center;
}

.transcription-empty-state h3{
  margin:0 0 10px;
  font-size:24px;
  color:#1f2a44;
}

.transcription-empty-state p{
  margin:0;
  color:#6f7c8f;
  font-size:14px;
}


/* AUDIO LIST FOR NEW TRANSCRIPTION */

.audio-list-wrap{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.audio-select-card{
  background:#f5f7fc;
  border-radius:14px;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.audio-select-info h3{
  margin:0 0 8px;
  font-size:20px;
  color:#1f2a44;
}

.audio-select-info p{
  margin:0 0 6px;
  color:#6f7c8f;
  font-size:14px;
}

.audio-select-actions{
  flex:0 0 auto;
}

.stacked-actions button{
  width:180px;
  height:36px;
  font-size:13px;
  font-weight:600;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* delete button */
.btn.danger{
  background:#dc3545;
  color:#fff;
  border:none;
}

.btn.danger:hover{
  opacity:0.9;
}



/* RESPONSIVE */

@media (max-width:900px){
  .transcription-header-box,
  .transcription-meta-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .transcript-line{
    grid-template-columns:1fr;
    gap:8px;
  }

  .transcription-bottom-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .new-transcription-btn,
  .bottom-action-btn,
  .export-btn,
  .small-action-btn,
  .create-transcription-btn{
    width:100%;
  }

  .audio-select-card{
    flex-direction:column;
    align-items:flex-start;
  }
}

/*feedback logged in*/
#fb-title{
  text-align:center;
  margin-top:0;
  margin-bottom:6px;
}

.feedback-card .subtitle{
  text-align:center;
  margin-bottom:22px;
}


/* CASE MANAGEMENT PAGE */

.case-management-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.case-management-card{
  background:#ffffff;
  border-radius:24px;
  margin-bottom:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:34px;
}

.case-management-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

.case-management-header h2{
  margin:0 0 10px;
  font-size:26px;
  color:#1f2a44;
  font-weight:700;
}

.create-case-btn{
  min-width:230px;
  height:50px;
  border:none;
  border-radius:12px;
  background:#2e64ff;
  color:#ffffff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.create-case-btn:hover{
  filter:brightness(.96);
}

.case-management-divider{
  height:1px;
  background:#e9edf3;
  margin:22px 0;
}

.case-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.case-box{
  background:#ffffff;
  border:1px solid #e5ebf3;
  border-radius:14px;
  padding:24px;
}

.case-box-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.case-id{
  font-size:14px;
  font-weight:700;
  color:#7b8794;
}

.case-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:70px;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.case-status.active{
  background:#d8f5e3;
  color:#208c5c;
}

.case-status.closed{
  background:#e8edf3;
  color:#5f6c7c;
}

.case-box h3{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.35;
  color:#1f2a44;
}

.case-box p{
  margin:0 0 10px;
  color:#6f7c8f;
  font-size:14px;
}

.case-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.case-view-btn{
  min-width:84px;
  height:38px;
  border:none;
  border-radius:10px;
  background:#2e64ff;
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.case-view-btn:hover{
  filter:brightness(.96);
}

.case-edit-btn{
  min-width:84px;
  height:38px;
  border:2px solid #2e64ff;
  border-radius:10px;
  background:#ffffff;
  color:#2e64ff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.case-edit-btn:hover{
  background:#f5f8ff;
}

.case-empty-state{
  grid-column:1 / -1;
  background:#f5f7fc;
  border-radius:14px;
  padding:50px 20px;
  text-align:center;
}

.case-empty-state h3{
  margin:0 0 10px;
  font-size:24px;
  color:#1f2a44;
}

.case-empty-state p{
  margin:0;
  color:#6f7c8f;
  font-size:14px;
}

/* CASE MODAL*/

.case-modal{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,0.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1000;
}

.case-modal.show{
  display:flex;
}

.case-modal-box{
  width:100%;
  max-width:520px;
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 14px 30px rgba(0,0,0,0.18);
  padding:26px;
}

.case-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}

.case-modal-header h3{
  margin:0;
  font-size:24px;
  color:#1f2a44;
}

.case-modal-close{
  background:none;
  border:none;
  font-size:28px;
  color:#6b7280;
  cursor:pointer;
  line-height:1;
}

.case-modal-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.case-modal-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.case-modal-field label{
  font-size:14px;
  font-weight:700;
  color:#2b3445;
}

.case-modal-field input,
.case-modal-field select{
  width:100%;
  padding:12px 14px;
  border:1px solid #d8dee9;
  border-radius:10px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}

.case-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:8px;
}

.case-cancel-btn{
  min-width:100px;
  height:42px;
  border:1px solid #d6dde8;
  border-radius:10px;
  background:#ffffff;
  color:#374151;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.case-save-btn{
  min-width:120px;
  height:42px;
  border:none;
  border-radius:10px;
  background:#2e64ff;
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.case-cancel-btn:hover{
  background:#f9fafb;
}

.case-save-btn:hover{
  filter:brightness(.96);
}

@media (max-width:1100px){
  .case-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:900px){
  .case-management-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .create-case-btn{
    width:100%;
  }

  .case-grid{
    grid-template-columns:1fr;
  }

  .case-modal-actions{
    flex-direction:column;
  }

  .case-cancel-btn,
  .case-save-btn{
    width:100%;
  }
}

/* KEYWORD DETECTION PAGE */

.keyword-detection-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.keyword-detection-main-card{
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:24px;
}

.keyword-detection-header{
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:18px;
}

.keyword-detection-header h2{
  margin:0 0 8px;
  font-size:28px;
  color:#1f2a44;
}

.keyword-detection-header p{
  margin:0;
  font-size:14px;
  color:#6f7c8f;
}

.keyword-detection-top-box{
  background:#f5f7fc;
  border-radius:16px;
  padding:18px;
  margin-bottom:18px;
}

.keyword-detection-select-box{
  max-width:420px;
}

.keyword-detection-select-box label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#2b3445;
  margin-bottom:8px;
}

.keyword-detection-select-box select{
  width:100%;
  padding:12px 14px;
  border:1px solid #d8dee9;
  border-radius:10px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}

.keyword-filter-box{
  background:#f5f7fc;
  border-radius:16px;
  padding:18px;
  margin-bottom:20px;
}

.keyword-filter-tabs{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.keyword-filter-tab{
  border:none;
  background:#ffffff;
  color:#374151;
  border-radius:999px;
  padding:11px 18px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  border:1px solid #d8dee9;
}

.keyword-filter-tab.active{
  background:#2e64ff;
  color:#ffffff;
  border-color:#2e64ff;
}

.keyword-filter-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}

.keyword-filter-field{
  display:flex;
  flex-direction:column;
}

.keyword-filter-field label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#2b3445;
  margin-bottom:8px;
}

.keyword-filter-field input{
  width:100%;
  padding:12px 14px;
  border:1px solid #d8dee9;
  border-radius:10px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}

.keyword-filter-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.keyword-results-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.keyword-card{
  background:#ffffff;
  border:1px solid #e5ebf3;
  border-radius:14px;
  padding:20px;
}

.keyword-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}

.keyword-card-top h3{
  margin:0;
  font-size:20px;
  color:#1f2a44;
  line-height:1.35;
}

.keyword-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:82px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.keyword-badge.default{
  background:#eef2ff;
  color:#4c6ddf;
}

.keyword-badge.name{
  background:#fff4b5;
  color:#7a6500;
}

.keyword-badge.location{
  background:#ffd6ec;
  color:#9c1c64;
}

.keyword-badge.date{
  background:#d9f8d9;
  color:#1e7d32;
}

.keyword-badge.time{
  background:#d8ebff;
  color:#1b5fa8;
}

.keyword-card-info p{
  margin:0 0 10px;
  color:#6f7c8f;
  font-size:14px;
  line-height:1.5;
}

.keyword-card-info strong{
  color:#374151;
}

.keyword-card-line{
  height:8px;
  background:#e9edf3;
  border-radius:999px;
  overflow:hidden;
  margin-top:18px;
}

.keyword-card-line-fill{
  height:100%;
  border-radius:999px;
}

.keyword-card-line-fill.default{
  background:#2e64ff;
}

.keyword-card-line-fill.person{
  background:#2e64ff;
}

.keyword-card-line-fill.location{
  background:#22a06b;
}

.keyword-card-line-fill.date{
  background:#8b5cf6;
}

.keyword-card-line-fill.time{
  background:#f59e0b;
}

.keyword-empty-state{
  background:#f5f7fc;
  border-radius:14px;
  padding:50px 20px;
  text-align:center;
}

.keyword-empty-state h3{
  margin:0 0 10px;
  font-size:24px;
  color:#1f2a44;
}

.keyword-empty-state p{
  margin:0;
  color:#6f7c8f;
  font-size:14px;
}

@media (max-width:1100px){
  .keyword-results-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .keyword-filter-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:900px){
  .keyword-results-grid,
  .keyword-filter-grid{
    grid-template-columns:1fr;
  }

  .keyword-filter-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .keyword-card-top{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* KEYWORD MANAGEMENT PAGE */

.keyword-management-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.keyword-management-main-card{
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:24px;
}

.keyword-management-header{
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:18px;
}

.keyword-management-header-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.keyword-management-header h2{
  margin:0 0 8px;
  font-size:28px;
  color:#1f2a44;
}

.keyword-management-header p{
  margin:0;
  font-size:14px;
  color:#6f7c8f;
}

.keyword-management-header-note{
  font-size:14px;
  color:#6f7c8f;
  margin-top:6px;
}


.keyword-management-top-box{
  background:#f5f7fc;
  border-radius:16px;
  padding:18px;
  margin-bottom:20px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  flex-wrap:wrap;
}

.keyword-management-select-box{
  width:100%;
  max-width:420px;
}

.keyword-management-select-box label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#2b3445;
  margin-bottom:8px;
}

.keyword-management-select-box select{
  width:100%;
  padding:12px 14px;
  border:1px solid #d8dee9;
  border-radius:10px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}

.keyword-groups-wrap{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.keyword-group-card{
  background:#fdfdfd;
  border:1px solid #e5ebf3;
  border-radius:14px;
  padding:22px;
}

.keyword-group-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.keyword-group-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.keyword-group-icon{
  font-size:20px;
}

.keyword-group-title h3{
  margin:0;
  font-size:18px;
  color:#1f2a44;
}

.keyword-count{
  font-size:14px;
  color:#7b8794;
}

.keyword-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  min-height:28px;
  margin-bottom:18px;
}

.keyword-manage-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:#eef1f6;
  border-radius:999px;
  font-size:14px;
  color:#374151;
}

.keyword-manage-chip-text{
  line-height:1;
}

.keyword-manage-chip-remove{
  width:22px;
  height:22px;
  border:none;
  border-radius:50%;
  background:#ef4444;
  color:#ffffff;
  font-size:15px;
  cursor:pointer;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.keyword-manage-chip-remove:hover{
  filter:brightness(.96);
}

.keyword-add-row{
  display:flex;
  gap:10px;
  align-items:center;
}

.keyword-add-row input{
  flex:1;
  width:100%;
  padding:12px 14px;
  border:1px solid #d8dee9;
  border-radius:10px;
  font-size:14px;
  background:#ffffff;
  color:#374151;
}

.keyword-add-btn{
  min-width:78px;
  height:42px;
  border:none;
  border-radius:10px;
  background:#2e64ff;
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  padding:0 18px;
}

.keyword-add-btn:hover{
  filter:brightness(.96);
}

.keyword-empty-state{
  background:#f5f7fc;
  border-radius:14px;
  padding:50px 20px;
  text-align:center;
}

.keyword-empty-state h3{
  margin:0 0 10px;
  font-size:24px;
  color:#1f2a44;
}

.keyword-empty-state p{
  margin:0;
  color:#6f7c8f;
  font-size:14px;
}

@media (max-width:900px){
  .keyword-management-header-row{
    flex-direction:column;
  }

  .keyword-management-header-note{
    text-align:left;
    max-width:none;
  }

  .keyword-management-top-box{
    flex-direction:column;
    align-items:stretch;
  }

  .keyword-management-select-box{
    max-width:100%;
  }

  .keyword-add-row{
    flex-direction:column;
    align-items:stretch;
  }

  .keyword-add-btn{
    width:100%;
  }

  .keyword-group-header{
    flex-direction:column;
    align-items:flex-start;
  }
}

.keyword-name{
  background:#fff3a0;
  padding:2px 4px;
  border-radius:4px;
}

.keyword-location{
  background:#ffc7e6;
  padding:2px 4px;
  border-radius:4px;
}

.keyword-date{
  background:#c8f7c5;
  padding:2px 4px;
  border-radius:4px;
}

.keyword-time{
  background:#cce5ff;
  padding:2px 4px;
  border-radius:4px;
}

/* INVESTIGATOR DASHBOARD  */
.dashboard-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);
}

.dashboard-main-card{
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:24px;
}

.dashboard-header{
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:20px;
}

.dashboard-header h2{
  margin:0 0 8px;
  font-size:28px;
  color:#1f2a44;
}

.dashboard-header p{
  margin:0;
  font-size:14px;
  color:#6f7c8f;
}

.dashboard-stats-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  margin-bottom:20px;
}

.dashboard-stat-box{
  background:#f5f7fc;
  border-radius:16px;
  padding:22px 18px;
  text-align:center;
}

.dashboard-stat-icon{
  font-size:30px;
  margin-bottom:8px;
}

.dashboard-stat-box h3{
  margin:0 0 8px;
  font-size:30px;
  color:#2e64ff;
}

.dashboard-stat-box p{
  margin:0;
  font-size:14px;
  color:#6f7c8f;
  font-weight:600;
}

.dashboard-panel{
  background:#f5f7fc;
  border-radius:16px;
  padding:20px;
}

.dashboard-panel-header{
  border-bottom:1px solid #e2e8f0;
  padding-bottom:14px;
  margin-bottom:16px;
}

.dashboard-panel-header h3{
  margin:0 0 6px;
  font-size:20px;
  color:#1f2a44;
}

.dashboard-panel-header p{
  margin:0;
  font-size:14px;
  color:#6f7c8f;
}

.dashboard-quick-actions{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

.dashboard-action-btn{
  width:100%;
  border:none;
  border-radius:12px;
  background:#ffffff;
  color:#1f2a44;
  padding:16px 18px;
  font-size:14px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  text-align:left;
  border:1px solid #e5ebf3;
}

.dashboard-action-btn:hover{
  background:#eef4ff;
}

.dashboard-action-icon{
  font-size:20px;
  flex:0 0 auto;
}

@media (max-width:1100px){
  .dashboard-stats-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:900px){
  .dashboard-stats-grid{
    grid-template-columns:1fr;
  }

  .dashboard-quick-actions{
    grid-template-columns:1fr;
  }
}

/* TERMS LOGGED-IN PAGE */

.terms-loggedin-page-shell{
  background:#6f73d2;
  padding:28px 24px 26px;
  min-height:calc(100vh - 160px);

  display:flex;
  justify-content:center;
}

.terms-loggedin-card{
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:28px;

  max-width:700px;   
  width:100%;
}

.terms-loggedin-header{
  border-bottom:1px solid #e9edf3;
  padding-bottom:18px;
  margin-bottom:20px;
}

.terms-loggedin-header h2{
  margin:0 0 8px;
  font-size:28px;
  color:#1f2a44;
}

.terms-loggedin-header p{
  margin:0;
  font-size:14px;
  color:#6f7c8f;
}

.terms-loggedin-card .terms-text{
  color:#374151;
  line-height:1.7;
}

.terms-loggedin-card .terms-text p{
  margin-top:0;
  margin-bottom:18px;
  font-size:14px;
  color:#4b5563;
}

/* Admin Account */

/* home admin */

.dashboard-hero{
  margin-bottom:24px;
}

.dashboard-hero-inner{
  background:#ffffff;
  border-radius:20px;
  padding:42px 38px;
  max-width:1100px;
  margin:0 auto;
  text-align:center;
}

.dashboard-hero-inner h2{
  margin:0 0 14px;
  font-size:34px;
  font-weight:700;
  color:#1f2937;
}

.dashboard-hero-inner p{
  max-width:820px;
  margin:0 auto 24px;
  font-size:15px;
  line-height:1.6;
  color:#4b5563;
}

.dashboard-hero-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.dashboard-section-card{
  background:#ffffff;
  border-radius:20px;
  padding:34px 28px;
  max-width:1100px;
  margin:0 auto 28px;
}

.section-title{
  text-align:center;
  margin:0 0 28px;
  font-size:28px;
  font-weight:700;
  color:#1f2937;
  border-bottom:none;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.feature-box{
  background:#f3f5f9;
  border-radius:16px;
  padding:26px 18px;
}

.feature-icon{
  font-size:34px;
  margin-bottom:12px;
}

.feature-box h3{
  margin:0 0 12px;
  font-size:18px;
  color:#1f2937;
}

.feature-box p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#4b5563;
}

.users-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.user-role-box{
  background:#f3f5f9;
  border-radius:16px;
  padding:30px 18px;
  text-align:center;
}

.user-role-icon{
  font-size:38px;
  margin-bottom:12px;
}

.user-role-box h3{
  margin:0;
  font-size:18px;
  color:#1f2937;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:44px;
  border-radius:12px;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  padding:0 18px;
}

.btn.primary{
  background:#2e64ff;
  color:#fff;
}

.btn.primary:hover{
  background:#2557e6;
}

.btn.outline{
  background:#fff;
  color:#2e64ff;
  border:2px solid #2e64ff;
}

.btn.outline:hover{
  background:#f4f7ff;
}

@media (max-width: 1000px){
  .feature-grid,
  .users-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 700px){
  .feature-grid,
  .users-grid{
    grid-template-columns:1fr;
  }

  .dashboard-hero-inner,
  .dashboard-section-card{
    padding:24px 18px;
  }

  .dashboard-hero-inner h2{
    font-size:28px;
  }
}

/*admin dashboard*/
.admin-dashboard-page-shell{
  max-width:1100px;
  margin:0 auto;
}

.admin-dashboard-header-card,
.admin-dashboard-section-card{
  background:#ffffff;
  border-radius:20px;
  padding:30px;
  margin-bottom:24px;
}

.admin-dashboard-header-card h2{
  margin:0 0 10px;
  font-size:30px;
  color:#2d3748;
}

.admin-dashboard-header-card p{
  margin:0;
  color:#6b7280;
  font-size:15px;
}

.admin-dashboard-section-title{
  margin:0 0 22px;
  font-size:24px;
  color:#2d3748;
}

.admin-dashboard-stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:20px;
}

.admin-dashboard-stats-grid-three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.admin-dashboard-stat-card{
  background:#f8f9fc;
  border:1px solid #e7ebf3;
  border-radius:18px;
  padding:24px 18px;
  text-align:center;
}

.admin-dashboard-stat-icon{
  font-size:30px;
  margin-bottom:12px;
}

.admin-dashboard-stat-card h4{
  margin:0 0 8px;
  font-size:28px;
  color:#2d3748;
}

.admin-dashboard-stat-card p{
  margin:0;
  color:#6b7280;
  font-size:14px;
  line-height:1.5;
}

@media (max-width: 1000px){
  .admin-dashboard-stats-grid,
  .admin-dashboard-stats-grid-three{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
  .admin-dashboard-stats-grid,
  .admin-dashboard-stats-grid-three{
    grid-template-columns:1fr;
  }

  .admin-dashboard-header-card,
  .admin-dashboard-section-card{
    padding:22px 18px;
  }

  .admin-dashboard-header-card h2{
    font-size:26px;
  }

  .admin-dashboard-section-title{
    font-size:22px;
  }
}


/* USER MANAGEMENT PAGE */

.user-management-page-shell{
  max-width:1100px;
  margin:0 auto;
  padding:28px 26px 40px;
}

.user-management-header-card,
.user-management-filters-card,
.user-management-table-card{
  background:#fff;
  border-radius:26px;
  padding:28px 34px;
  box-shadow:0 10px 30px rgba(24,39,75,0.08);
  margin-bottom:24px;
}

.user-management-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.user-management-header-row h1{
  margin:0 0 8px;
  font-size:28px;
  font-weight:700;
  color:#111;
}

.user-management-header-row p{
  margin:0;
  font-size:15px;
  color:#666;
}

.add-user-btn{
  min-width:190px;
}

.user-management-filters{
  display:grid;
  grid-template-columns:repeat(4, minmax(180px, 1fr));
  gap:18px;
  align-items:end;
}

.filter-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.filter-group label{
  font-size:14px;
  font-weight:600;
  color:#333;
}

.filter-group input,
.filter-group select{
  width:100%;
  height:44px;
  border:1px solid #d8deea;
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
  background:#fff;
  outline:none;
}

.filter-group input:focus,
.filter-group select:focus{
  border-color:#2e64ff;
  box-shadow:0 0 0 3px rgba(46,100,255,0.10);
}

.filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.primary-btn,
.secondary-btn,
.outline-btn{
  height:46px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  padding:0 18px;
  cursor:pointer;
  transition:0.2s ease;
}

.primary-btn{
  background:#2e64ff;
  color:#fff;
  border:none;
}

.primary-btn:hover{
  background:#2557e6;
}

.secondary-btn{
  background:#2e64ff;
  color:#fff;
  border:none;
}

.secondary-btn:hover{
  background:#2557e6;
}

.outline-btn{
  background:#fff;
  color:#2e64ff;
  border:1.5px solid #2e64ff;
}

.outline-btn:hover{
  background:#f5f8ff;
}

.table-responsive{
  width:100%;
  overflow-x:auto;
}

.user-management-table{
  width:100%;
  border-collapse:collapse;
  min-width:850px;
}

.user-management-table thead th{
  background:#f0f3f8;
  color:#404a5c;
  font-size:14px;
  font-weight:700;
  text-align:left;
  padding:16px 14px;
}

.user-management-table tbody td{
  padding:16px 14px;
  border-bottom:1px solid #eef1f6;
  font-size:15px;
  color:#333;
  vertical-align:middle;
}

.table-loading,
.table-empty{
  text-align:center;
  padding:28px 14px !important;
  color:#666;
  font-weight:600;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:82px;
  height:32px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  padding:0 12px;
}

.status-badge.active{
  background:#dff7e8;
  color:#16824d;
}

.status-badge.inactive{
  background:#fde6e6;
  color:#c53232;
}

.table-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.table-btn{
  min-width:92px;
  height:40px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:0.2s ease;
}

.edit-btn{
  background:#2e64ff;
  color:#fff;
}

.edit-btn:hover{
  background:#2557e6;
}

.danger-btn{
  background:#f24848;
  color:#fff;
}

.danger-btn:hover{
  background:#dd3838;
}

.activate-btn{
  background:#21b66f;
  color:#fff;
}

.activate-btn:hover{
  background:#19985d;
}

/* MODAL */

.custom-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:9999;
}

.custom-modal.hidden{
  display:none;
}

.custom-modal-content{
  background:#fff;
  border-radius:24px;
  width:100%;
  max-width:760px;
  box-shadow:0 18px 60px rgba(15,23,42,0.25);
}

.user-modal-content{
  padding:0;
}

.custom-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 24px 14px;
  border-bottom:1px solid #eef1f6;
}

.custom-modal-header h2{
  margin:0;
  font-size:22px;
  color:#111;
}

.modal-close-btn{
  width:40px;
  height:40px;
  border:none;
  background:#f4f6fb;
  border-radius:10px;
  font-size:24px;
  cursor:pointer;
  color:#444;
}

.user-form{
  padding:22px 24px 24px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label{
  font-size:14px;
  font-weight:700;
  color:#333;
}

.form-group input,
.form-group select{
  width:100%;
  height:46px;
  border:1px solid #d8deea;
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
  outline:none;
}

.form-group input:focus,
.form-group select:focus{
  border-color:#2e64ff;
  box-shadow:0 0 0 3px rgba(46,100,255,0.10);
}

.form-group small{
  color:#777;
  font-size:12px;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
}

/* Responsive */
@media (max-width: 900px){
  .user-management-filters{
    grid-template-columns:1fr 1fr;
  }

  .form-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .user-management-page-shell{
    padding:20px 14px 30px;
  }

  .user-management-header-card,
  .user-management-filters-card,
  .user-management-table-card{
    padding:20px;
    border-radius:20px;
  }

  .user-management-filters{
    grid-template-columns:1fr;
  }

  .user-management-header-row{
    align-items:flex-start;
  }

  .add-user-btn{
    width:100%;
  }

  .modal-actions{
    flex-direction:column;
  }

  .modal-actions button{
    width:100%;
  }
}

/* roles and permissions page */
.roles-page-shell{
  max-width:1100px;
  margin:0 auto;
}

.roles-header-card{
  background:#ffffff;
  border-radius:22px;
  padding:28px 34px;
  margin-bottom:24px;
}

.roles-header-card h2{
  margin:0 0 10px;
  font-size:30px;
  color:#111;
}

.roles-header-card p{
  margin:0;
  font-size:15px;
  color:#777;
}

.roles-cards-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.role-card{
  background:#ffffff;
  border-radius:22px;
  padding:28px 26px 24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  height:100%;
}

.role-card .role-save-btn{
  margin-top:auto;
}

.role-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-size:22px;
  font-weight:700;
  color:#111;
}

.role-icon{
  font-size:26px;
}

.role-card h3{
  margin:0;
  font-size:24px;
  color:#111;
}

.role-divider{
  height:1px;
  background:#e6eaf2;
  margin-bottom:4px;
}

.permission-row{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:15px;
  color:#374151;
  cursor:pointer;
}

.permission-row input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:#8b5cf6;
}

.role-save-btn{
  margin-top:14px;
}

@media (max-width: 1100px){
  .roles-cards-grid{
    grid-template-columns:1fr;
  }
}

/* system logs */
.system-logs-page-shell{
  max-width:1100px;
  margin:0 auto;
}

.logs-header-card,
.logs-filters-card,
.logs-trail-card{
  background:#ffffff;
  border-radius:22px;
  padding:28px 34px;
  margin-bottom:26px;
}

.logs-header-card h2{
  margin:0 0 8px;
  font-size:30px;
  color:#111;
}

.logs-header-card p{
  margin:0;
  font-size:15px;
  color:#8a8a8a;
}

.logs-filters-row{
  display:grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto auto;
  gap:16px;
  align-items:center;
}

.logs-filter-input{
  width:100%;
  height:42px;
  border:1px solid #dfe4ee;
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
  color:#333;
  background:#fff;
}

.logs-filter-btn{
  min-width:140px;
  height:42px;
}

.logs-trail-header{
  margin-bottom:18px;
}

.logs-trail-header h3{
  margin:0;
  font-size:22px;
  color:#1f2937;
}

.logs-trail-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.audit-log-item{
  background:#f4f6fb;
  border-radius:14px;
  padding:18px 18px 16px;
  border-left:4px solid #2e64ff;
}

.log-accent-green{
  border-left-color:#21c57b;
}

.log-accent-blue{
  border-left-color:#2e64ff;
}

.log-accent-purple{
  border-left-color:#8b5cf6;
}

.audit-log-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.audit-log-title{
  font-size:14px;
  font-weight:800;
  color:#1f2937;
}

.audit-log-time{
  font-size:13px;
  color:#8a94a6;
  white-space:nowrap;
}

.audit-log-user{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:#4c63d2;
  margin-bottom:8px;
}

.audit-log-user-icon{
  font-size:14px;
}

.audit-log-description{
  font-size:15px;
  color:#2d3748;
  margin-bottom:8px;
  line-height:1.5;
}

.audit-log-meta{
  font-size:13px;
  color:#7b8798;
}

.logs-empty-state{
  background:#f4f6fb;
  border-radius:14px;
  padding:24px;
  text-align:center;
  color:#6b7280;
  font-size:15px;
}

@media (max-width: 1000px){
  .logs-filters-row{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 700px){
  .logs-filters-row{
    grid-template-columns:1fr;
  }

  .logs-header-card,
  .logs-filters-card,
  .logs-trail-card{
    padding:22px 18px;
  }

  .audit-log-top{
    flex-direction:column;
    align-items:flex-start;
  }
}