/* =====================================================
   CONFIGURAÇÃO GLOBAL
===================================================== */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.95), rgba(245,245,245,.85) 30%, rgba(238,238,238,.95)),
        #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

/* =====================================================
   ACESSIBILIDADE
===================================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .10rem #ffffff, 0 0 0 .25rem #777777;
}

/* =====================================================
   LAYOUT PRINCIPAL
===================================================== */

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* =====================================================
   MENU LATERAL
===================================================== */

.sidebar {
    width: 260px;
    background: #111111;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,.15);
}

    .sidebar h3,
    .sidebar h4 {
        color: white;
        margin-bottom: 20px;
    }

    .sidebar hr {
        border-color: #444;
    }

    .sidebar a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
        transition: .25s;
    }

        .sidebar a:hover {
            background: #333;
            color: white;
        }

/* =====================================================
   ÁREA DE CONTEÚDO
===================================================== */

.content {
    flex: 1;
    padding: 30px;
}

/* =====================================================
   CARDS
===================================================== */

.card {
    border: none;
    border-radius: 14px;
    background: white;
}

.card-header {
    background: #111;
    color: white;
    border-radius: 14px 14px 0 0 !important;
}

/* =====================================================
   BOTÕES
===================================================== */

.btn {
    border-radius: 8px;
    transition: .20s;
}

.btn-dark {
    background: #111;
    border-color: #111;
}

    .btn-dark:hover {
        background: #333;
        border-color: #333;
    }

.btn-outline-dark:hover {
    background: #111;
}

/* =====================================================
   TABELAS
===================================================== */

.table {
    background: white;
    vertical-align: middle;
}

    .table thead {
        background: #111;
        color: white;
    }

    .table tbody tr:hover {
        background: #eeeeee;
    }

/* =====================================================
   FORMULÁRIOS
===================================================== */

.form-control {
    border-radius: 8px;
}

.form-select {
    border-radius: 8px;
}

textarea {
    resize: vertical;
}

/* =====================================================
   BADGES
===================================================== */

.badge {
    padding: 8px 12px;
    border-radius: 6px;
}

/* =====================================================
   SOMBRAS
===================================================== */

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.shadow-md {
    box-shadow: 0 5px 15px rgba(0,0,0,.10);
}

/* =====================================================
   LOGIN
===================================================== */

.login-card {
    max-width: 450px;
    margin: 80px auto;
}

/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-card {
    transition: .25s;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
    }

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 15px;
    }

    .content {
        padding: 15px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .btn {
        margin-bottom: 5px;
    }
}
/* =====================================================
   IDENTIDADE VISUAL PEDIDOS WEB
===================================================== */

.sidebar {
    padding: 18px;
}

.sidebar .brand-logo {
    display: block;
    width: min(100%, 196px);
    max-height: 166px;
    margin: 0 auto 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}

.card-header .btn-outline-dark,
.page-heading .btn-outline-dark {
    color: #fff;
    border-color: rgba(255,255,255,.72);
}

.card-header .btn-outline-dark:hover,
.page-heading .btn-outline-dark:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
}

.card-header .btn-outline-secondary,
.page-heading .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255,255,255,.45);
}

.card-header .btn-outline-secondary:hover,
.page-heading .btn-outline-secondary:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
}

.page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    border-radius: 14px;
    background: #111;
    color: #fff;
    padding: .75rem .9rem;
    overflow: hidden;
}

.page-heading-content {
    min-width: 0;
}

.page-heading-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.15;
}

.page-heading-subtitle {
    margin: .25rem 0 0;
    color: rgba(255,255,255,.72);
}

.page-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.page-heading-media {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
}

.page-heading-media .page-heading-content {
    grid-column: 2;
}

.page-heading-img {
    grid-column: 1;
    grid-row: 1;
    width: clamp(128px, 3.5vw, 136px);
    max-height: 136px;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: #000;
}

.page-heading-img-wide {
    width: clamp(146px, 5vw, 164px);
    max-height: 136px;
    aspect-ratio: 2 / 1;
}

.module-card {
    overflow: hidden;
}

.module-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 158px;
    background: #050505;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.module-card-media img {
    width: 134px;
    height: 134px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sidebar .brand-logo {
        width: 78px;
        max-height: 42px;
        margin-bottom: 8px;
    }

    .page-heading {
        grid-template-columns: 1fr;
    }

    .page-heading-media {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .page-heading-actions {
        justify-content: stretch;
    }

    .page-heading-actions .btn {
        flex: 1 1 140px;
    }

    .page-heading-img,
    .page-heading-img-wide {
        width: 100%;
        max-width: 42px;
        max-height: 38px;
        justify-self: start;
    }

    .page-heading-img-wide {
        max-width: 60px;
    }
}
