/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.btn {
    border-radius: 5px;
    padding: 8px 16px;
}

/* Estilos para los campos del formulario */
.campo-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.campo-titulo {
    font-weight: 600;
}

/* Modal personalizado */
.modal-content {
    border-radius: 15px;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-title {
    font-weight: 700;
}

/* Mensajes de error */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

/* Responsive design */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
/* Estilos para la vista de tabla */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th, .table-bordered td {
    border: 1px solid #dee2e6;
}

.table-bordered thead th, .table-bordered thead td {
    border-bottom-width: 2px;
}

/* Estilos para los botones de vista */
.btn-group .btn {
    border-radius: 0.25rem !important;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.btn-group .btn.active {
    background-color: #0d6efd;
    color: white;
}
/* Estilos para las miniaturas en la tabla */
.ver-imagen-btn {
    transition: transform 0.2s;
}

.ver-imagen-btn:hover {
    transform: scale(1.05);
}

/* Estilos para el modal de imagen */
#imagenModalContent {
    max-height: 70vh;
    max-width: 100%;
}

/* Asegurar que la tabla sea legible */
.table td {
    vertical-align: middle;
}
/* Estilos para el panel de compartir */
#enlacePublico {
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* Estilo para el aviso de formulario compartido */
.alert-formulario-compartido {
    border-left: 4px solid #0d6efd;
    background-color: #f8faff;
}
/* Loader spin */
.bi-arrow-repeat.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para formulario compartido */
body.public-form {
    background-color: #f5f5f5;
}

.public-form .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.public-form .btn-submit {
    padding: 12px;
    font-size: 1.1rem;
}