.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-agendado {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-confirmado {
  background: #d4edda;
  color: #155724;
}

.badge-realizado {
  background: #e2e3e5;
  color: #383d41;
}

.badge-cancelado {
  background: #f8d7da;
  color: #721c24;
}

.badge-pendente {
  background: #fff3cd;
  color: #856404;
}

.badge-pago {
  background: #d4edda;
  color: #155724;
}

/* Melhorias no calendário */
.fc {
  font-family: inherit;
}

.fc .fc-button {
  background: var(--primary);
  border-color: var(--primary);
}

.fc .fc-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .sidebar-header h2 {
    font-size: 14px;
  }

  .sidebar-header p {
    display: none;
  }

  .sidebar-nav a span {
    margin-right: 0;
  }

  .sidebar-nav a {
    justify-content: center;
    padding: 15px 10px;
  }

  .main-content {
    margin-left: 70px;
  }

  .content-header {
    flex-direction: column;
    gap: 10px;
  }

  .content-header h1 {
    font-size: 22px;
  }

  table {
    font-size: 13px;
  }

  table th,
  table td {
    padding: 10px;
  }

  .btn-sm {
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* Print styles */
@media print {

  .sidebar,
  .content-header button,
  .content-header a,
  .btn,
  button {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4A90E2;
  --primary-dark: #357ABD;
  --success: #4CAF50;
  --danger: #F44336;
  --warning: #FF9800;
  --info: #2196F3;
  --dark: #333;
  --light: #f5f5f5;
  --white: #fff;
  --border: #ddd;
  --sidebar-width: 260px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light);
  color: var(--dark);
}

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-box h1 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 24px;
}

.login-box h2 {
  color: #666;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 30px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--dark);
  color: var(--white);
  overflow-y: auto;
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  margin-bottom: 5px;
}

.sidebar-header p {
  font-size: 14px;
  opacity: 0.7;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.3s;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active {
  background: var(--primary);
}

.sidebar-nav a span {
  margin-right: 10px;
  font-size: 20px;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 30px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.content-header h1 {
  font-size: 28px;
  color: var(--dark);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-warning {
  background: var(--warning);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Tables */
.table-container {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--light);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
}

table td {
  padding: 15px;
  border-top: 1px solid var(--border);
}

table tr:hover {
  background: var(--light);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Calendar */
.calendar-container {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fc-event {
  cursor: pointer;
}

.evento-agendado {
  background: var(--info) !important;
  border-color: var(--info) !important;
}

.evento-confirmado {
  background: var(--success) !important;
  border-color: var(--success) !important;
}

.evento-realizado {
  background: #9E9E9E !important;
  border-color: #9E9E9E !important;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.text-muted {
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}