/* ============================================================
   Росмолодёжь.Предпринимай — Brand Design System
   Based on the official brand book
   ============================================================ */

/* --- Font Loading --- */
@font-face {
  font-family: 'GT Eesti Pro Display';
  font-weight: 400;
  font-style: normal;
  src: local('GT Eesti Pro Display Regular'), local('GTEestiProDisplay-Regular');
  font-display: swap;
}
@font-face {
  font-family: 'GT Eesti Pro Display';
  font-weight: 500;
  font-style: normal;
  src: local('GT Eesti Pro Display Medium'), local('GTEestiProDisplay-Medium');
  font-display: swap;
}

/* --- CSS Variables (Brand Book) --- */
:root {
  /* Brand Colors */
  --brand-orange: #FC651A;
  --brand-orange-hover: #e8560e;
  --brand-orange-light: #FF954D;
  --brand-lime: #DAEF14;
  --brand-lime-hover: #c5d912;
  --brand-yellow: #FDCB00;
  --brand-yellow-light: #FFE94D;
  --brand-black: #000000;
  --brand-white: #FFFFFF;
  --brand-gray-bg: #ECECEC;

  /* Functional Colors */
  --color-primary: var(--brand-orange);
  --color-primary-hover: var(--brand-orange-hover);
  --color-success: var(--brand-lime);
  --color-success-hover: var(--brand-lime-hover);
  --color-danger: #E53935;
  --color-warning: var(--brand-yellow);
  --color-info: var(--brand-orange-light);

  /* Surfaces */
  --bg-page: var(--brand-gray-bg);
  --bg-card: var(--brand-white);
  --bg-sidebar: #1A1A1A;
  --bg-sidebar-hover: #2a2a2a;

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --text-on-dark: #e0e0e0;
  --text-on-primary: var(--brand-white);

  /* Typography */
  --font-family: 'GT Eesti Pro Display', 'Microsoft Sans Serif', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --sidebar-width: 260px;
  --navbar-height: 60px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252,101,26,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(218,239,20,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
}

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

.login-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--brand-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}
.login-logo-icon:hover {
  transform: scale(1.05) rotate(-2deg);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.login-form .form-label {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-form .form-control {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1.5px solid #ddd;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.login-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(252,101,26,0.12);
}

.login-form .input-group-text {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: 1.5px solid #ddd;
  background: #f8f9fa;
}
.login-form .input-group .form-control {
  border-left: none;
}
.login-form .input-group .form-control:focus {
  border-left: none;
}
.login-form .input-group .btn-outline-secondary {
  border: 1.5px solid #ddd;
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.btn-login {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.login-hint {
  text-align: center;
}
.login-hint summary {
  cursor: pointer;
  user-select: none;
}
.login-hint .table {
  font-size: 0.85rem;
}
.login-hint code {
  color: var(--color-primary);
  background: rgba(252,101,26,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1040;
  transition: transform var(--transition-base);
  overflow-y: auto;
}

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

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-black);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.sidebar-brand:hover .sidebar-logo {
  transform: scale(1.05);
}

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brand-white);
  line-height: 1.2;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--brand-orange);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sidebar User */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-white);
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* Sidebar Navigation */
.sidebar-nav {
  list-style: none;
  padding: 12px 10px;
  margin: 0;
  flex: 1;
}

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

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.sidebar-nav-link:hover {
  background: var(--bg-sidebar-hover);
  color: var(--brand-white);
}
.sidebar-nav-link.active {
  background: var(--brand-orange);
  color: var(--brand-white);
  font-weight: 500;
}
.sidebar-nav-link.active:hover {
  background: var(--brand-orange-hover);
}
.sidebar-nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sidebar-logout-btn:hover {
  background: rgba(229,57,53,0.15);
  color: #ef5350;
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.top-navbar {
  height: var(--navbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.sidebar-toggle:hover {
  background: var(--bg-page);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.top-navbar-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.top-navbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
#wrapper {
  min-height: 100vh;
}

#page-content-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-base);
}

.main-content {
  padding: 24px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
}
.page-title i {
  font-size: 1.3rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 20px;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.stat-card-warning::after { background: var(--brand-yellow); }
.stat-card-primary::after { background: var(--brand-orange); }
.stat-card-success::after { background: var(--brand-lime); }
.stat-card-secondary::after { background: #999; }

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  opacity: 0.7;
}
.stat-card-warning .stat-icon { color: var(--brand-yellow); }
.stat-card-primary .stat-icon { color: var(--brand-orange); }
.stat-card-success .stat-icon { color: var(--brand-lime-hover); }
.stat-card-secondary .stat-icon { color: #999; }

.stat-value {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================================
   BUTTONS (Bootstrap Overrides)
   ============================================================ */
.btn {
  font-family: var(--font-family);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.btn-primary,
.btn-primary:active {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: var(--brand-white) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
  color: var(--brand-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252,101,26,0.3);
}

.btn-success,
.btn-success:active {
  background-color: var(--brand-lime) !important;
  border-color: var(--brand-lime) !important;
  color: var(--brand-black) !important;
}
.btn-success:hover,
.btn-success:focus {
  background-color: var(--brand-lime-hover) !important;
  border-color: var(--brand-lime-hover) !important;
  color: var(--brand-black) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218,239,20,0.3);
}

.btn-outline-primary {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}
.btn-outline-primary:hover {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--brand-white);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: #ddd;
}
.btn-outline-secondary:hover {
  background: var(--bg-page);
  border-color: #ccc;
  color: var(--text-primary);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.btn-xs {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ============================================================
   BADGES (Bootstrap Overrides)
   ============================================================ */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
}

.bg-primary-soft {
  background: rgba(252,101,26,0.1) !important;
}
.text-primary,
a.text-primary {
  color: var(--brand-orange) !important;
}

.bg-info-soft {
  background: rgba(255,149,77,0.1) !important;
}

.bg-success,
.badge.bg-success {
  background-color: var(--brand-lime) !important;
  color: var(--brand-black) !important;
}

.bg-warning,
.badge.bg-warning {
  background-color: var(--brand-yellow) !important;
  color: var(--brand-black) !important;
}

.bg-danger,
.badge.bg-danger {
  background-color: var(--color-danger) !important;
  color: var(--brand-white) !important;
}

/* Status badges */
.badge-sent {
  background: rgba(252,101,26,0.12);
  color: var(--brand-orange);
}
.badge-accepted {
  background: rgba(218,239,20,0.15);
  color: #7a8a00;
}
.badge-completed {
  background: rgba(76,175,80,0.12);
  color: #2e7d32;
}
.badge-ignored {
  background: rgba(0,0,0,0.06);
  color: #999;
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
  font-size: 0.9rem;
}

.table thead th {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  padding: 12px 16px;
}

.table-light,
thead.table-light th {
  background: #f8f9fa !important;
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.table-hover tbody tr:hover {
  background: rgba(252,101,26,0.03);
}

.row-new {
  background: rgba(252,101,26,0.04);
  border-left: 3px solid var(--brand-orange);
}

/* ============================================================
   KANBAN BOARD
   ============================================================ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 400px;
}

.kanban-column {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kanban-column-header {
  padding: 14px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}

.kanban-sent {
  background: rgba(252,101,26,0.06);
  border-bottom-color: var(--brand-orange);
  color: var(--brand-orange-hover);
}

.kanban-accepted {
  background: rgba(218,239,20,0.1);
  border-bottom-color: var(--brand-lime);
  color: #6d7a00;
}

.kanban-completed {
  background: rgba(76,175,80,0.08);
  border-bottom-color: #4caf50;
  color: #2e7d32;
}

.kanban-ignored {
  background: rgba(0,0,0,0.03);
  border-bottom-color: #ccc;
  color: #999;
}

.kanban-badge {
  margin-left: auto;
  background: rgba(0,0,0,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
}

.kanban-cards {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: all var(--transition-fast);
  cursor: default;
}
.kanban-card:hover {
  border-color: rgba(252,101,26,0.2);
  box-shadow: 0 2px 8px rgba(252,101,26,0.08);
  transform: translateY(-1px);
}

.kanban-card-done {
  opacity: 0.75;
}
.kanban-card-ignored {
  opacity: 0.55;
}

.kanban-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}
.kanban-card-title a {
  color: var(--text-primary);
}
.kanban-card-title a:hover {
  color: var(--brand-orange);
}

.kanban-card-meta {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kanban-card-meta .badge {
  font-size: 0.7rem;
}

.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-card-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 6px;
}

.kanban-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 30px 10px;
  opacity: 0.6;
}

/* ============================================================
   MESSAGES / CHAT
   ============================================================ */
.messages-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
}

.message-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.message-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

.message-own .message-avatar {
  background: rgba(252,101,26,0.1);
  color: var(--brand-orange);
  border-color: rgba(252,101,26,0.15);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.message-author {
  font-size: 0.85rem;
}

.message-time {
  font-size: 0.75rem;
}

.message-text {
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-form-wrapper {
  background: #f8f9fa;
}
.message-form-wrapper textarea {
  resize: none;
  border-radius: var(--radius-sm);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-state i {
  opacity: 0.4;
}
.empty-state p {
  margin-top: 8px;
}

/* ============================================================
   REQUEST DESCRIPTION
   ============================================================ */
.request-description {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

/* ============================================================
   RECIPIENTS LIST
   ============================================================ */
.recipients-list {
  max-height: 400px;
  overflow-y: auto;
}

.recipients-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 10px 16px;
  transition: background var(--transition-fast);
}
.recipients-list .list-group-item:hover {
  background: rgba(252,101,26,0.03);
}
.recipients-list .list-group-item:last-child {
  border-bottom: none;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.breadcrumb-item a {
  color: var(--brand-orange);
}
.breadcrumb-item a:hover {
  color: var(--brand-orange-hover);
}
.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* ============================================================
   ALERTS (Bootstrap Override)
   ============================================================ */
.alert {
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.alert-danger {
  background: rgba(229,57,53,0.08);
  color: #c62828;
}

.alert-success {
  background: rgba(218,239,20,0.12);
  color: #33691e;
}

/* ============================================================
   FORMS (Bootstrap Override)
   ============================================================ */
.form-control {
  border-radius: var(--radius-sm);
  border: 1.5px solid #ddd;
  font-family: var(--font-family);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(252,101,26,0.1);
}

.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #ddd;
}
.form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(252,101,26,0.1);
}

.form-check-input:checked {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* ============================================================
   DROPDOWN (Bootstrap Override)
   ============================================================ */
.dropdown-menu {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
}

.dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 8px 12px;
  transition: background var(--transition-fast);
}
.dropdown-item:hover {
  background: rgba(252,101,26,0.06);
}
.dropdown-item.active {
  background: var(--brand-orange);
  color: var(--brand-white);
}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }

  #page-content-wrapper {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-content {
    padding: 16px;
  }

  /* Kanban responsive */
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-card {
    padding: 28px 24px;
  }
}

@media (max-width: 575.98px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.2rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .top-navbar {
    padding: 0 16px;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1035;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show {
  display: block;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.stat-card,
.kanban-card {
  animation: fadeInUp 0.3s ease forwards;
}

/* Stagger effect */
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.cursor-pointer { cursor: pointer; }
.text-orange { color: var(--brand-orange) !important; }
.text-lime { color: var(--brand-lime-hover) !important; }
.bg-orange-soft { background: rgba(252,101,26,0.08) !important; }
.bg-lime-soft { background: rgba(218,239,20,0.1) !important; }
