body {
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  transition: all 0.3s ease;
}

.container-main {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 210px;
  background: #1e3a8a;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px 0 10px;
  min-height: 100vh;
  box-shadow: 2px 0 8px #0002;
}
.sidebar h2 {
  font-size: 1.4em;
  margin-bottom: 1.5em;
  font-weight: 700;
}
.sidebar a, .sidebar button {
  width: 100%;
  color: #fff;
  background: none;
  border: none;
  font-size: 1em;
  padding: 12px 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 7px;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar a:hover, .sidebar button:hover {
  background: #2563eb;
  transform: translateX(8px) scale(1.02);
  box-shadow: 4px 0 15px rgba(37, 99, 235, 0.3);
  padding-left: 20px;
  border-left: 4px solid #fff;
}

.sidebar a.active {
  background: #1d4ed8;
  font-weight: 600;
  box-shadow: 4px 0 15px rgba(29, 78, 216, 0.4);
  transform: translateX(5px);
  border-left: 4px solid #fff;
  padding-left: 20px;
}

/* Efecto de subrayado animado */
.sidebar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 8px;
  left: 15px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.sidebar a:hover::after {
  width: calc(100% - 30px);
}
.sidebar .logout-btn {
  margin-top: auto;
  background: #ef4444;
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  justify-content: center;
  padding: 12px 0;
  transition: all 0.3s ease;
}
.sidebar .logout-btn {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  background: #ef4444;
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  justify-content: center;
  padding: 12px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  z-index: 1;
}

.sidebar .logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #dc2626;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.sidebar .logout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
  padding-left: 25px;
}

.sidebar .logout-btn:hover::before {
  width: 100%;
}

/* Efecto de vibración al hacer hover */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.sidebar .logout-btn:active {
  animation: shake 0.3s ease-in-out;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 40px 10px 10px 10px;
}
@media (max-width: 900px) {
  .container-main {
    flex-direction: column;
  }
  .sidebar {
    flex-direction: row;
    width: 100%;
    min-height: unset;
    height: 60px;
    padding: 10px;
    justify-content: space-around;
    box-shadow: 0 2px 8px #0002;
  }
  .main-content {
    padding: 20px 5px 5px 5px;
  }
}
input, select {
  font-size: 1em;
}

/* ===== ESTILOS PARA BOTONES ===== */

/* Estilos generales para botones */
button, .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  outline: none;
  border: none;
  cursor: pointer;
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:active, .btn:active {
  transform: scale(0.96) !important;
}

/* Efecto de onda al hacer clic */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Estilos específicos para botones en archivos.html */
#btnSubir {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#btnSubir:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

#btnSubir:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Efecto de brillo al pasar el cursor */
#btnSubir::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.8s;
  z-index: 1;
}

#btnSubir:hover::before {
  left: 100%;
}

/* Efecto de pulso para botones importantes */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.btn-important {
  animation: pulse 2s infinite;
}

.btn-important:hover {
  animation: none;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
}

/* Estilos para los botones de navegación del sidebar */
#sidebar nav a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

#sidebar nav a:hover {
  transform: translateX(8px);
  background: rgba(99, 102, 241, 0.1) !important;
  box-shadow: 4px 0 15px rgba(99, 102, 241, 0.2);
}

#sidebar nav a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #4f46e5;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  border-radius: 0 4px 4px 0;
}

#sidebar nav a:hover::after {
  transform: scaleY(1);
}

#sidebar nav a.active {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4f46e5 !important;
  font-weight: 600;
}

#sidebar nav a.active::after {
  transform: scaleY(1);
}

/* Estilos para el botón de cerrar sesión */
#logoutModalBtn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

#logoutModalBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

#logoutModalBtn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Estilos para el botón de abrir PDF */
#openPDF {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

#openPDF:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #0d9c6e 0%, #047857 100%);
}

#openPDF:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}
button, .btn, .sidebar a, .sidebar button {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

button:active, .btn:active {
  transform: scale(0.96);
}

/* Botón de Google - Efectos mejorados */
#loginGoogle {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
  border: 2px solid #e5e7eb;
}

#loginGoogle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  background-color: #f8fafc;
}

#loginGoogle:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Efecto de brillo al pasar el cursor */
#loginGoogle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.8s;
  z-index: -1;
}

#loginGoogle:hover::before {
  left: 100%;
}

/* Efecto de pulso al hacer hover */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

#loginGoogle:hover {
  animation: pulse 1.5s infinite;
}

/*google*/

.login-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 6px 32px #0003;
  max-width: 350px;
  width: 100%;
  text-align: center;
}
.login-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 100%;
}
.btn-google {
  background: #fff;
  border: none;
  box-shadow: 0 2px 12px #0002;
  border-radius: 100%;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s, transform 0.15s;
  margin: 20px auto 8px auto;
  cursor: pointer;
  outline: none;
}
.btn-google:hover, .btn-google:focus {
  box-shadow: 0 4px 18px #2563eb33;
  transform: scale(1.08);
}
.btn-google img {
  width: 30px;
  height: 30px;
}
.login-text {
  margin: 6px 0 0 0;
  font-size: 14px;
  color: #444;
}
.copyright {
  margin-top: 30px;
  color: #aaa;
  font-size: 12px;
}