/* RepositorioModerno.css - Estilos modernos para ADA Cloud (Propuesta A) */

/* Header */
.repo-header h3 {
    font-weight: 400;
    color: #16213e;
    font-size: 1.6rem;
}

.repo-header h3 i {
    color: #0d6efd;
    margin-right: 8px;
}

.repo-subtitle {
    color: #6c757d;
    font-size: .9rem;
}

/* Toolbar */
.repo-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.repo-view-btn {
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: .85rem;
    color: #495057;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.repo-view-btn.active,
.repo-view-btn:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    text-decoration: none;
}

.repo-search {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .85rem;
    width: 280px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.repo-search:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.repo-search-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botones añadir (visibilidad controlada por JS) */
#divAnadirCosas[style*="block"] {
    display: flex !important;
}

/* Breadcrumb */
.repo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: 24px;
}

.repo-breadcrumb a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.repo-breadcrumb a:hover {
    text-decoration: underline;
}

.repo-breadcrumb .sep {
    color: #adb5bd;
}

/* Tabla lista */
.repo-table-header {
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #e9ecef;
}

.repo-table-header .row > div {
    font-size: .8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.repo-list-row {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
    align-items: center;
}

.repo-list-row:hover {
    background: #f0f6ff;
}

.repo-list-row .divEnlace {
    font-weight: 500;
    color: #1a1a2e;
}

.repo-list-row .divEnlace:hover {
    color: #0d6efd;
}

/* Iconos de archivo con fondo coloreado */
.repo-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.repo-file-icon .colorIconoPDFRepositorio,
.repo-file-icon .colorIconoArchivoRepositorio {
    color: #dc3545;
}

.repo-file-icon-pdf {
    background: #fde8e8;
}

.repo-file-icon-excel {
    background: #d4edda;
}

.repo-file-icon-word {
    background: #d6e9f8;
}

.repo-file-icon-img {
    background: #d1ecf1;
}

.repo-file-icon-video {
    background: #e2e3e5;
}

.repo-file-icon-link {
    background: #cce5ff;
}

.repo-file-icon-folder {
    background: #fff3cd;
}

.repo-file-icon-zip {
    background: #fff3cd;
}

.repo-file-icon-default {
    background: #e9ecef;
}

/* Extension badge */
.repo-ext-badge {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

/* Paginacion */
.repo-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    justify-content: center;
}

.repo-pagination a {
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    text-decoration: none;
    color: #495057;
}

.repo-pagination a:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    text-decoration: none;
}

.repo-pagination span {
    font-size: .85rem;
    color: #6c757d;
    margin: 0 8px;
}

/* Vista iconos - cards */
.repo-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.repo-icon-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.repo-icon-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, .12);
    transform: translateY(-2px);
}

.repo-icon-card .repo-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.repo-icon-card .repo-card-name {
    font-size: .85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    word-break: break-word;
}

.repo-icon-card .repo-card-meta {
    font-size: .75rem;
    color: #adb5bd;
}

/* Fecha y tamano en lista */
.repo-date {
    color: #6c757d;
    font-size: .88rem;
}

/* Sin registros */
#divSinRegistros {
    text-align: center;
    padding: 40px 0;
    color: #adb5bd;
}
