@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colores del logo oficial pero con estilo moderno */
  --primary-color: #003366;
  --secondary-color: #1a6296;
  --bg-color: #f0f4f8;
  --text-color: #2b2d42;
  --card-bg: rgba(255, 255, 255, 0.85);
  --sidebar-bg: #ffffff;
  --success-color: #2a9d8f;
  --danger-color: #e63946;
  --warning-color: #f4a261;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  background-image: radial-gradient(circle at top right, #e0fbfc, transparent), 
                    radial-gradient(circle at bottom left, #caf0f8, transparent);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Pública */
.navbar-custom {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,119,182,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-brand img {
  height: 50px;
  object-fit: contain;
}

/* Selector de idioma */
.language-switcher select {
    background: var(--bg-color);
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Glass Card para el formulario */
.glass-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 119, 182, 0.08);
  border: 1px solid #ffffff;
  backdrop-filter: blur(15px);
  padding: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

h1.page-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.form-label {
  font-weight: 600;
  color: #4a4e69;
  font-size: 0.9rem;
}

.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid #ced4da;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background-color: #fcfdfd;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
  background-color: #fff;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 12px;
  padding: 0.8rem 2.5rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.4);
  color: #fff;
}

.form-section-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  background: #e0fbfc;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
}

.footer {
  margin-top: auto;
  padding: 1.5rem 0;
  text-align: center;
  color: #8d99ae;
  font-size: 0.9rem;
}

/* ---------------- PANEL INTERNO (TXULO) ---------------- */
.panel-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    box-shadow: 4px 0 20px rgba(0,0,0,0.03);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar .logo-area {
    margin-bottom: 2.5rem;
    text-align: center;
}

.sidebar .logo-area img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.nav-pills .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.nav-pills .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.panel-content {
    flex-grow: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

/* Tarjetas Dashboard */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.pendientes { background: #fff3cd; color: var(--warning-color); }
.stat-icon.aceptadas { background: #d1e7dd; color: var(--success-color); }
.stat-icon.rechazadas { background: #f8d7da; color: var(--danger-color); }

.stat-details h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.stat-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Tabla solicitudes */
.table-custom {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.table-custom th {
    background: #f8f9fa;
    color: #4a4e69;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    color: #4a4e69;
    font-weight: 500;
}

.badge-estado {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-estado.pendiente { background: #fff3cd; color: #856404; }
.badge-estado.aceptada { background: #d1e7dd; color: #0f5132; }
.badge-estado.rechazada { background: #f8d7da; color: #842029; }

.btn-action {
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
  .glass-card { padding: 1.5rem; }
  .panel-wrapper { flex-direction: column; }
  .sidebar { width: 100%; padding: 1rem; }
  .panel-content { padding: 1rem; }
}
