/* admin-style.css */

/* Reset y configuración global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

/* Layout general */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background:rgb(1, 30, 59);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar h2 {
  font-size: 1.5em;
  margin-bottom: 30px;
  text-align: center;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 12px;
  margin: 5px 0;
  border-radius: 4px;
  text-decoration: none;
  color: #ecf0f1;
  transition: background 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: #2980b9;
}

.sidebar .logout-btn {
  margin-top: auto;
  background: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Topbar */
.topbar {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar .welcome {
  font-size: 1.1em;
  color: #333;
}

.topbar .time {
  font-size: 0.9em;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Contenido principal */
.main-content {
  flex: 1;
  padding: 30px;
}

/* Títulos */
h1 {
  font-size: 2em;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

/* Tarjetas (por ejemplo, para quejas) */
.plantel-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card p {
  margin: 10px 0;
  font-size: 0.9em;
  color: #555;
  word-break: break-word; /* Evita que el texto se desborde */
}

.card strong {
  color: #333;
}

.card span {
  font-weight: bold;
}

/* Colores para estados */
.card span[style*="orange"] {
  color: #f39c12;  /* Pendiente */
}

.card span[style*="blue"] {
  color: #3498db;  /* En revisión */
}

.card span[style*="green"] {
  color: #27ae60;  /* Resuelto */
}

/* Miniaturas de imágenes */
.imagenes {
  margin-top: 10px;
}

.imagenes img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagenes img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Botones */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(45deg, #4285f4, #357ae8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: linear-gradient(45deg, #357ae8, #4285f4);
  transform: translateY(-2px);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Formularios: inputs, selects y labels */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
  outline: none;
}

label {
  font-size: 16px;
  color: #444;
  margin: 10px 0 5px;
  display: block;
}

/* Animaciones básicas */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }
  .sidebar h2 {
    display: none;
  }
  .sidebar a {
    flex: 1;
    justify-content: center;
    margin: 0 5px;
    padding: 10px;
  }
  .main-content {
    padding: 20px;
  }
  .plantel-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Estilos exclusivos para el login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f0f2f5;
}

.login-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.login-card h1 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}