/* ====== Estilos generales Isaza Inventario ====== */
.isaza-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(47, 48, 117, 0.1);
}

.isaza-app h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2F3075;
    font-size: 28px;
    font-weight: 600;
}

/* ====== Sistema de pestañas ====== */
.isaza-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-button {
    background: #e9ecef;
    color: #495057;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.tab-button:hover {
    background: #2F3075;
    color: white;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #2F3075;
    color: white;
    box-shadow: 0 4px 12px rgba(47, 48, 117, 0.3);
}

.tab-content {
    min-height: 600px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== Módulos ====== */
.isaza-module {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.isaza-module h3 {
    color: #2F3075;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2F3075;
}

/* ====== Formularios ====== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.isaza-module input,
.isaza-module select,
.isaza-module textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.isaza-module input:focus,
.isaza-module select:focus,
.isaza-module textarea:focus {
    outline: none;
    border-color: #2F3075;
    box-shadow: 0 0 0 3px rgba(47, 48, 117, 0.1);
}

.isaza-module textarea {
    resize: vertical;
    min-height: 80px;
}

/* ====== Botones ====== */
button {
    background: #2F3075;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

button:hover {
    background: #1e2050;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 48, 117, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Botones específicos */
.isaza-edit-user,
.isaza-edit-obra,
.isaza-edit-herr,
.isaza-edit-mat,
.isaza-edit-maint {
    background: #28a745;
    padding: 8px 12px;
    font-size: 12px;
}

.isaza-del-user,
.isaza-del-obra,
.isaza-del-herr,
.isaza-del-mat,
.isaza-del-maint {
    background: #dc3545;
    padding: 8px 12px;
    font-size: 12px;
}

#clear-form,
#clear-obra-form,
#clear-herr-form,
#clear-mat-form,
#clear-maint-form {
    background: #6c757d;
}

/* ====== Búsqueda ====== */
.search-box {
    margin: 20px 0;
}

.search-box input {
    max-width: 400px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

/* ====== Tablas ====== */
.isaza-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.isaza-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.isaza-table th {
    background: #2F3075;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid #1e2050;
}

.isaza-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.isaza-table tr:hover {
    background: #f8f9fa;
}

.isaza-table tr:last-child td {
    border-bottom: none;
}

/* Estados de herramientas */
.estado-disponible {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.estado-en_uso {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.estado-mantenimiento {
    background: #cce5ff;
    color: #004085;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.estado-dañada {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4