/* ==========================================================================
   University of Haripur - Student Portal Official Theme
   Pixel-accurate styling matching live user screenshots
   ========================================================================== */

:root {
  --bg-gradient-login: linear-gradient(115deg, #1b4d3e 0%, #202c52 55%, #251e4b 100%);
  --header-nav-bg: #252055;
  --sidebar-bg: #1f273d;
  --sidebar-active-bg: #487f77;
  --card-header-gradient: linear-gradient(90deg, #245c4b 0%, #282458 100%);
  --button-login-gradient: linear-gradient(90deg, #228b43 0%, #2a2559 100%);
  --content-bg: #d5eae3;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --primary-blue: #0d6efd;
  --border-color: #d1d9e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background-color: var(--content-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   1. LOGIN PAGE (Exact match to Screenshot 1)
   ========================================================================== */
.login-screen-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background: var(--bg-gradient-login);
  padding: 20px;
  position: relative;
}

.login-top-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-top-logo img {
  width: 250px;
  max-width: 80vw;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.login-box-card {
  width: 100%;
  max-width: 410px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: fadeIn 0.3s ease-out;
}

.login-box-header {
  background: var(--card-header-gradient);
  padding: 14px 20px;
  text-align: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.login-box-header h2 {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.login-box-body {
  padding: 24px 28px 28px;
}

.login-field-wrap {
  margin-bottom: 12px;
}

.login-input-row {
  display: flex;
  position: relative;
  width: 100%;
}

.login-icon-box {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f3f5;
  border: 1px solid #ced4da;
  border-right: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  color: #495057;
  font-size: 0.95rem;
}

.login-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.92rem;
  border: 1px solid #ced4da;
  border-radius: 0 4px 4px 0;
  outline: none;
  color: #333;
  transition: border-color 0.2s;
}

.login-input:focus {
  border-color: #2680eb;
}

.login-format-hint {
  text-align: center;
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 5px;
  display: block;
}

.pwd-toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  color: #6c757d;
}

.btn-login-submit {
  width: 100%;
  background: var(--button-login-gradient);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 14px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-login-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.recaptcha-badge-mock {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 3px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #555;
  z-index: 100;
}

.recaptcha-badge-mock img {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   2. MAIN PORTAL LAYOUT (Exact match to Screenshots 2, 3, 4)
   ========================================================================== */
.portal-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navbar Header */
.top-navbar {
  height: 52px;
  background-color: var(--header-nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-hamburger-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.welcome-user-text {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-link-btn {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: opacity 0.2s;
}

.logout-link-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Main Body Layout */
.portal-body-wrapper {
  display: flex;
  flex: 1;
}

/* Sidebar (Left Column) */
.sidebar-panel {
  width: 230px;
  background-color: var(--sidebar-bg);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  color: #c2c7d0;
  box-shadow: 2px 0 6px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  z-index: 1040;
}

.sidebar-brand-box {
  padding: 16px 14px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-box img {
  max-width: 175px;
  height: auto;
}

.sidebar-profile-card {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.4);
}

.sidebar-profile-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Sidebar Navigation Items */
.sidebar-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav-item {
  margin-bottom: 1px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #c2c7d0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  user-select: none;
  position: relative;
}

.sidebar-nav-link i.menu-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-nav-link span.menu-text {
  flex: 1;
}

.sidebar-nav-link i.chevron-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: #9499a0;
}

.sidebar-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.08);
}

/* Active Menu Item (Greenish Teal like Screenshot 2) */
.sidebar-nav-link.active {
  background-color: var(--sidebar-active-bg) !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Submenu dropdown */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,0.22);
  display: none;
}

.sidebar-submenu.show {
  display: block;
}

.sidebar-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 36px;
  color: #b0b6bf;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-submenu li a:hover,
.sidebar-submenu li a.active {
  color: #ffffff;
  background-color: rgba(255,255,255,0.08);
}

.sidebar-badge-new {
  background-color: #ffc107;
  color: #000;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Sidebar Footer (UOH :: CMS) */
.sidebar-cms-box {
  background: #ffffff;
  color: #1e293b;
  margin: 14px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.sidebar-cms-box h5 {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.sidebar-cms-box p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

/* Main Content Area */
.portal-content-main {
  flex: 1;
  background-color: var(--content-bg);
  padding: 20px 24px;
  min-height: calc(100vh - 52px - 36px);
  overflow-y: auto;
}

/* Footer */
.portal-bottom-footer {
  background: linear-gradient(90deg, #1f4f41, #252055);
  color: #ffffff;
  padding: 8px 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   3. DASHBOARD PAGE (Screenshots 2 & 3)
   ========================================================================== */
.uoh-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  margin-bottom: 20px;
}

.uoh-card-header {
  background: var(--card-header-gradient);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uoh-card-body {
  padding: 16px 20px;
}

/* Credentials Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cred-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: underline;
  margin-bottom: 10px;
}

.cred-row {
  display: flex;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.cred-row .label {
  font-weight: 700;
  width: 120px;
  color: #212529;
}

.cred-row .val {
  color: #334155;
  font-weight: 500;
}

/* Slogan Ribbon */
.slogan-ribbon {
  background: var(--card-header-gradient);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.slogan-badge-red {
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Latest Notifications List */
.notification-row-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.92rem;
  line-height: 1.45;
}

.notification-row-item:last-child {
  border-bottom: none;
}

.dots-bullet {
  font-size: 1.1rem;
  color: #334155;
  font-weight: 900;
  line-height: 1;
}

.badge-announcement-new {
  background-color: #e34a36;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

/* ==========================================================================
   4. STUDENT PROFILE PAGE (Screenshot 4)
   ========================================================================== */
.profile-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.profile-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.btn-edit-profile-blue {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-edit-profile-blue:hover {
  opacity: 0.92;
}

/* Profile 2-Column Layout */
.profile-columns-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

/* Left Summary Card */
.profile-summary-box {
  background: #ffffff;
  border-radius: 6px;
  border-top: 3px solid #502a4b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 24px 20px 20px;
  text-align: center;
}

.profile-summary-avatar {
  width: 95px;
  height: 105px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  margin-bottom: 12px;
  background-color: #fff;
  border: 1px solid #d1d5db;
}

.summary-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}

.summary-dept-sub {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.summary-meta-line {
  padding: 10px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  border-top: 1px solid #edf2f7;
}

.summary-email-btn-box {
  background-color: #007bff;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 4px;
  margin-top: 15px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.summary-email-address {
  font-size: 0.86rem;
  color: #007bff;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 8px;
}

.summary-pwd-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.summary-pwd-dots {
  letter-spacing: 2px;
  font-weight: bold;
}

.summary-eye-circle {
  width: 26px;
  height: 26px;
  background-color: #28a745;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Right Information Card */
.profile-info-form-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.info-form-header {
  background: var(--card-header-gradient);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.info-form-body {
  padding: 20px;
}

.info-row-field {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.info-row-label {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.92rem;
}

.info-row-value-box {
  background-color: #eef2f5;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

/* ==========================================================================
   5. EXAMINATION SUBSYSTEM (Exact match to User's New Screenshots)
   ========================================================================== */

/* Filter Row: Select Session & Search Button */
.exam-filter-row {
  margin-bottom: 18px;
}

.exam-filter-label {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}

.exam-select-box {
  width: 100%;
  max-width: 400px;
  padding: 8px 14px;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  margin-bottom: 12px;
  outline: none;
}

.btn-exam-search {
  width: 100%;
  max-width: 400px;
  background: var(--button-login-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.btn-exam-search:hover {
  opacity: 0.92;
}

/* Status Badges */
.badge-status-paid {
  background-color: #198754;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-status-unpaid {
  background-color: #dc3545;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.alert-fee-unpaid {
  background-color: #dc3545;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 14px;
}

/* ==========================================================================
   6. ONLINE QUIZ & MCQs ENGINE (User Prompt Requirements)
   ========================================================================== */
.quiz-container-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 800px;
  margin: auto;
}

.quiz-instruction-box {
  padding: 25px 30px;
  background: #ffffff;
}

.quiz-instruction-list {
  padding-left: 20px;
  margin: 15px 0 25px;
  color: #334155;
  line-height: 1.8;
}

.quiz-exam-header {
  background: var(--card-header-gradient);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-timer-box {
  background: rgba(0,0,0,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffeb3b;
}

.quiz-body-wrap {
  padding: 24px;
}

.quiz-question-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.quiz-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
}

.quiz-option-item:hover {
  background-color: #f0fdf4;
  border-color: #86efac;
}

.quiz-option-item.selected {
  background-color: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 0 1px #10b981;
}

.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}

.quiz-option-item.selected .quiz-option-letter {
  background: #10b981;
  color: #ffffff;
}

.quiz-option-label {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
}

/* Question Palette / Key Navigation (Bottom of Quiz) */
.quiz-palette-wrap {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-key-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-palette-btn {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.quiz-palette-btn:hover {
  background: #e2e8f0;
}

.quiz-palette-btn.active-q {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #ffffff;
}

.quiz-palette-btn.answered {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

/* Quiz Result Card */
.quiz-result-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1f4f41, #252055);
  color: #ffffff;
}

.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  color: #1f4f41;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 15px auto 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.score-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.score-total {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
}

.quiz-review-list {
  padding: 20px;
}

.review-item {
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.review-item.correct {
  background: #f0fdf4;
  border-color: #86efac;
}

.review-item.incorrect {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* ==========================================================================
   TABLES & GENERAL COMPONENTS
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.portal-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #cbd5e1;
}

.portal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.portal-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 15px;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content-card {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  animation: slideDown 0.25s ease-out;
}

.modal-top-bar {
  background: var(--card-header-gradient);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-top-bar h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
}

.form-group-custom {
  margin-bottom: 12px;
}

.form-group-custom label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.form-control-custom {
  width: 100%;
  padding: 7px 12px;
  font-size: 0.9rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  outline: none;
}

.form-control-custom:focus {
  border-color: #2680eb;
}

.modal-footer-bar {
  padding: 12px 20px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast */
.portal-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
  border-left: 5px solid #28a745;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar-panel {
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .sidebar-panel.show-sidebar {
    transform: translateX(0);
  }

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

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

  .info-row-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
