/* 
  COPRES - Sistema de Gestión de Tarjetas Prepagas
  Archivo de estilos personalizados
*/

/* ---- Estilos Generales ---- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh; /* Ensure full viewport height */
  }
  
  /* Encabezados */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
  }
  
  /* Enlaces */
  a {
    color: #3498db;
    transition: color 0.2s ease-in-out;
  }
  
  a:hover {
    color: #2980b9;
    text-decoration: none;
  }
  
  /* Botones */
  .btn {
    border-radius: 4px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.2s ease-in-out;
    padding: 0.375rem 1rem;
  }
  
  .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
  }
  
  .btn-primary:hover, .btn-primary:focus {
    background-color: #2980b9;
    border-color: #2980b9;
  }
  
  .btn-secondary {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
  }
  
  .btn-secondary:hover, .btn-secondary:focus {
    background-color: #6a7778;
    border-color: #6a7778;
  }
  
  .btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
  }
  
  .btn-success:hover, .btn-success:focus {
    background-color: #27ae60;
    border-color: #27ae60;
  }
  
  .btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
  }
  
  .btn-danger:hover, .btn-danger:focus {
    background-color: #c0392b;
    border-color: #c0392b;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  
  /* ---- Navegación ---- */
  .navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
  }
  
  .navbar-dark {
    background-color: #2c3e50 !important;
  }
  
  .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
  }
  
  .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
  }
  
  .nav-item {
    margin-left: 0.25rem;
  }
  
  /* ---- Tarjetas/Cards ---- */
  .card {
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
  }
  
  .card-header {
    background-color: rgba(245, 247, 250, 0.5);
    border-bottom: 1px solid #eaedf2;
    padding: 1rem 1.25rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  /* ---- Tablas ---- */
  .table {
    margin-bottom: 0;
  }
  
  .table th {
    border-top: none;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .table thead.thead-dark th {
    background-color: #34495e;
    border-color: #34495e;
  }
  
  .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(245, 247, 250, 0.7);
  }
  
  .table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
  }
  
  /* ---- Formularios ---- */
  .form-control {
    border-color: #dfe6e9;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  
  .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
  }
  
  .form-group label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
  }
  
  .form-text {
    color: #7f8c8d;
    font-size: 0.85rem;
  }
  
  /* Formularios en tarjetas */
  .bg-light {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
  }
  
  /* ---- Alertas ---- */
  .alert {
    border: none;
    border-radius: 4px;
    padding: 1rem 1.25rem;
  }
  
  .alert-danger {
    background-color: #fceaea;
    color: #c0392b;
  }
  
  .alert-success {
    background-color: #e8f8f0;
    color: #27ae60;
  }
  
  .alert-info {
    background-color: #e8f4fd;
    color: #2980b9;
  }
  
  /* ---- Badges ---- */
  .badge {
    font-weight: 500;
    padding: 0.3em 0.6em;
    border-radius: 3px;
  }
  
  .badge-success {
    background-color: #2ecc71;
  }
  
  .badge-danger {
    background-color: #e74c3c;
  }
  
  /* ---- Utilidades ---- */
  .text-right {
    text-align: right !important;
  }
  
  .mt-4 {
    margin-top: 1.5rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  /* ---- Iconos ---- */
  .fas {
    margin-right: 0.25rem;
  }
  
  /* ---- Responsive ---- */
  @media (max-width: 767.98px) {
    .container {
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .table-responsive {
      border-radius: 6px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    .card-header h5 {
      font-size: 1rem;
    }
    
    .btn {
      font-size: 0.9rem;
    }
  }
  
  /* ---- Estilos específicos de COPRES ---- */
  /* Filtros */
  .filtros {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  /* Estados */
  .estado-activa {
    color: #2ecc71;
  }
  
  .estado-baja {
    color: #e74c3c;
  }
  
  /* Totales y resúmenes */
  .resumen-datos {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
  }
  
  .dato-principal {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
  }
  
  /* Pantalla de login */
  .login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .login-container .card-header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 8px 8px 0 0;
    padding: 20px;
  }
  
  .login-container .card-title {
    margin-bottom: 0;
    color: white;
  }
  
  .login-logo {
    text-align: center;
    margin-bottom: 20px;
  }
  
  /* Footer */
  .footer {
    padding: 20px 0;
    margin-top: 40px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
  }
  
  /* Animaciones */
  .fade-in {
    animation: fadeIn 0.5s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Estilos para las entidades principales */
  .cuenta-item, .tarjeta-item, .centro-costo-item {
    transition: transform 0.2s ease-in-out;
  }
  
  .cuenta-item:hover, .tarjeta-item:hover, .centro-costo-item:hover {
    transform: translateY(-2px);
  }
  
  /* Mensajes de feedback */
  .mensaje-temporal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out forwards, fadeOut 0.3s ease-out 2.7s forwards;
  }
  
  @keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }


/* Footer Styles */
.footer {
  background-color: #2c3e50;
  width: 100%;
  padding: 20px 0;
  margin-top: auto; /* Push footer to bottom */
  color: white;
  text-align: center;
}

.footer small {
  opacity: 0.8;
}