/* ===== Bootstrap CSS variable overrides ===== */
:root {
    --bs-primary: #F7E255;
    --bs-primary-rgb: 247, 226, 85;
    --bs-link-color: #1A73E8;
    --bs-link-hover-color: #1558B0;
    --bs-body-color: #1A1A1A;
    --bs-body-font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
    --bs-success: #8AE559;
    --bs-danger: #FF6687;
}

/* ===== Typography ===== */
body {
    font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
    color: #1A1A1A;
}

/* ===== Links ===== */
a {
    color: #1A1A1A;
}
a:hover {
    color: #1558B0;
}

/* ===== Top navbar ===== */
.navbar {
    border-bottom: 1px solid #E1E0D5;
}

/* ===== Sidebar ===== */
#menu-aside {
    background-color: #FFFFFF !important;
    background-image: none !important;
    border-right: 1px solid #E1E0D5;
    color: #1A1A1A;
    font-size: 1rem;
}

#menu-aside .navbar-nav .nav-link {
    color: #1A1A1A;
    border-radius: 6px;
    padding: 10px 10px !important;
    margin: 1px 0;

}

#menu-aside .navbar-nav .nav-link:hover {
    background-color: #D4BE3E;
    color: #000000;
    font-weight: 700;
}

#menu-aside .navbar-nav .nav-link.active {
    background-color: #F7E255;
    color: #1A1A1A;
    font-weight: 500;
}

#menu-aside .nav-separator {
    border: none;
    border-top: 1px solid #E1E0D5;
    margin: 6px 10px;
    opacity: 1;
}

/* ===== Buttons (global) ===== */
button:not(.btn-close):not(.navbar-toggler) {
    color: #1A1A1A !important;
    border-width: 8px !important;
    border-color: #F7E255 !important;
    font-size: 12px !important;
    font-family: 'Ubuntu', Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
    background-color: #F7E255 !important;
}

a.btn {
    color: #1A1A1A !important;
    border-width: 8px !important;
    border-color: #F7E255 !important;
    font-size: 12px !important;
    font-family: 'Ubuntu', Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
    background-color: #F7E255 !important;
}

button.add-to-cart-button {
    border-width: 0px !important;
}

/* Top navbar buttons (Login, Sign Up, Admin, Log out) — white/grey style */
main nav.navbar a.btn,
main nav.navbar button:not(.btn-close) {
    color: #757575 !important;
    background-color: #FFFFFF !important;
    border-color: #ACACAC !important;
    border-width: 1px !important;
    font-weight: 400 !important;
}

main nav.navbar a.btn:hover,
main nav.navbar button:not(.btn-close):hover {
    background-color: #F7F6F3 !important;
    border-color: #757575 !important;
    color: #1A1A1A !important;
}

/* ===== Pagination ===== */
.pagination > li > a, .pagination > li > span { color: #1A1A1A; }
.pagination > li.active > a, .pagination > li.active > span {
    background-color: #F7E255 !important;
    border: 1px solid #D4BE3E !important;
    color: #1A1A1A !important;
}
.pagination li.paginate_button:hover {
    color: #D4BE3E;
}

/* ===== Notifications ===== */
.navbar-icon {
    text-decoration: none;
    position: relative;
}

.notification-counter {
    position: absolute;
    top: -7px;
    left: 10px;
    background-color: #FF6687;
    color: #fff;
    border-radius: 13px;
    font: 10px Verdana;
    padding: 1px 3px;
}

.notification-counter-empty {
    position: absolute;
    top: -2px;
    left: 10px;
    background-color: #FF6687;
    color: #fff;
    border-radius: 13px;
    font: 10px Verdana;
    padding: 1px 3px;
    width: 11px;
    height: 11px;
}

.notification a { text-decoration: none; }

/* ===== Tables ===== */
.table-text {
    font-size: 0.7rem;
    color: #1A1A1A;
    font-weight: 100;
}

.table > tbody > tr > td { white-space: nowrap; }

table#table td, tfoot, th, thead, tr { border-style: none; }

table#table thead tr th {
    text-align: center;
    border: none;
    text-transform: uppercase;
}

table#table thead tr th:first-child { text-align: start; }

table#table thead tr:first-child th {
    border-bottom: 1px solid #E1E0D5;
}

table#table thead td { padding: 10px; }

#table > thead > tr > th {
    font-weight: 800;
    vertical-align: middle;
}

/* ===== DataTables ===== */
div.dataTables_scrollHead { overflow: none; }
div.dataTables_scrollBody { overflow: none; }
div.dataTables_scroll { overflow-x: auto; }

div#table_wrapper div label { font-size: small; }
div#table_wrapper div label select {
    width: 70px;
    display: inline-block;
    font-size: small;
}
div#table_wrapper > div#table_length { display: inline-block; }
div#table_wrapper > div#table_filter {
    display: inline-block;
    float: right;
}
div#table_wrapper div label input {
    max-width: 75%;
    display: inline-block;
}

#table_info, #table_paginate { font-size: small; }

thead input { width: 100%; }

th {
    white-space: break-spaces !important;
    vertical-align: middle;
}
th input { max-width: 100px !important; }
th select { width: 100px !important; }

table.dataTable .sorting:before,
table.dataTable.table-sm .sorting_asc:before,
table.dataTable.table-sm .sorting_desc:before { top: 6px; }

table.dataTable .sorting:after,
table.dataTable.table-sm .sorting_asc:after,
table.dataTable.table-sm .sorting_desc:after { top: 6px; }

.dataTables_scrollHeadInner, .table {
    width: 100% !important;
    overflow-x: scroll;
}

.dataTables_scrollHeadInner > table > thead > tr > th { font-weight: 700; }
.dataTables_scrollHead > div > table > thead > tr > th { font-weight: 700; }
.non-services th { white-space: nowrap !important; }

/* ===== Empty pages ===== */
.empty-page-container {
    margin-top: 200px;
    display: block;
}
.empty-page-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100px;
    height: 100px;
}
.empty-page-message {
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #1A1A1A;
}
.empty-page-subtitle {
    display: block;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 180%;
    color: #757575;
}
.empty-page-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

/* ===== Tooltips ===== */
.info-tooltip {
    text-transform: lowercase;
    color: #1A73E8;
    font-weight: bold;
    font-size: 0.8rem;
    margin-left: 5px;
    margin-top: -4px;
    cursor: help;
}
.info-tooltip-services {
    position: absolute;
    margin-top: -5px;
}
.info-tooltip-websites {
    position: absolute;
    margin-top: 6px;
}

/* ===== Forms ===== */
#login-form { padding: 20px; }
.signup-link {
    display: block;
    text-decoration: none;
}
.search-box {
    margin-right: 10px;
    font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
}

/* ===== Sidebar nav misc ===== */
#nav {
    margin-top: 2rem;
    opacity: 0.8;
}
#sidebar { border-bottom: 0; }
.nav-link { font-size: 0.95rem; }

/* Remove uppercase from sidebar nav links */
aside nav div ul li a.nav-link { text-transform: none; }

/* ===== Instructions table ===== */
#instructions-section ul li table tr th {
    border: 1px solid black;
    max-width: 130px;
    text-align: center;
}

/* ===== Misc utilities ===== */
.align-center { text-align: center; }
.float-right { float: right; }
.width-100 { width: 100%; }
.table-link { text-decoration: none; }
.hidden { display: none; }
.ticket-warning { white-space: break-spaces; }
#dashboard-kpis { margin-left: auto; margin-right: auto; }
.modal-content { width: 1075px; }
div#filter_table_container { overflow: scroll; }
