/**
 * File Style CSS
 * Semua styling untuk sistem Tiket KPI Management
 * Design: Simple, modern, dan mudah dipahami
 */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* ==========================================
   NAVIGATION BAR - FORCE NO SCROLL
   ========================================== */
html,
body {
  overflow-x: hidden !important;
}

.navbar * {
  box-sizing: border-box !important;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 1rem 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

.nav-container {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 0.5rem !important;
  flex-wrap: nowrap !important;
  max-width: none !important;
  overflow: visible !important;
  gap: 0.5rem !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 2rem;
}

.nav-brand i {
  font-size: 1.5rem;
}

.nav-menu {
  display: flex !important;
  list-style: none !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
  flex: 1 !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  width: auto !important;
  position: relative !important;
}

.nav-menu li {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  position: relative !important;
}

.nav-menu a {
  color: white !important;
  text-decoration: none !important;
  padding: 0.75rem 1rem !important;
  border-radius: 5px !important;
  transition: background-color 0.3s !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Prevent icon overlap */
.nav-menu a i {
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.nav-menu a i:not(.fa-chevron-down) {
  font-size: 1.1rem !important;
}

.nav-menu a span {
  display: inline;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative !important;
}

.dropdown-menu {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: white !important;
  min-width: 200px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0.5rem 0 !important;
  z-index: 1000 !important;
}

/* Desktop: hover support - HARUS lebih spesifik dan kuat (default untuk desktop) */
@media (min-width: 801px) {
  /* Pastikan dropdown parent khusus untuk nav-menu */
  .nav-menu .dropdown {
    position: relative !important;
  }

  /* Hover harus lebih spesifik dari base display:none */
  .dropdown:hover .dropdown-menu,
  .dropdown:active .dropdown-menu,
  .dropdown:hover .dropdown-menu.show,
  .dropdown-menu:hover,
  .dropdown-menu.show:hover,
  .nav-menu .dropdown:hover .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Override inline style */
  .dropdown:hover .dropdown-menu[style*="display: none"],
  .dropdown:hover .dropdown-menu[style*="display:none"],
  .nav-menu .dropdown:hover .dropdown-menu[style*="display: none"],
  .nav-menu .dropdown:hover .dropdown-menu[style*="display:none"] {
    display: block !important;
    visibility: visible !important;
  }

  .profile-dropdown:hover .profile-menu,
  .profile-menu:hover {
    display: block !important;
    visibility: visible !important;
  }
}

/* Mobile: disable hover, hanya pakai click/tap (hanya untuk < 800px) */
@media (max-width: 800px) {
  .dropdown:hover .dropdown-menu:not(.show),
  .dropdown:active .dropdown-menu:not(.show),
  .dropdown-menu:hover:not(.show) {
    display: none !important;
  }

  /* Force override hover jika tidak ada class .show */
  .dropdown-menu:not(.show) {
    display: none;
  }

  /* Hanya tampilkan jika punya class .show DAN tidak ada inline style display:none */
  .dropdown-menu.show,
  .profile-menu.show {
    display: block !important;
  }

  /* Force hide jika ada inline style display none - HARUS lebih kuat */
  .dropdown-menu[style*="display: none"],
  .dropdown-menu[style*="display:none"],
  .profile-menu[style*="display: none"],
  .profile-menu[style*="display:none"],
  .dropdown-menu[style*="visibility: hidden"],
  .dropdown-menu[style*="visibility:hidden"],
  .profile-menu[style*="visibility: hidden"],
  .profile-menu[style*="visibility:hidden"] {
    display: none !important;
    visibility: hidden !important;
  }

  /* Jika tidak ada class .show, force hide */
  .dropdown-menu:not(.show),
  .profile-menu:not(.show) {
    display: none !important;
  }
}

/* Desktop: tetap support hover dan absolute positioning */
@media (min-width: 801px) {
  /* Pastikan dropdown parent menggunakan relative */
  .dropdown,
  .profile-dropdown {
    position: relative !important;
  }

  /* Hover support di desktop - HARUS lebih kuat dan override inline style */
  .dropdown:hover .dropdown-menu,
  .dropdown:active .dropdown-menu,
  .dropdown:hover .dropdown-menu.show,
  .dropdown-menu:hover,
  .dropdown-menu.show:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Override inline style yang mungkin mengganggu */
  .dropdown:hover .dropdown-menu[style*="display: none"],
  .dropdown:hover .dropdown-menu[style*="display:none"] {
    display: block !important;
  }

  .dropdown-menu.show,
  .profile-menu.show {
    display: block !important;
  }

  /* Pastikan dropdown menu di desktop menggunakan absolute positioning */
  .dropdown-menu,
  .dropdown-menu.show,
  .nav-menu .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 5px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    z-index: 1000 !important;
    visibility: visible !important;
  }

  /* Profile menu tetap right-aligned di desktop */
  .profile-dropdown:hover .profile-menu,
  .profile-menu:hover {
    display: block !important;
  }

  .profile-menu,
  .profile-menu.show {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
  }
}

/* Clear any float atau flex yang mungkin membuat horizontal */
.dropdown-menu::after {
  content: "";
  display: table;
  clear: both;
}

/* Create invisible bridge between dropdown trigger and menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.dropdown-menu li:last-child {
  border-bottom: none !important;
}

.dropdown-menu a {
  color: #333 !important;
  padding: 1rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dropdown-menu a i {
  font-size: 1rem !important;
  margin-right: 0.5rem !important;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5 !important;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}

/* ==========================================
   MASTER DATA PAGES
   ========================================== */
.master-page {
  padding: 2rem 0;
}

.master-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.master-title {
  font-size: 2rem;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.master-actions {
  display: flex;
  gap: 1rem;
}

.master-table {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.master-table-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
}

.master-table-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.master-table-content {
  padding: 0;
}

.master-table table {
  width: 100%;
  border-collapse: collapse;
}

.master-table th {
  background: #f8f9fa;
  color: #495057;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
}

.master-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.master-table tr:hover {
  background-color: #f8f9fa;
}

.master-table .actions {
  display: flex;
  gap: 0.5rem;
}

.master-table .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.master-empty {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.master-empty i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.master-empty h3 {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.master-empty p {
  color: #adb5bd;
}

/* ==========================================
   ALERTS & NOTIFICATIONS
   ========================================== */
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* ==========================================
   FORM ACTIONS
   ========================================== */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background-color: #5a6268;
  color: white;
}

/* Responsive Design untuk Scrum Board */
@media (max-width: 1200px) {
  .scrum-board {
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .scrum-column {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .scrum-board {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
  }

  .scrum-column {
    min-width: 100%;
    margin-bottom: 1rem;
  }

  .main-container {
    padding: 0.5rem;
  }
}

/* Profile dropdown fix */
.profile-dropdown {
  position: relative !important;
}

.profile-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  min-width: 200px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  list-style: none !important;
  margin-top: -5px !important;
  padding-top: 10px !important;
  z-index: 1000 !important;
}

.profile-dropdown:hover .profile-menu {
  display: block !important;
}

.profile-menu:hover {
  display: block !important;
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
}

.profile-menu li {
  border-bottom: 1px solid #f0f0f0 !important;
}

.profile-menu a {
  color: #333 !important;
  padding: 1rem 1.25rem !important;
  display: block !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.profile-menu a i {
  font-size: 1rem !important;
  margin-right: 0.5rem !important;
}

.profile-menu a:hover {
  background-color: #f5f5f5 !important;
}

/* Profile section positioning */
.nav-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: -1rem;
  margin-right: 1.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-size: 1rem;
  font-weight: 500;
}

.profile-link i {
  font-size: 1.1rem;
}

.profile-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */
.main-container {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  background: #f8f9fa;
  min-height: calc(100vh - 80px);
  overflow-x: hidden;
  overflow-y: auto;
}

/* ==========================================
   CARDS & PANELS
   ========================================== */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.card-title {
  font-size: 1.5rem;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background-color: #4caf50;
  color: white;
}

.btn-success:hover {
  background-color: #45a049;
}

.btn-danger {
  background-color: #f44336;
  color: white;
}

.btn-danger:hover {
  background-color: #da190b;
}

.btn-warning {
  background-color: #ff9800;
  color: white;
}

.btn-warning:hover {
  background-color: #e68900;
}

.btn-info {
  background-color: #2196f3;
  color: white;
}

.btn-info:hover {
  background-color: #0b7dda;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
}

/* ==========================================
   TABLE CENTERING - GLOBAL
   ========================================== */
.table {
  text-align: center !important;
}

.table th {
  text-align: center !important;
  vertical-align: middle !important;
}

.table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.table .actions {
  text-align: center !important;
  vertical-align: middle !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.table .actions .btn {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  padding: 0.375rem 0.75rem !important;
}

.table .actions form {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

.table .actions .btn i {
  vertical-align: middle !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* Override untuk kolom yang perlu rata kiri */
.table td.text-left,
.table th.text-left {
  text-align: left !important;
}

.table td.text-right,
.table th.text-right {
  text-align: right !important;
}

/* ==========================================
   TABLES
   ========================================== */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.table tr:hover {
  background-color: #f8f9fa;
}

.table tr:nth-child(even) {
  background-color: #fafafa;
}

.table tr:nth-child(even):hover {
  background-color: #f0f0f0;
}

.table .actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================
   SCRUM BOARD - MODERN DESIGN
   ========================================== */
.scrum-board {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  margin: 1rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-height: 600px;
}

.scrum-column {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  border: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: 500px;
}

.scrum-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.scrum-column-header {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: none;
}

.scrum-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: none;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.scrum-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scrum-item:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px) scale(1.02);
}

.scrum-item:hover::before {
  opacity: 1;
}

.scrum-item:active {
  cursor: grabbing;
}

.scrum-item.dragging {
  opacity: 0.8;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  cursor: grabbing;
}

.scrum-column {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  min-height: 400px;
  transition: background-color 0.3s ease;
}

.scrum-column.drag-over {
  background: rgba(102, 126, 234, 0.1) !important;
  border: 2px dashed #667eea !important;
  transform: scale(1.02);
}

/* Modern Badge Styles */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.badge-success {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.badge-info {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

/* Scrum Board Action Buttons */
.scrum-item .btn-sm {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.scrum-item .btn-sm:hover {
  transform: scale(1.1);
}

.scrum-item form {
  margin: 0;
  padding: 0;
}

.drag-handle {
  cursor: grab;
  color: #666;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.drag-handle:hover {
  color: #333;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Validation Error Styles */
.form-control.error {
  border-color: #dc3545 !important;
  background-color: #f8d7da !important;
}

.validation-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.validation-error.show {
  display: block;
}

/* ==========================================
   BADGES & STATUS
   ========================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.badge-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-pending {
  color: #ff9800;
}

.status-onprogress {
  color: #2196f3;
}

.status-review {
  color: #9c27b0;
}

.status-finish {
  color: #4caf50;
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  color: #667eea;
}

.close {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.close:hover {
  color: #333;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
/* Force navbar to fit all items */
@media (min-width: 1200px) {
  .nav-menu {
    gap: 0.2rem !important;
  }

  .nav-menu a {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 1200px) {
  .nav-menu a span {
    display: none !important;
  }

  .nav-menu a {
    padding: 0.4rem !important;
    font-size: 0.8rem !important;
  }

  .nav-menu {
    gap: 0.2rem !important;
  }
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ========================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  /* Navbar adjustments */
  .nav-container {
    padding: 0 0.5rem !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  .nav-brand {
    font-size: 1.1rem !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
    min-width: auto !important;
  }

  .nav-menu {
    gap: 0.3rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 !important;
    padding: 0 0.25rem !important;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu li {
    flex-shrink: 0 !important;
  }

  .nav-menu a span {
    display: none !important;
  }

  .nav-menu a {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    min-width: 42px !important;
  }

  .nav-menu a i {
    margin: 0 !important;
  }

  .nav-profile {
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }

  /* Dropdown menu - Tablet */
  .dropdown-menu {
    min-width: 180px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  }

  .dropdown-menu a {
    padding: 0.9rem 1.1rem !important;
    font-size: 0.9rem !important;
  }

  /* Card header responsif */
  .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .card-header > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .card-header .btn {
    width: 100%;
    justify-content: center;
  }

  /* Form filter responsif */
  form[style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Summary cards responsif */
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Tabel responsif */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
    scrollbar-width: thin;
  }

  .table-container::-webkit-scrollbar {
    height: 8px;
  }

  .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .table-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
  }

  .table {
    min-width: 700px;
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }

  /* Card header responsive di tablet */
  .card-header {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }

  .card-header .btn {
    flex-shrink: 0 !important;
  }

  .table .actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .table .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger-btn.active {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile & Tablet (max-width: 800px) - Hamburger Menu */
@media (max-width: 800px) {
  /* Navbar mobile */
  .nav-container {
    padding: 0 0.5rem;
    flex-wrap: nowrap;
    position: relative;
  }

  .hamburger-btn {
    display: flex !important;
    margin-right: 0.5rem;
  }

  .nav-brand {
    font-size: 0.95rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  .nav-brand span {
    display: none;
  }

  /* Hide nav-menu by default on mobile */
  .nav-menu {
    display: none !important;
  }

  /* Mobile menu when open */
  .nav-menu.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    flex-direction: column !important;
    padding: 1rem 1rem 1rem 1rem !important;
    padding-left: 0.5rem !important;
    gap: 0.5rem !important;
    z-index: 9999 !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .nav-menu.mobile-open li {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Parent li untuk dropdown - beri padding agar dropdown tidak terpotong */
  .nav-menu.mobile-open li.dropdown {
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .nav-menu.mobile-open a {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    justify-content: flex-start !important;
    border-radius: 8px !important;
    min-width: auto !important;
    display: flex !important;
  }

  .nav-menu.mobile-open a span {
    display: inline !important;
    margin-left: 0.75rem !important;
  }

  .nav-menu.mobile-open a i:not(.fa-chevron-down) {
    font-size: 1.1rem !important;
    min-width: 20px !important;
  }

  /* Default: dropdown hidden di mobile menu */
  .nav-menu.mobile-open .dropdown-menu {
    position: static !important;
    display: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    margin-top: 0.5rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.4) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    list-style: none !important;
    overflow: visible !important;
    transform: translateX(0) !important;
  }

  /* Hanya tampilkan jika punya class .show */
  .nav-menu.mobile-open .dropdown-menu.show {
    display: block !important;
  }

  .nav-menu.mobile-open .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .nav-menu.mobile-open .dropdown-menu a {
    color: rgba(255, 255, 255, 1) !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  .nav-menu.mobile-open .dropdown-menu a i {
    color: rgba(255, 255, 255, 1) !important;
    font-size: 1rem !important;
    margin-right: 0.75rem !important;
    min-width: 20px !important;
    display: inline-block !important;
  }

  /* Override semua color di dalam dropdown - HANYA di mobile menu */
  .nav-menu.mobile-open .dropdown-menu,
  .nav-menu.mobile-open .dropdown-menu *,
  .nav-menu.mobile-open .dropdown-menu a,
  .nav-menu.mobile-open .dropdown-menu a span,
  .nav-menu.mobile-open .dropdown-menu a i,
  .nav-menu.mobile-open .dropdown-menu li,
  .nav-menu.mobile-open .dropdown-menu li a {
    color: rgba(255, 255, 255, 1) !important;
  }

  .nav-menu.mobile-open .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 1) !important;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu li {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
  }

  .nav-menu a {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.8rem !important;
    min-width: 44px !important; /* Touch target minimum */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .nav-menu a i {
    font-size: 0.9rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
  }

  .nav-menu a span {
    display: none !important;
  }

  /* Pastikan chevron tidak overlap - lebih kecil dan dengan spacing */
  .nav-menu a .fa-chevron-down {
    font-size: 0.65rem !important;
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
    opacity: 0.8 !important;
    flex-shrink: 0 !important;
  }

  /* Pastikan icon utama dan chevron tidak overlap */
  .nav-menu a i:not(.fa-chevron-down) {
    margin-right: 0 !important;
  }

  .nav-brand {
    flex-shrink: 0 !important;
    min-width: 45px !important;
    max-width: 55px !important;
    overflow: hidden !important;
  }

  .nav-profile {
    margin-left: 0.25rem !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
    min-width: 45px !important;
    max-width: 55px !important;
    position: relative !important;
    z-index: 100 !important;
  }

  .profile-link span {
    display: none !important;
  }

  .profile-link {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.85rem !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .profile-link i {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  /* Main container */
  .main-container {
    padding: 0.75rem;
  }

  /* Cards */
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  .card-title {
    font-size: 1.25rem;
    flex-wrap: wrap;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .card-header > div {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-header .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* Form filter */
  form[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  div[style*="padding: 1.5rem; background: #f8f9fa"] {
    padding: 1rem !important;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .form-control {
    padding: 0.65rem;
    font-size: 0.95rem;
  }

  /* Summary cards */
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  div[style*="background: #f8f9fa; padding: 1.5rem"] {
    padding: 1.25rem !important;
  }

  div[style*="background: #f8f9fa; padding: 1.5rem"] h4 {
    font-size: 0.95rem !important;
  }

  div[style*="background: #f8f9fa; padding: 1.5rem"] h2 {
    font-size: 2rem !important;
  }

  /* Tabel mobile - card view */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
  }

  .table {
    min-width: 1000px;
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
  }

  .table .actions {
    flex-direction: row;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .table .actions .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-width: auto;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Forms */
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Master header */
  .master-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .master-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .master-actions .btn {
    width: 100%;
  }

  /* Scrum board */
  .scrum-board {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .scrum-column {
    min-width: 100%;
    margin-bottom: 1rem;
  }

  /* Modal */
  .modal {
    padding: 1rem;
  }

  .modal-content {
    margin: 5% auto;
    padding: 1.5rem;
    max-width: 95%;
  }

  /* Dropdown menu - Mobile (hanya untuk tablet/mobile, bukan desktop) */
  @media (max-width: 800px) {
    .dropdown {
      position: static !important;
    }

    .dropdown-menu.show {
      position: fixed !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 85% !important;
      max-width: 280px !important;
      max-height: 350px !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      -webkit-overflow-scrolling: touch !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
      border-radius: 10px !important;
      padding: 0 !important;
      z-index: 10000 !important;
      /* Position akan di-set oleh JavaScript */
      top: auto !important;
      bottom: auto !important;
      margin-top: 0 !important;
      margin-left: 0 !important;
    }
  }

  .dropdown-menu li {
    border-bottom: 1px solid #e9ecef !important;
  }

  .dropdown-menu a {
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem !important;
    touch-action: manipulation;
    white-space: nowrap !important;
  }

  .profile-menu.show {
    position: fixed !important;
    right: 1rem !important;
    left: auto !important;
    width: 200px !important;
    max-width: calc(100vw - 2rem) !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    border-radius: 10px !important;
    z-index: 10000 !important;
    /* Position akan di-set oleh JavaScript */
    top: auto !important;
    bottom: auto !important;
  }

  .profile-menu a {
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem !important;
    touch-action: manipulation;
    white-space: nowrap !important;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.25rem !important;
  }

  .nav-brand {
    font-size: 0.8rem !important;
    margin-right: 0.2rem !important;
    min-width: 45px !important;
    max-width: 50px !important;
  }

  .nav-brand i {
    font-size: 0.9rem !important;
  }

  .hamburger-btn {
    padding: 0.5rem 0.65rem !important;
    font-size: 1.1rem !important;
    margin-right: 0.3rem !important;
  }

  .nav-brand {
    min-width: 40px !important;
    max-width: 45px !important;
  }

  .nav-profile {
    min-width: 45px !important;
    max-width: 50px !important;
  }

  /* Mobile menu styles untuk small mobile */
  .nav-menu.mobile-open {
    padding: 0.75rem !important;
    gap: 0.4rem !important;
  }

  .nav-menu.mobile-open a {
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Parent li dropdown */
  .nav-menu.mobile-open li.dropdown {
    overflow: visible !important;
  }

  .nav-menu.mobile-open .dropdown-menu {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    box-sizing: border-box !important;
    transform: translateX(0) !important;
  }

  .nav-menu.mobile-open .dropdown-menu a {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
  }

  /* Table responsive untuk dashboard - Small Mobile */
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    margin: 0 -0.5rem !important;
    padding: 0 0.5rem !important;
  }

  .table-container::-webkit-scrollbar {
    height: 6px !important;
  }

  .table-container::-webkit-scrollbar-thumb {
    background: #667eea !important;
    border-radius: 3px !important;
  }

  .table {
    font-size: 0.8rem !important;
    min-width: 500px !important;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.4rem !important;
    white-space: nowrap !important;
  }

  .card-header {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
  }

  .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  .card-header h2 {
    font-size: 1.1rem !important;
  }

  .nav-profile {
    margin-left: 0.15rem !important;
    margin-right: 0.25rem !important;
    min-width: 50px !important;
    max-width: 55px !important;
  }

  .profile-link {
    padding: 0.45rem 0.5rem !important;
    font-size: 0.8rem !important;
    min-width: 40px !important;
  }

  .profile-link i {
    font-size: 0.95rem !important;
  }

  .dropdown-menu {
    width: 90% !important;
    max-width: 260px !important;
    max-height: 300px !important;
  }

  .profile-menu {
    width: 180px !important;
    max-height: 300px !important;
  }

  .main-container {
    padding: 0.5rem;
  }

  .card {
    padding: 0.75rem;
    border-radius: 6px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .table {
    min-width: 1200px;
    font-size: 0.75rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.3rem;
    font-size: 0.75rem;
  }

  div[style*="background: #f8f9fa; padding: 1.5rem"] h2 {
    font-size: 1.75rem !important;
  }

  div[style*="background: #f8f9fa; padding: 1.5rem"] h4 {
    font-size: 0.85rem !important;
  }
}

/* ==========================================
   RESPONSIVE UTILITY CLASSES
   ========================================== */
.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.summary-card h4 {
  margin-bottom: 0.5rem;
}

.summary-card h2 {
  font-size: 2.5rem;
  color: #333;
  margin: 0;
}

.filter-section {
  padding: 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

/* Responsive untuk utility classes */
@media (max-width: 768px) {
  .filter-form {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .summary-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .summary-card {
    padding: 1.25rem !important;
  }

  .summary-card h2 {
    font-size: 2rem !important;
  }

  .summary-card h4 {
    font-size: 0.95rem !important;
  }

  .filter-section {
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  .summary-card h2 {
    font-size: 1.75rem !important;
  }

  .summary-card h4 {
    font-size: 0.85rem !important;
  }
}

/* ==========================================
   RATING SYSTEM
   ========================================== */
.rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.rating i {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s;
}

.rating i.active {
  color: #ffc107;
}

/* ==========================================
   DROPDOWN FIX - PREVENT DISAPPEARING - DESKTOP ONLY
   ========================================== */
@media (min-width: 801px) {
  .dropdown-menu {
    margin-top: 5px !important;
    padding-top: 0.5rem !important;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
  }

  /* Ensure dropdown stays visible when hovering over it */
  .dropdown:hover .dropdown-menu,
  .dropdown-menu:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .profile-dropdown:hover .profile-menu,
  .profile-menu:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Make dropdown items easier to click */
.dropdown-menu a {
  padding: 1rem !important;
  display: block !important;
  text-decoration: none !important;
  color: #333 !important;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5 !important;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}

/* ==========================================
   MASTER DATA PAGES
   ========================================== */
.master-page {
  padding: 2rem 0;
}

.master-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.master-title {
  font-size: 2rem;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.master-actions {
  display: flex;
  gap: 1rem;
}

.master-table {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.master-table-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
}

.master-table-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.master-table-content {
  padding: 0;
}

.master-table table {
  width: 100%;
  border-collapse: collapse;
}

.master-table th {
  background: #f8f9fa;
  color: #495057;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
}

.master-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.master-table tr:hover {
  background-color: #f8f9fa;
}

.master-table .actions {
  display: flex;
  gap: 0.5rem;
}

.master-table .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.master-empty {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.master-empty i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.master-empty h3 {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.master-empty p {
  color: #adb5bd;
}

/* ==========================================
   ALERTS & NOTIFICATIONS
   ========================================== */
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* ==========================================
   FORM ACTIONS
   ========================================== */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background-color: #5a6268;
  color: white;
}

/* Responsive Design untuk Scrum Board */
@media (max-width: 1200px) {
  .scrum-board {
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .scrum-column {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .scrum-board {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
  }

  .scrum-column {
    min-width: 100%;
    margin-bottom: 1rem;
  }

  .main-container {
    padding: 0.5rem;
  }
}
