/*
 * GED — folha de estilo própria da aplicação.
 * Correções visuais pontuais sobre o tema Bootstrap/MDB vendorizado (sem alterar os libs/).
 */

:root {
    --ged-primary: #2c5cc5;
    --ged-primary-dark: #1e3f8a;
    --ged-accent: #ff9f1c;
}

/* ─── Identidade visual: reforça a marca sem reescrever o tema Bootstrap/MDB inteiro ─── */
.navbar.navbar-light.lighten-1 {
    border-bottom: 3px solid var(--ged-primary);
}

#ged-breadcrumb .breadcrumb-item.active a,
#ged-breadcrumb .breadcrumb-item.active {
    color: var(--ged-primary-dark);
}

/* ─── Cores por tipo de arquivo — dá contraste visual imediato ao ícone na grade ─── */
.ged-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    margin-right: 4px;
    font-size: 90%;
}

.ged-file-icon.ext-pdf {
    background: #fdeceb;
    color: #d93025;
}

.ged-file-icon.ext-doc {
    background: #e8f0fe;
    color: #1a56db;
}

.ged-file-icon.ext-xls {
    background: #e6f4ea;
    color: #1e8e3e;
}

.ged-file-icon.ext-ppt {
    background: #fdf0e6;
    color: #d2691e;
}

.ged-file-icon.ext-img {
    background: #f3e8fd;
    color: #8430ce;
}

.ged-file-icon.ext-video,
.ged-file-icon.ext-audio {
    background: #fef7e0;
    color: #b06000;
}

.ged-file-icon.ext-zip {
    background: #eceff1;
    color: #455a64;
}

.ged-file-icon.ext-default {
    background: #eceff1;
    color: #607d8b;
}

/* ─── Estado vazio (pasta sem pastas/arquivos) ─── */
.ged-estado-vazio {
    text-align: center;
    padding: 48px 16px;
    color: #78909c;
}

.ged-estado-vazio i {
    font-size: 48px;
    color: #cfd8dc;
    display: block;
    margin-bottom: 12px;
}

.ged-estado-vazio p {
    margin: 0;
    font-size: 95%;
}

/* ─── Toques em telas pequenas: alvos de toque maiores, sem depender de hover ─── */
@media (max-width: 767px) {
    #tab_pastas_arquivos .badge-pill[data-toggle="dropdown"] {
        width: 36px !important;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #tab_pastas_arquivos .form-check-input {
        width: 20px;
        height: 20px;
    }

    .modal-dialog {
        margin: 8px;
    }
}

/* Todo elemento clicável deve deixar isso óbvio ao usuário */
[role="button"],
.card-link,
.badge-pill[data-toggle="dropdown"] {
    cursor: pointer;
}
