﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

// 🎨 Paleta de colores personalizada
$color-primary: #007bff;
$color-secondary: #6c757d;
$color-success: #28a745;
$color-danger: #dc3545;
$color-warning: #ffc107;
$color-light: #f8f9fa;
$color-dark: #212529;

// 🔤 Tipografía general
$font-stack: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

// =========================================
// 🌐 Global
// =========================================
body {
    font-family: $font-stack;
    background-color: #f3f6fa;
    color: $color-dark;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    color: $color-primary;
    font-weight: 600;
    margin-bottom: 1rem;
}

// =========================================
// 🧭 Navbar
// =========================================
.navbar {
    background-color: $color-primary !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    .navbar-brand

{
    color: white !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    color: #e8e8e8 !important;
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.3s ease;
    &:hover

{
    color: white !important;
    text-decoration: underline;
}

}
}

// =========================================
// 📦 Contenido Principal
// =========================================
.container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

// =========================================
// 📋 Tablas
// =========================================
.table {
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    th

{
    background-color: $color-primary;
    color: white;
    text-align: center;
    font-weight: 500;
}

td {
    text-align: center;
    vertical-align: middle;
}

tr:hover {
    background-color: rgba($color-primary, 0.05);
}

}

// =========================================
// 🧾 Formularios
// =========================================
form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    .form-control

{
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease-in-out;
    &:focus

{
    border-color: $color-primary;
    box-shadow: 0 0 4px rgba($color-primary, 0.4);
}

}

label {
    font-weight: 500;
    color: $color-dark;
    margin-bottom: 0.3rem;
}

.btn {
    margin-top: 1rem;
}

}

// =========================================
// 🧠 Botones personalizados
// =========================================
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    &.btn-primary

{
    background-color: $color-primary;
    border-color: $color-primary;
    &:hover

{
    background-color: darken($color-primary, 8%);
}

}

&.btn-danger {
    background-color: $color-danger;
    border-color: $color-danger;
    &:hover

{
    background-color: darken($color-danger, 8%);
}

}

&.btn-warning {
    background-color: $color-warning;
    border-color: $color-warning;
    color: #212529;
    &:hover

{
    background-color: darken($color-warning, 5%);
}

}

&.btn-secondary {
    background-color: $color-secondary;
    border-color: $color-secondary;
    &:hover

{
    background-color: darken($color-secondary, 8%);
}

}
}

// =========================================
// ⚠️ Mensajes de alerta
// =========================================
.alert {
    border-radius: 6px;
    font-weight: 500;
    &.alert-info

{
    background-color: lighten($color-primary, 40%);
    color: $color-dark;
    border-color: lighten($color-primary, 25%);
}

&.alert-warning {
    background-color: lighten($color-warning, 35%);
    color: $color-dark;
}

}

// =========================================
// ⚓ Footer
// =========================================
footer.footer {
    background-color: $color-dark;
    color: #ccc;
    padding: 1rem 0;
    text-align: center;
    margin-top: 3rem;
    a

{
    color: lighten($color-primary, 25%);
    text-decoration: none;
    &:hover

{
    color: white;
    text-decoration: underline;
}

}
}
