/* Main Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Layout */
.page-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.content-wrapper {
  flex: 1;
  padding: 2rem;
  margin-left: 240px;
  min-height: 100vh;
  background-color: #f8f9fa;
  transition: margin-left 0.3s ease;
}

/* Sidebar */
.sidebar {
  width: 240px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: #2c3e50;
  color: white;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.sidebar .nav {
  padding: 1rem;
  flex: 1;
}

.sidebar .nav-link {
  color: rgba(255,255,255,0.8);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

.sidebar .nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.sidebar .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.2);
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer .btn-link {
  width: 100%;
  text-align: left;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Page Header */
.page-header {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-title h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c3e50;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #2c3e50;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Cards */
.card, .filters-card, .table-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: none;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

/* Tables */
.table thead th {
  background: #f8f9fa;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

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

/* Badges */
.badge {
  padding: 0.5em 1em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 8px;
}

.btn-primary {
  background: #2c3e50;
  border-color: #2c3e50;
}

.btn-primary:hover {
  background: #34495e;
  border-color: #34495e;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Forms */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Pagination */
.pagination {
  margin: 2rem 0 0;
}

.page-link {
  color: #2c3e50;
  padding: 0.5rem 1rem;
}

.page-item.active .page-link {
  background-color: #2c3e50;
  border-color: #2c3e50;
}

/* Loading States */
.loading-spinner {
  padding: 3rem 0;
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card h3 {
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0.5rem 0;
}

/* Notifications */
.notification-item {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unread {
  background-color: rgba(44, 62, 80, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    margin-left: 0;
    padding: 1rem;
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .table-responsive {
    margin: 0 -1rem;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-toolbar {
    justify-content: flex-start;
  }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.action-buttons .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
}

@media (min-width: 768px) {
  .action-buttons {
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .action-buttons .btn {
    width: auto;
  }
} 