body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    background: white;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.header-logo { height: 40px; }

.btn-ingresar {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Card de Login */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 350px;
    text-align: center;
}

.card-logo { width: 150px; margin-bottom: 20px; }

h2 { color: #0d47a1; margin-bottom: 25px; font-size: 1.5rem; }

.form-group { text-align: left; margin-bottom: 15px; }

label { display: block; margin-bottom: 5px; color: #555; font-size: 14px; }

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #0d47a1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 12px;
}
/* Contenedor Principal */
.container-main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.welcome-section h1 {
    color: #0d47a1;
    margin-bottom: 10px;
}

/* Rejilla de Menú */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Tarjetas */
.menu-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    border-color: #0d47a1;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.menu-card h3 {
    color: #0d47a1;
    margin: 10px 0;
}

.menu-card p {
    font-size: 14px;
    color: #666;
}

.btn-logout {
    background-color: #d32f2f; /* Rojo para indicar salida/alerta */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 15px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background-color: #b71c1c;
}

.user-welcome {
    color: #333;
    font-size: 14px;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.custom-table th, .custom-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table th { background-color: #0d47a1; color: white; }

.btn-view {
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 5px;
}

.btn-copy {
    background: #0d47a1;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: #0d47a1;
    text-decoration: none;
    font-weight: bold;
}

.btn-open {
    background-color: #ff9800; /* Naranja para carpetas */
    color: white;
    padding: 5px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.btn-open:hover {
    background-color: #e68a00;
}

.custom-table tr:hover {
    background-color: #f9f9f9; /* Efecto visual al pasar el mouse */
}

/* Contenedor del buscador adaptable */
.search-container {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.search-group {
    display: flex;
    flex-direction: column; /* Por defecto en móvil: uno sobre otro */
    gap: 10px;
}

@media (min-width: 768px) {
    .search-group {
        flex-direction: row; /* En tablet/PC: uno al lado del otro */
    }
}

/* Input y Botón más grandes para dedos */
#fileSearch {
    height: 50px;
    font-size: 16px; /* Evita que iOS haga zoom automático al enfocar */
}

.btn-search-deep {
    height: 50px;
    background-color: #0d47a1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Tabla responsiva para móvil */
.file-list {
    overflow-x: auto; /* Permite scroll horizontal si la tabla es muy ancha */
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    h1 { font-size: 1.2rem; }
    .custom-table td, .custom-table th {
        padding: 8px;
        font-size: 13px; /* Letra más pequeña para que quepa todo */
    }
    .btn-view, .btn-open {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.admin-button {
    background-color: #2c3e50 !important; /* Un azul grisáceo más serio */
    border: 2px solid #0d47a1;
    font-weight: bold;
}

.admin-button:hover {
    background-color: #1a252f !important;
}
