/* 
   Archivo: styles.css
   Descripción: Estilos personalizados para la aplicación Cryptex
   Fecha: 12/05/2025
   Versión: 1.2
*/

/* Estilos globales */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('../images/bg-5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #fff;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Contenedor principal - Transparente */
.main-container {
    flex: 1 0 auto;
    padding: 20px 0;
    margin: 20px auto;
    width: 95%;
    max-width: 1400px;
}

/* Header y Navbar */
.navbar {
    background-color: rgba(0, 43, 91, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Cards y Contenedores */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: rgba(0, 43, 91, 0.85); /* Color azul semitransparente */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    background-color: rgba(0, 35, 75, 0.9); /* Ligeramente más oscuro que el fondo del card */
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    color: #fff;
}

.card-title {
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Tablas */
.table {
    color: #fff;
    background-color: transparent;
}

.table thead th {
    background-color: rgba(0, 35, 75, 0.95);
    color: white;
    border-bottom: none;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.table tbody tr {
    background-color: rgba(0, 43, 91, 0.75);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 43, 91, 0.85);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 43, 91, 0.95);
}

.table td, .table th {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botones */
.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0055aa;
    border-color: #0055aa;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #0066cc;
    border-color: #0066cc;
}

/* Formularios */
.form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 43, 91, 0.2);
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
    background-color: #fff;
}

.form-label {
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Alertas y Notificaciones */
.alert-primary {
    color: #fff;
    background-color: rgba(0, 102, 204, 0.7);
    border-color: rgba(0, 102, 204, 0.8);
}

.alert-success {
    color: #fff;
    background-color: rgba(40, 167, 69, 0.7);
    border-color: rgba(40, 167, 69, 0.8);
}

.alert-danger {
    color: #fff;
    background-color: rgba(220, 53, 69, 0.7);
    border-color: rgba(220, 53, 69, 0.8);
}

.alert-warning {
    color: #fff;
    background-color: rgba(255, 193, 7, 0.7);
    border-color: rgba(255, 193, 7, 0.8);
}

/* Footer */
footer {
    background-color: transparent !important;
    color: #ffffff !important;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: auto;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Ajustes responsivos */
@media (max-width: 767.98px) {
    .main-container {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    
    .navbar-brand img {
        height: 30px;
    }
}

/* Login y Autenticación */
.login-container {
    max-width: 450px;
    margin: 5% auto;
    background-color: rgba(0, 43, 91, 0.85);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 2rem 0;
    background-color: rgba(0, 35, 75, 0.9);
}

.login-header img {
    height: 70px;
    margin-bottom: 1rem;
}

.login-body {
    padding: 2rem;
}

.login-footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 35, 75, 0.7);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Badges y estados */
.badge-success, .badge.bg-success {
    background-color: rgba(40, 167, 69, 0.9) !important;
}

.badge-danger, .badge.bg-danger {
    background-color: rgba(220, 53, 69, 0.9) !important;
}

.badge-warning, .badge.bg-warning {
    background-color: rgba(255, 193, 7, 0.9) !important;
    color: #212529;
}

/* Modales */
.modal-content {
    background-color: rgba(0, 43, 91, 0.95);
    border: none;
}

.modal-header {
    background-color: rgba(0, 35, 75, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para los círculos de íconos con mayor contraste */
.icon-circle-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Variaciones de color para los diferentes círculos */
.icon-green {
    background-color: #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.icon-yellow {
    background-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.icon-cyan {
    background-color: #17a2b8;
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.5);
}

.icon-gray {
    background-color: #6c757d;
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.5);
}

/* Utilities */
.bg-primary-dark {
    background-color: rgba(0, 35, 75, 0.9) !important;
}

.bg-primary-light {
    background-color: rgba(0, 102, 204, 0.8) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Para DataTables */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter, 
.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_processing, 
.dataTables_wrapper .dataTables_paginate {
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #333 !important;
}

/* Estilo para los iconos en botones o enlaces */
.action-icon {
    color: #fff;
    background-color: rgba(0, 102, 204, 0.7);
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background-color: rgba(0, 102, 204, 1);
    transform: scale(1.1);
}

.action-icon-edit {
    background-color: rgba(0, 102, 204, 0.7);
}

.action-icon-delete {
    background-color: rgba(220, 53, 69, 0.7);
}

.action-icon-view {
    background-color: rgba(40, 167, 69, 0.7);
}

.d-flex {
    align-items: center !important;
}