@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #f4f6f9;
    color: #2c2c2c;
    font-size: 14px;
}

/* ===========================
   ADMIN LAYOUT
=========================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
    width: 220px;
    min-width: 220px;
    background-color: #4a1622;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 24px 20px 18px;
    border-bottom: 1px solid rgba(200, 164, 48, 0.2);
}

.sidebar-logo img {
    max-width: 130px;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

a.link-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

a.link-menu:hover {
    color: #ffffff;
    background-color: rgba(200, 164, 48, 0.1);
    border-left-color: rgba(200, 164, 48, 0.45);
}

a.link-menu.ativo {
    color: #c8a430;
    background-color: rgba(200, 164, 48, 0.14);
    border-left-color: #c8a430;
    font-weight: 600;
}

.sidebar-logoff {
    border-top: 1px solid rgba(200, 164, 48, 0.2);
    padding: 6px 0 8px;
}

a.link-menu.link-danger:hover {
    color: #ff8080;
    background-color: rgba(255, 100, 100, 0.1);
    border-left-color: rgba(255, 100, 100, 0.4);
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
    flex: 1;
    padding: 28px 32px;
    overflow-x: auto;
    min-width: 0;
}

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8dfc8;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #4a1622;
    margin: 0;
}

/* ===========================
   STAT CARDS
=========================== */
.stats-row {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 22px;
    border-left: 4px solid #c8a430;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    min-width: 140px;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4a1622;
    line-height: 1;
}

/* ===========================
   FILTER CARD
=========================== */
.filter-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.filter-card .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

/* ===========================
   TABLE CARD
=========================== */
.table-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* ===========================
   TABLE
=========================== */
.table {
    margin: 0;
    font-size: 12.5px;
}

.table thead th {
    background-color: #4a1622 !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 12px 13px;
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: #fdf9ef;
}

.table tbody td,
.table tbody th {
    vertical-align: middle;
    border-color: #f0eee8;
    padding: 9px 13px;
    color: #2c2c2c;
}

.table-bordered > :not(caption) > * > * {
    border-color: #f0eee8;
}

/* ===========================
   FORM CONTROLS
=========================== */
.form-control,
.form-select {
    font-size: 13px;
    border-radius: 6px;
    border-color: #dde0e5;
    padding: 7px 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: #c8a430;
    box-shadow: 0 0 0 3px rgba(200, 164, 48, 0.18);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    padding: 7px 16px;
}

.btn-primary {
    background-color: #4a1622 !important;
    border-color: #4a1622 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #6b2235 !important;
    border-color: #6b2235 !important;
}

.btn-success {
    background-color: #c8a430 !important;
    border-color: #c8a430 !important;
    color: #2c2c2c !important;
}

.btn-success:hover {
    background-color: #b5932a !important;
    border-color: #b5932a !important;
}

/* ===========================
   LOGIN PAGE
=========================== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(150deg, #3a0e18 0%, #6b1f30 50%, #4a1622 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 44px 40px;
    width: 400px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e8d0;
}

.login-card .login-logo img {
    max-width: 140px;
}

.login-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #4a1622;
    margin-bottom: 22px;
    text-align: center;
}

.login-card .form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
}

.login-card .btn-primary {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* ===========================
   MISC
=========================== */
.vermelho { color: #c0392b !important; }
.branco { color: white !important; font-weight: bold; }
.min-width { min-width: 200px !important; }

.select2-container .select2-selection--single {
    height: 35px;
    border-radius: 6px;
    border-color: #dde0e5;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 33px;
    font-size: 13px;
    color: #2c2c2c;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 33px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4a1622;
}
