/* Custom styles for WEG application */

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.navbar-brand {
  font-weight: 700;
}

.sidebar {
  min-height: calc(100vh - 56px);
  background-color: var(--secondary-color);
  color: white;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}

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

.sidebar .nav-link.active {
  color: white;
  background-color: var(--primary-color);
}

.card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

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

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

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

.badge-status-open {
  background-color: var(--warning-color);
  color: white;
}

.badge-status-in-progress {
  background-color: var(--primary-color);
  color: white;
}

.badge-status-done {
  background-color: var(--success-color);
  color: white;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
}

/* Dashboard widgets */
.dashboard-widget {
  transition: transform 0.2s;
}

.dashboard-widget:hover {
  transform: translateY(-5px);
}

.dashboard-widget .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Notification styles */
.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.notification-item {
  border-left: 3px solid transparent;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.notification-item.unread {
  border-left-color: var(--primary-color);
}

/* Login and registration pages */
.auth-container {
  max-width: 400px;
  margin: 2rem auto;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--light-color);
  padding: 1.5rem 0;
  margin-top: 3rem;
}
