:root {
  --primary: #4CAF50;
  --primary-dark: #45a049;
  --secondary: #f8f9fa;
  --dark: #343a40;
  --light: #f8f9fa;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --success: #28a745;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  color: #333;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  margin: 2px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-danger {
  background-color: var(--danger);
  color: white !important;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-warning {
  background-color: var(--warning);
  color: black !important;
}

.btn-warning:hover {
  background-color: #e0a800;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-success {
  background-color: var(--success);
  color: white !important;
}

.btn-success:hover {
  background-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-info {
  background-color: var(--info);
  color: white !important;
}

.btn-info:hover {
  background-color: #138496;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Form Elements */
input, select, textarea {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col {
  flex: 1;
  padding: 0 10px;
  min-width: 250px;
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table th, .table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

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

.table-responsive {
  overflow-x: auto;
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Utility Classes */
.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 15px;
}

.mb-3 {
  margin-bottom: 15px;
}

/* Alert Messages */
.alert {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background-color: var(--dark);
  color: white;
  height: 100vh;
  position: fixed;
  padding-top: 20px;
  transition: all 0.3s;
}

.sidebar-header {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-header img {
  width: 40px;
  margin-right: 10px;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  padding: 10px 20px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.sidebar-menu li:hover {
  background-color: rgba(255,255,255,0.1);
  border-left: 3px solid var(--primary);
}

.sidebar-menu li.active {
  background-color: rgba(255,255,255,0.1);
  border-left: 3px solid var(--primary);
}

.sidebar-menu a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.sidebar-menu i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 20px;
  transition: all 0.3s;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

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

.user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .col {
    min-width: 100%;
  }
}