/* Modern Professional Teal & Slate Theme */
/* Color Palette Override */

/* ============================================
   PAGE BACKGROUND
   ============================================ */
body {
    background: #F8FAFC !important;
}

.power-ranger {
    background: #F8FAFC !important;
}

/* ============================================
   HEADER & TOP BAR
   ============================================ */
.top-header {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%) !important;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15) !important;
}

.top-header .head-user ul li p {
    color: #ffffff !important;
}

.top-header .logo_text .text_1,
.top-header .logo_text .text_2 {
    color: #ffffff !important;
}

.navbar {
    background: #F1F5F9 !important;
}

.navbar .navbar-brand {
    border-bottom: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
}

.navbar .menu-title {
    border-bottom: 1px solid #E2E8F0 !important;
    color: #64748B !important;
}

.navbar .navbar-nav li > a {
    color: #334155 !important;
}

.navbar .navbar-nav li:hover {
    background: #CCFBF1 !important;
}

.navbar .navbar-nav li:hover a {
    color: #0F766E !important;
    font-weight: bold;
}

.navbar .navbar-nav > .active > a,
.navbar .navbar-nav > .active > a:focus,
.navbar .navbar-nav > .active > a:hover {
    background: #CCFBF1 !important;
    color: #0F766E !important;
}

.navbar .navbar-nav li.active .menu-icon {
    color: #0F766E !important;
}

/* ============================================
   USER AVATAR CIRCLE (Header right side)
   ============================================ */
.user-avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-avatar-circle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SIDEBAR
   ============================================ */
aside.left-panel {
    background: #F1F5F9 !important;
    position: relative !important;
}

.main-nav ul {
    background: #F1F5F9 !important;
}

.main-nav ul > li > a {
    color: #334155 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.main-nav ul > li > a:hover {
    color: #0F766E !important;
}

/* Active nav item — green dot + teal highlight */
.main-nav ul > li.active {
    background: #CCFBF1 !important;
    border-radius: 6px;
}

.main-nav ul > li.active > a {
    color: #0F766E !important;
    font-weight: 700 !important;
    border-bottom-color: transparent !important;
}

.main-nav ul > li.active > a::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================
   SIDEBAR PIN / COLLAPSE BUTTON
   ============================================ */
.sidebar-pin-btn {
    position: absolute;
    top: 18px;
    right: -13px;
    width: 26px;
    height: 26px;
    background: #0F766E;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
    padding: 0;
    line-height: 1;
    transition: background 0.2s;
}

.sidebar-pin-btn:hover {
    background: #0D5F58;
}

/* Flip chevron right when sidebar is collapsed */
body.open .sidebar-pin-btn .fa-chevron-left:before {
    content: "\f054";
}

/* ============================================
   SIDEBAR MENU ICON COLOURS
   ============================================ */
.navbar .navbar-nav li > a .menu-icon {
    color: #64748B !important;
}

.navbar .navbar-nav li:hover > a .menu-icon,
.navbar .navbar-nav li.active > a .menu-icon {
    color: #0F766E !important;
}

/* ============================================
   COLLAPSED SIDEBAR (body.open)
   ============================================ */
body.open aside.left-panel {
    max-width: 70px !important;
    width: 70px !important;
    overflow: hidden;
}

body.open .right-panel {
    margin-left: 0 !important;
}

body.open .navbar .navbar-nav li > a {
    font-size: 0 !important;
    padding-left: 0;
}

body.open .navbar .navbar-nav .menu-title {
    font-size: 0 !important;
    opacity: 0;
    padding: 0;
    line-height: 0;
}

body.open .main-nav {
    display: none;
}

body.open .navbar .navbar-brand {
    display: none;
}

body.open aside.left-panel .navbar .navbar-nav li > a .menu-icon {
    font-size: 18px !important;
    z-index: 1;
    width: auto;
}

/* ============================================
   HIDE OLD MENUTOGGLE (replaced by pin btn)
   ============================================ */
.menutoggle,
a.menutoggle,
#menuToggle {
    display: none !important;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main {
    background: #F8FAFC !important;
}

