/* Modern Dashboard CSS - Panamtrauma 2025 */
:root {
  --primary: #3e97ff;
  --primary-hover: #2a7ad8;
  --primary-light: #eef6ff;
  --secondary: #8c68cd;
  --success: #50cd89;
  --info: #7239ea;
  --warning: #ffc700;
  --danger: #f1416c;
  --dark: #131313;
  --light: #f9f9f9;
  --card-bg: #ffffff;
  --body-bg: #f5f8fa;
  --sidebar-bg: #ffffff;
  --text-color: #181c32;
  --text-muted: #99a1b7;
  --border-color: #e4e6ef;
  --shadow-sm: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.05);
  --shadow-md: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.07);
  --transition: all 0.2s ease;
  --radius-sm: 0.475rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.85rem;
  --font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Modern Sidebar */
.sidebar {
  background-color: var(--sidebar-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1rem;
  height: calc(100vh - 2.5rem);
  position: sticky;
  top: 1.25rem;
  transition: var(--transition);
}

.sidebar .nav-link {
  color: var(--text-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar .nav-link i {
  font-size: 1.15rem;
  margin-right: 0.75rem;
  opacity: 0.7;
  width: 1.5rem;
  text-align: center;
}

.sidebar .nav-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.sidebar .nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar .nav-link.active i {
  opacity: 1;
}

/* Top Navigation */
.top-bar {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.search-bar {
  position: relative;
  margin: 0 1rem;
}

.search-bar input {
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  width: 250px;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(62, 151, 255, 0.15);
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Modern Cards */
.stat-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon-container {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-card.primary .stat-icon-container {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-card.success .stat-icon-container {
  background-color: rgba(80, 205, 137, 0.1);
  color: var(--success);
}

.stat-card.warning .stat-icon-container {
  background-color: rgba(255, 199, 0, 0.1);
  color: var(--warning);
}

.stat-card.danger .stat-icon-container {
  background-color: rgba(241, 65, 108, 0.1);
  color: var(--danger);
}

.stat-card.info .stat-icon-container {
  background-color: rgba(114, 57, 234, 0.1);
  color: var(--info);
}

.stat-card .stat-icon {
  font-size: 1.5rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-color);
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.stat-card .progress {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: 1rem;
  overflow: hidden;
}

.stat-card.primary .progress-bar {
  background-color: var(--primary);
}

.stat-card.success .progress-bar {
  background-color: var(--success);
}

.stat-card.warning .progress-bar {
  background-color: var(--warning);
}

.stat-card.danger .progress-bar {
  background-color: var(--danger);
}

.stat-card.info .progress-bar {
  background-color: var(--info);
}

/* Dashboard Welcome Card */
.dashboard-welcome {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: none;
}

.dashboard-welcome h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dashboard-welcome p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 80%;
}

.dashboard-welcome::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.dashboard-welcome::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: 10%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Modern Action Buttons */
.btn-action {
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-action:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-action i {
  margin-right: 0.5rem;
}

.btn-modern {
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  border: none;
}

.btn-modern-primary {
  background-color: var(--primary);
  color: white;
}

.btn-modern-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-modern-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-modern-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Modern Charts and Tables */
.chart-container {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.chart-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0;
}

.chart-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  background-color: transparent;
}

.chart-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.table-modern th {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: none;
}

.table-modern td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  background-color: var(--card-bg);
  border-top: none;
  font-weight: 500;
}

.table-modern tr td:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.table-modern tr td:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.table-modern tr:hover td {
  background-color: var(--primary-light);
}

.status-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.status-completed {
  background-color: rgba(80, 205, 137, 0.1);
  color: var(--success);
}

.status-pending {
  background-color: rgba(255, 199, 0, 0.1);
  color: var(--warning);
}

.status-cancelled {
  background-color: rgba(241, 65, 108, 0.1);
  color: var(--danger);
}

/* Evaluator Cards */
.evaluator-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.evaluator-card:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}

.evaluator-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.evaluator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

/* Modern Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.toast-modern {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease forwards;
  border-left: 4px solid var(--success);
}

.toast-modern .toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0;
  background-color: transparent;
  border: none;
}

.toast-modern .toast-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.toast-modern .toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.toast-modern .toast-close {
  background-color: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.toast-modern .toast-body {
  padding: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* For mobile optimization */
@media (max-width: 992px) {
  .sidebar {
    height: auto;
    position: relative;
    top: 0;
    margin-bottom: 1.5rem;
  }
  
  .search-bar {
    display: none;
  }
  
  .top-bar {
    flex-direction: row;
    align-items: center;
  }
  
  .top-bar .btn {
    margin-top: 0;
  }
  
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-icon-container {
    width: 40px;
    height: 40px;
  }
  
  .stat-card .stat-icon {
    font-size: 1.25rem;
  }
  
  .dashboard-welcome h2 {
    font-size: 1.5rem;
  }
  
  .dashboard-welcome p {
    max-width: 100%;
  }
}

/* Make selected active link stand out */
.nav-link.active {
  background-color: var(--primary);
  color: white !important;
}

.nav-link.active i {
  color: white;
}

/* Folder tabs styling */
.folder-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.folder-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid var(--border-color);
}

.folder-tab:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  border-color: var(--primary);
}

.folder-tab i {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: var(--primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--body-bg);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.2);
}