:root {
    --sidebar-width: 280px;
    --primary-color: #1e4bb6;
    /* SECAD/SUTRA Blue */
    --secondary-color: #0d6efd;
    --text-muted: #8d949c;
    --input-border: #d4d9df;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --pri: #2e3092;
    --sec: #0d6efd;
    --muted: #64748b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: black;
}
a:hover {
   transform: scale(1.03);
   transition: all 0.3s;
}

/* ── TOPBAR ── */
header {
    background: #fff;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    min-height: 70px;
}
.top-info {
    display: flex;
    flex-direction: column;
}
.page-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pri);
    line-height: 1.2;
}
.page-subtitle {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.search-top {
    flex: 1;
    max-width: 450px;
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}
.search-top input {
    width: 100%;
    padding: 8px 16px 8px 38px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    background: #f1f5f9;
    outline: none;
    transition: all 0.2s;
}
.search-top input:focus {
    border-color: var(--sec);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}
.search-top .si {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
}
.top-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.date-chip {
    font-size: 12px;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 5px 15px;
    white-space: nowrap;
    font-weight: 500;
}
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--muted);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s;
}
.icon-btn:hover {
    background: #e2e8f0;
    color: var(--pri);
}
.icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Sidebar & Layout */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #2e3092;
    z-index: 1000;
    transition: all 0.3s;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.page-content {
    padding: 30px;
    overflow-x: hidden;
}

.nav-link {
    color: rgba(255, 255, 255, .75);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, .1);
}

.nav-link.active {
    color: white;
    background-color: #037df73b !important;
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.search-box {
    padding: 1.5rem 1rem;
}

@media (max-width: 992px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.active {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stats-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* .title {
    color:#2e3092 !important;
} */

/* Login Page Premium Styles */
.login-card {
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.login-header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.login-header-logos img {
    height: 48px;
    object-fit: contain;
}

.welcome-title {
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-align: center;
}

.custom-input-group {
    position: relative;
    margin-bottom: 2rem;
}

.custom-input-group input {
    border: none;
    border-bottom: 2px solid var(--input-border);
    border-radius: 0;
    padding: 0.75rem 0;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.custom-input-group input:focus {
    border-bottom-color: var(--primary-color);
}

.custom-input-group label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
}

.custom-input-group input:focus+label,
.custom-input-group input:not(:placeholder-shown)+label {
    top: -1.2rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-login {
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    opacity: 0.9;
    color: white;
}

.register-section {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.register-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.divider {
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.sutra-contact {
    text-align: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    line-height: 1.6;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sutra-bottom-logo {
    display: block;
    margin: 1.5rem auto 0;
    height: 60px;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stats-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* barra de pesquisa */
.search {
    background-color: #2e3092;

}

.search:focus {
    background-color: #2e3092;
}

.search::placeholder {
    color: white;
}

/* Acesso Rápido */
.card-fast-access{
    background-color: #2e3092 !important;
    border-radius: 12px !important;
}

/* CKEditor Custom Styles */
.ck-editor__editable_inline {
    min-height: 250px !important;
}

.ck.ck-editor__top .ck-toolbar {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.ck-editor__editable_inline {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
/* Privacy Badge Toggle */
.badge-toggle-privacy {
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.badge-toggle-privacy:hover {
	opacity: 0.85;
	transform: scale(1.05);
}

/* -- PRINT STYLES -- */
@media print { .sidebar, header, .btn, .dropdown, .pagination, .nav-tabs, .no-print { display: none !important; } .main-content { margin-left: 0 !important; padding: 0 !important; background: white !important; } .page-content { padding: 0 !important; } .card { box-shadow: none !important; border: none !important; } table { width: 100% !important; border: 1px solid #eee !important; } th, td { padding: 8px !important; border-bottom: 1px solid #eee !important; } tr { page-break-inside: avoid; } }