.main .page-title {
    border-bottom: 1px solid #E2E8F0 !important;
}

.main .page-title h3.no-mobile-menu {
    color: #0F172A !important;
}

.main .update-contentbox {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
    border-radius: 10px;
}

/* ============================================
   PAGE TITLE BAR
   ============================================ */
.page-title {
    background: #ffffff;
    border-bottom: 2px solid #0F766E !important;
    padding: 10px 20px !important;
    margin-bottom: 16px;
}

.page-title h3 {
    color: #0F172A !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* ============================================
   RIGHT PANEL
   ============================================ */
.right-panel {
    background: #F8FAFC;
}

.right-panel .header {
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 !important;
}

/* ============================================
   TOPNAV BAR
   ============================================ */
.topnavbar {
    background: #EFF6FF;
    border-bottom: 1px solid #E2E8F0;
    padding: 6px 16px;
    font-size: 13px;
    color: #334155;
}

.topnavbar .first-span {
    font-weight: 700;
    color: #0F766E;
}

.topnavbar .second-span {
    color: #334155;
}

/* ============================================
   CARDS & BOXES
   ============================================ */
.main .Complaints-box {
    background: #F0FDFC !important;
    border: 1px solid #CCFBF1 !important;
    color: #0F172A !important;
}

.main .Complaints-box.yellow {
    background: #FFFBEB !important;
    border: 1px solid #FCD34D !important;
}

.main .Complaints-box.pink {
    background: #FCE7F3 !important;
    border: 1px solid #F472B6 !important;
}

.main .Complaints-box ul li a .list-complaint h3:before {
    color: #0F766E !important;
}

.main .Complaints-box ul li h3 {
    color: #0F172A !important;
}

.main .Complaints-box ul li p {
    color: #334155 !important;
}

/* ============================================
   HEADINGS & TEXT
   ============================================ */
.heading2 {
    color: #0F172A !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #0F172A !important;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.common-form ul li label {
    color: #0F172A !important;
    font-weight: 500;
}

.common-form ul li input,
.common-form ul li select,
.common-form ul li textarea {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

.common-form ul li input:hover,
.common-form ul li input:focus,
.common-form ul li select:hover,
.common-form ul li select:focus,
.common-form ul li textarea:hover,
.common-form ul li textarea:focus {
    border-color: #0F766E !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

.login-content form ul li input,
.login-content form ul li select {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

.login-content form ul li input:hover,
.login-content form ul li input:focus {
    border-color: #0F766E !important;
}

/* ============================================
   BUTTONS & ACTIONS
   ============================================ */
.common-form ul li.addmore-list button {
    background: #0F766E !important;
    color: #FFFFFF !important;
    border: none;
}

.common-form ul li.addmore-list button:hover {
    background: #0D5F58 !important;
}

.btn.btn-primary {
    background: #0F766E !important;
    border-color: #0F766E !important;
    color: #FFFFFF !important;
}

.btn.btn-primary:hover {
    background: #0D5F58 !important;
    border-color: #0D5F58 !important;
}

.tablebtn {
    background: #0F766E !important;
    color: #FFFFFF !important;
}

.tablebtn:hover {
    background: #0D5F58 !important;
}

.login-content form ul li input[type="submit"] {
    background: #0F766E !important;
    border: none;
}

.login-content form ul li input[type="submit"]:hover {
    background: #0D5F58 !important;
}

.delete-btn {
    background: #DC2626 !important;
}

.delete-btn:hover {
    background: #991B1B !important;
}

/* ============================================
   TABLES
   ============================================ */
.responsive-table table {
    border: 1px solid #E2E8F0 !important;
}

.responsive-table table tr {
    border-bottom: 1px solid #E2E8F0 !important;
}

.responsive-table table tbody tr th {
    background: #0F766E !important;
    color: #FFFFFF !important;
}

.responsive-table table thead th {
    color: #FFFFFF !important;
}

.responsive-table table thead tr.firsttr,
.responsive-table table thead tr.firsttr th,
.responsive-table table thead tr.firsttr td {
    background: #0F766E !important;
    color: #FFFFFF !important;
}

.responsive-table table thead tr.secondtr,
.responsive-table table thead tr.secondtr th,
.responsive-table table thead tr.secondtr td {
    background: #CCFBF1 !important;
    color: #0F766E !important;
}

/* New Portal Total — light blue */
.responsive-table table thead tr.newportaltr,
.responsive-table table thead tr.newportaltr th,
.responsive-table table thead tr.newportaltr td {
    background: #DBEAFE !important;
    color: #1E3A8A !important;
    font-weight: 600 !important;
}

/* Grand Total — light amber/yellow */
.responsive-table table thead tr.grandtotaltr,
.responsive-table table thead tr.grandtotaltr th,
.responsive-table table thead tr.grandtotaltr td {
    background: #FEF9C3 !important;
    color: #713F12 !important;
    font-weight: 700 !important;
}

.responsive-table table thead tr.newportaltr .totlink {
    color: #1E3A8A !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.responsive-table table thead tr.newportaltr .totlink:hover {
    color: #1D4ED8 !important;
}

.responsive-table table thead tr.grandtotaltr .totlink {
    color: #713F12 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.responsive-table table thead tr.grandtotaltr .totlink:hover {
    color: #92400E !important;
}

.responsive-table table tr th {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

.responsive-table table tbody tr:nth-of-type(odd) {
    background-color: #F8FAFC !important;
}

.responsive-table table tbody tr:nth-of-type(even) {
    background-color: #FFFFFF !important;
}

.responsive-table table tbody tr:hover {
    background-color: #F0FDFC !important;
}

.responsive-table table,
.responsive-table table tr,
.responsive-table table tr th,
.responsive-table table tr td {
    color: #334155 !important;
}

.main .update-contentbox .table-strip .table tr th {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
}

.main .update-contentbox .table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

.main .update-contentbox .table tbody tr:hover {
    background-color: #F0FDFC !important;
}

/* ============================================
   STATUS INDICATORS
   ============================================ */
.status-yes,
.status-positive {
    color: #059669 !important;
}

/* ============================================
   LINKS & ACCENTS
   ============================================ */
a {
    color: #0F766E !important;
}

a:hover {
    color: #0D5F58 !important;
}

.login-content form ul li a {
    color: #0F766E !important;
    font-weight: 700;
}

.login-content form ul li a:hover {
    color: #0D5F58 !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    padding: 12px 0;
}

.footer p {
    color: #64748B !important;
    font-size: 13px;
    margin: 0;
}

/* ============================================
   FORM CONTROLS (search bar)
   ============================================ */
.form input {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

.form input:hover,
.form input:focus {
    border-color: #0F766E !important;
}

.form button {
    color: #0F766E !important;
}

/* ============================================
   ACTIVE & FOCUS STATES
   ============================================ */
#FileUpload.active {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2) !important;
    border-color: #0F766E !important;
}

/* ============================================
   MUTED TEXT
   ============================================ */
.text-muted,
.text-secondary {
    color: #64748B !important;
}

/* ============================================
   BORDERS & DIVIDERS
   ============================================ */
hr {
    border-color: #E2E8F0 !important;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert-success {
    background: #F0FDFC !important;
    border: 1px solid #CCFBF1 !important;
    color: #0F766E !important;
}

.alert-danger {
    background: #FEE2E2 !important;
    border: 1px solid #FECACA !important;
    color: #991B1B !important;
}

.alert-warning {
    background: #FFFBEB !important;
    border: 1px solid #FCD34D !important;
    color: #92400E !important;
}

.alert-info {
    background: #F0FDFC !important;
    border: 1px solid #CCFBF1 !important;
    color: #0F766E !important;
}

/* ============================================
   RESPONSIVE — mobile sidebar
   ============================================ */
@media (max-width: 768px) {
    .sidebar-pin-btn {
        display: none;
    }

    aside.left-panel {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        height: auto !important;
        min-height: auto !important;
    }

    .right-panel {
        display: block !important;
        margin-left: 0 !important;
    }
}
