/* Importa las utilidades de Tailwind CSS */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6; /* bg-gray-100 */
}

.d-flex {
    display: flex;
}

.min-h-screen {
    min-height: 100vh;
}

/* Estilos para el sidebar de navegación */
.sidebar {
    background-color: #1e3a8a; /* bg-blue-800 */
    color: #ffffff;
    width: 16rem; /* w-64 */
    padding: 1rem; /* p-4 */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
    margin-bottom: 1.5rem; /* mb-6 */
}

.sidebar nav a {
    display: block;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.25rem; /* rounded */
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar nav a:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.sidebar nav a.bg-blue-700 {
    background-color: #1d4ed8;
}

.sidebar nav a.hover\:bg-red-600:hover {
    background-color: #dc2626; /* hover:bg-red-600 */
}

/* Estilos para el contenido principal */
.flex-1 {
    flex: 1;
    padding: 1.5rem; /* p-6 */
}

.container-main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
}

.bg-white {
    background-color: #ffffff;
}

.p-6 {
    padding: 1.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: 700;
}

.text-blue-600 {
    color: #2563eb;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}

.table th {
    background-color: #f9fafb; /* bg-gray-50 */
    font-weight: 600;
    color: #374151; /* text-gray-700 */
    text-transform: uppercase;
    font-size: 0.75rem;
}

.table tbody tr:hover {
    background-color: #f3f4f6; /* bg-gray-100 */
}

/* Estilos de botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.btn-success {
    background-color: #10b981; /* bg-green-600 */
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669; /* hover:bg-green-700 */
}

.btn-danger {
    background-color: #ef4444; /* bg-red-600 */
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626; /* hover:bg-red-700 */
}

.btn-warning {
    background-color: #f59e0b; /* bg-yellow-600 */
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #d97706; /* hover:bg-yellow-700 */
}

/* Estilos para formularios */
.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.25rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb; /* focus:border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* focus:ring-blue-500 */
}

/* Estilos para modales de Bootstrap */
.modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Estilos para mensajes de éxito/error */
.bg-green-100 { background-color: #d1fae5; }
.border-green-400 { border-color: #34d399; }
.text-green-700 { color: #047857; }
.bg-red-100 { background-color: #fee2e2; }
.border-red-400 { border-color: #f87171; }
.text-red-700 { color: #b91c1c; }

/* Estilos para el botón de imprimir en detalles_prestamo.php */
.print-button {
    position: fixed;
    top: 1.5rem; /* Ajusta según necesidad */
    right: 1.5rem; /* Ajusta según necesidad */
    z-index: 1000;
}

/* Ocultar botón de imprimir al imprimir */
@media print {
    .print-button {
        display: none;
    }
    .sidebar {
        display: none;
    }
    .flex-1 {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body {
        background-color: #ffffff;
    }
    .container-main {
        max-width: none;
        padding: 0;
    }
}
