* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f4f6f9;
  color: #333;
}

/* Layout General */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.logo-container {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.logo-container img {
  max-width: 140px;
  height: auto;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.sidebar nav a {
  padding: 12px 24px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: #0b4f6c;
  background-color: #edf2f7;
  border-left: 4px solid #0b4f6c;
}

/* Contenido Principal */
.content {
  flex: 1;
  padding: 30px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.top-bar h1 {
  font-size: 24px;
  color: #1a202c;
}

.breadcrumb {
  color: #718096;
  font-size: 14px;
}

.calendar-card {
  background: #fff;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.selector-group {
  margin-bottom: 20px;
}

.selector-group label {
  display: block;
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 6px;
}

.selector-group select {
  width: 100%;
  max-width: 450px;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
}

/* Tablas Administrativas */
.header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-action-primary {
  background: #0b4f6c;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background-color: #f7fafc;
  color: #4a5568;
}

.btn-edit {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
}

.btn-delete {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  margin-left: 5px;
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-card {
  background: white;
  width: 480px;
  border-radius: 6px;
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 12px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #a0aec0;
}

.form-row {
  margin: 16px 0;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 14px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.btn-secondary {
  background: #e2e8f0;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  color: #4a5568;
}

.btn-success {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}

/* Vista de Login */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f6f9;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 360px;
  text-align: center;
}

.login-header-box {
  background: #1a365d;
  color: white;
  padding: 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
}

.login-btn {
  width: 100%;
  background: #0b4f6c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}