:root {
    --primary: #174a3b;
    --primary-dark: #10372c;
    --secondary: #f3f5f4;
    --sidebar: #163d32;
    --text: #26332f;
    --border: #e5e9e7;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f6;
    color: var(--text);
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f4;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--sidebar);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand-title {
    font-size: 22px;
    font-weight: bold;
}

.sidebar-brand small {
    opacity: .7;
}


.sidebar-menu {
    padding: 15px 10px;
}


.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 3px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    border-radius: 6px;
    transition: .2s;
}


.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}


.sidebar-menu i {
    font-size: 18px;
}


.menu-title {
    font-size: 10px;
    font-weight: bold;
    color: rgba(255,255,255,.45);
    padding: 20px 14px 7px;
    letter-spacing: 1px;
}


.sidebar-bottom {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
}


/* =========================================================
   CONTENT
   ========================================================= */

.admin-content {
    width: calc(100% - 260px);
    margin-left: 260px;
    padding: 30px;
}


.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}


.page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}


.page-subtitle {
    margin: 5px 0 0;
    color: #77817d;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #59635f;
}


/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}


.dashboard-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0ed;
    color: var(--primary);
    border-radius: 8px;
    font-size: 22px;
}


.dashboard-number {
    font-size: 25px;
    font-weight: bold;
}


.dashboard-label {
    color: #77817d;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 991px) {

    .admin-sidebar {
        width: 220px;
    }

    .admin-content {
        width: calc(100% - 220px);
        margin-left: 220px;
        padding: 20px;
    }

}


@media (max-width: 767px) {

    .admin-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .admin-wrapper {
        display: block;
    }

    .admin-content {
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }

    .admin-topbar {
        display: block;
    }

    .user-info {
        margin-top: 15px;
    }

    .login-box {
        padding: 30px 20px;
    }

}

/* ==========================================================
   JODIT
========================================================== */

.jodit-container {
    width: 100% !important;
    max-width: 100%;
}

.jodit-workplace {
    min-height: 350px;
}

.jodit-wysiwyg {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 767.98px) {

    .jodit-container {
        width: 100% !important;
    }

    .jodit-toolbar__box {
        overflow-x: auto;
    }

    .jodit-wysiwyg {
        font-size: 15px;
    }

}

/* ==========================================================
   ORDENAÇÃO DE FOTOS
========================================================== */

.foto-item {
    transition:
        transform .15s ease,
        opacity .15s ease;
}


.foto-arrastar {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 38px;

    padding: 7px 10px;

    background: #f8f9fa;

    border-bottom: 1px solid #e5e5e5;

    color: #6c757d;

    font-size: 12px;

    cursor: grab;

    user-select: none;

    touch-action: none;
}


.foto-arrastar:hover {
    background: #eef1f4;

    color: #343a40;
}


.foto-arrastar:active {
    cursor: grabbing;
}


.foto-arrastar i {
    font-size: 18px;
}


.foto-arrastando {
    opacity: .45;

    transform: scale(.96);
}


.foto-arrastando .foto-arrastar {
    background: #dee2e6;
}


.foto-ordem {
    font-size: 11px;
}


#lista-fotos {
    min-height: 100px;
}

.menu-mensagens-badge {
    min-width: 22px;

    padding: 3px 6px;

    border-radius: 12px;

    font-size: 11px;

    font-weight: 700;

    text-align: center;
}