/* Utilidades de espaciado */
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-40 { padding: 40px; }
.m-20 { margin: 20px; }
.mt-40 { margin-top: 40px; }

/* Estilo global */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f8f9fa;
  font-size: 0.85rem; /* letras más pequeñas */
}

/* Fondo para login y dashboards */
.login-body, .dashboard-body {
  background: url('../img/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

/* Contenedor de login */
.login-container {
  background-color: rgba(255,255,255,0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: center;
  width: 350px;
  margin: auto;
  margin-top: 10%;
}
.login-container img { height: 80px; margin-bottom: 20px; }
.login-container h2 { color: #004080; margin-bottom: 20px; }
.login-container input,
.login-container button {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}
.login-container input { border: 1px solid #ccc; }
.login-container button {
  background-color: #004080;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}
.login-container button:hover { background-color: #0066cc; }
.error { color: red; margin-top: 10px; }

/* Navbar */
.navbar {
  background-color: #004080;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.navbar-left { display: flex; align-items: center; }
.navbar-left .logo { height: 40px; margin-right: 10px; }
.navbar-left .brand { font-weight: bold; font-size: 18px; }
.navbar-right a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}
.navbar-right a:hover { text-decoration: underline; }
.navbar-right .user { margin-right: 20px; font-style: italic; }
.logout-btn {
  background: #cc0000;
  padding: 6px 12px;
  border-radius: 5px;
}
.logout-btn:hover { background: #ff3333; }

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #ffffff;
  padding: 20px;
  position: fixed;
  top: 60px;
  left: 0;
  height: calc(100% - 60px);
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { margin: 15px 0; }
.sidebar ul li a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}
.sidebar ul li a:hover { color: #0066cc; }

/* Contenido principal */
.content {
  margin-left: 240px;
  padding: 20px;
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: #004080; margin-bottom: 10px; }
.card p { font-size: 14px; color: #333; margin-bottom: 15px; }
.card .btn {
  display: inline-block;
  background-color: #004080;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.card .btn:hover { background-color: #0066cc; }

/* Paneles */
.dashboard-container { display: flex; gap: 20px; margin: 20px; }
.left-panel {
  flex: 1;
  background-image: url('../../assets/img/logo1.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  padding: 15px;
  color: #fff;
}
.panel-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.menu-card {
  background-color: rgba(255,255,255,0.85);
  color: #003366;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}
.right-panel {
  flex: 3;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

/* Encabezado */
.header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Botones */
.btn {
  background-color: #003366;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  font-size: 0.8rem;
}
.btn:hover { background-color: #0055aa; opacity: 0.9; transform: translateY(-2px); }
.btn-success { background-color: #28a745 !important; }
.btn-primary { background-color: #007bff !important; }
.btn-info { background-color: #17a2b8 !important; }
.btn-secondary { background-color: #666; }
.btn-secondary:hover { background-color: #444; }
.btn-sm { font-size: 0.75rem; padding: 3px 6px; }

/* Tablas */
table { font-size: 0.8rem; }
th, td { padding: 0.3rem; }
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #004080;
  color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
}
#solicitudesPanel .panelBody iframe {
  height: 600px;
  border: none;
  border-radius: 8px;
}
