﻿/* Estilos personalizados para Altus Platform */

/* === ESTILOS DEL LOGIN === */
body.login-page {
  background: linear-gradient(135deg, #4f6aa0 0%, #2c5282 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Source Sans Pro", sans-serif;
}

.login-box {
  width: 400px;
  margin: 5% auto;
  background: transparent;
  box-shadow: none;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 300;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.login-logo .tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 5px;
  font-weight: 300;
  letter-spacing: 1px;
}

.login-box-body {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-box-msg {
  color: #4a5568;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
}

/* Formulario */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.form-control:focus {
  border-color: #4f6aa0;
  box-shadow: 0 0 0 3px rgba(79, 106, 160, 0.1);
  background: #ffffff;
  outline: none;
}

.form-control-feedback {
  color: #a0aec0;
  right: 15px;
  top: 12px;
}

/* BotÃ³n */
.btn-primary {
  background: linear-gradient(135deg, #4f6aa0 0%, #2c5282 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 106, 160, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 106, 160, 0.4);
  background: linear-gradient(135deg, #2c5282 0%, #4f6aa0 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Alertas de error */
.alert {
  border-radius: 8px;
  margin-top: 20px;
  border: none;
  padding: 15px;
}

.alert-danger {
  background: #fed7d7;
  color: #c53030;
  border-left: 4px solid #e53e3e;
}

/* Responsive */
@media (max-width: 768px) {
  .login-box {
    margin: 2% auto;
    width: 90%;
    max-width: 400px;
  }

  .login-logo h1 {
    font-size: 36px;
  }

  .login-box-body {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .login-box {
    width: 95%;
    margin: 5% auto;
  }

  .login-logo h1 {
    font-size: 28px;
  }
}

/* === ESTILOS GENERALES DE LA APLICACIÃ“N === */

/* Estilos para formularios */
.form-control:focus {
  border-color: #4f6aa0;
  box-shadow: 0 0 5px rgba(79, 106, 160, 0.3);
}

/* Estilos para botones generales */
.btn-primary {
  background-color: #4f6aa0;
  border-color: #4f6aa0;
}

.btn-primary:hover {
  background-color: #2c5282;
  border-color: #2c5282;
}

/* Estilos para alertas */
.alert {
  border-radius: 4px;
  margin-top: 10px;
}

/* Estilos para el sidebar */
.main-sidebar {
  background-color: #222d32;
}

.sidebar-menu > li.active > a {
  color: #fff;
  background-color: #1e282c;
  border-left: 3px solid #4f6aa0;
}

/* Estilos para tablas */
.table-responsive {
  border: none;
}

.table > thead > tr > th {
  border-bottom: 2px solid #f4f4f4;
  background-color: #f9f9f9;
}

/* Responsive para contenido general */
@media (max-width: 768px) {
  .content-wrapper {
    margin-left: 0;
  }
}

/* === NOTIFICACIONES === */
.notifications-menu .dropdown-menu {
  width: 380px; /* más ancho que el default para textos largos */
  max-width: 94vw; /* responsivo en móviles */
  white-space: normal; /* permitir saltos de línea */
}

.notifications-menu .menu {
  max-height: 420px; /* limitar alto y permitir scroll */
  overflow-y: auto;
}

.notifications-menu .menu > li > a {
  white-space: normal;
  padding-right: 50px;
  line-height: 1.3;
}

.notifications-menu .menu > li > a.is-unread {
  background-color: #f4f9ff;
  border-left: 3px solid #3c8dbc;
}

.notifications-menu .notification-title {
  display: block;
  font-weight: 600;
  white-space: normal;
  word-break: break-word; /* evitar overflow con palabras largas/URLs */
}

.notifications-menu .notification-message,
.notifications-menu .notification-date {
  display: block;
  font-size: 12px;
  white-space: normal;
  word-break: break-word;
}

.notifications-menu .notification-date {
  margin-top: 2px;
}

.notifications-menu .label {
  margin-left: 4px;
}

.notifications-menu .btn-link[disabled] {
  pointer-events: none;
  opacity: 0.5;
}
