/*Colores Base*/
:root {
  --primary-color: #536d82;
  --extra2-color: #9db2bf;
  --extra1-color: #26374d;
  --success-color: #85ac8d;
  --danger-color: #c20000;
  --info-color: #17a2b8;
  --icon-color: #17a2b8;
  --background-color: #dde6ed;
  --second-background-color: #f5f4f0;
}

/* Global*/
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family:
    "Lato Extended", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background-color);
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-top: 8px;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(83, 109, 130, 0.4);
}

button:active {
  transform: translateY(0);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--extra1-color);
  font-size: 14px;
  font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Login */

.login-container {
  background: var(--second-background-color);
  padding: 48px 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}
.login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--extra1-color);
  margin-bottom: 8px;
}
.login-header p {
  color: black;
  font-size: 14px;
}
.form-group {
  margin-bottom: 20px;
}
.footer-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.message {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.message.error {
  background: #fee;
  color: var(--danger-color);
  border: 1px solid #fcc;
}

.message.success {
  background: #efe;
  color: var(--success-color);
  border: 1px solid #cfc;
}

@media (max-width: 480px) {
  .login-container {
    padding: 40px 24px;
  }

  .login-header h1 {
    font-size: 24px;
  }
}


/* Layout general para páginas internas */

.app-layout {
  min-height: 100vh;
  display: flex;
  background: var(--background-color);
}

/* Sidebar tipo LMS */

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--extra1-color);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sidebar-header p {
  font-size: 13px;
  color: #d9e2ea;
}

.sidebar-menu {
  flex: 1;
  padding: 18px 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 6px;
  color: #eef3f7;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.menu-item.active {
  background: var(--primary-color);
  font-weight: 600;
}

.menu-icon {
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-item.logout {
  color: var(--danger-color);
}

/* Contenido principal */

.app-main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  padding: 32px;
}

.topbar {
  background: var(--second-background-color);
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
}

.topbar h1 {
  color: var(--extra1-color);
  font-size: 30px;
  margin-bottom: 6px;
}

.topbar p {
  color: #555;
  font-size: 15px;
}

/* Tarjetas de resumen */

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.summary-card {
  background: var(--second-background-color);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-icon {
  font-size: 30px;
  width: 54px;
  height: 54px;
  background: var(--background-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-card h3 {
  font-size: 28px;
  color: var(--extra1-color);
  margin-bottom: 4px;
}

.summary-card p {
  color: #555;
  font-size: 14px;
}

/* Dashboard inferior */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-card {
  background: var(--second-background-color);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-card h2 {
  color: var(--extra1-color);
  margin-bottom: 10px;
  font-size: 22px;
}

.dashboard-card p {
  color: #555;
  margin-bottom: 20px;
  font-size: 15px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quick-action {
  background: var(--background-color);
  color: var(--extra1-color);
  text-decoration: none;
  padding: 18px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(83, 109, 130, 0.25);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  display: block;
  color: var(--extra1-color);
  margin-bottom: 4px;
}

.info-item span {
  color: #555;
  font-size: 14px;
}

/* Responsive */

@media (max-width: 1000px) {
  .dashboard-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .app-layout {
    flex-direction: column;
  }

  .app-main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}