/* --- WBCT Custom WHMCS Theme (Complete) --- */

/* --- General Body & Layout --- */
body {
    background-color: #f9f9f9; /* Slightly off-white background */
    font-family: 'Montserrat', sans-serif;
    color: #555555;
}

#main-body {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Adds the "card" shadow */
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

a, a:hover, a:focus {
    color: #00aeef;
    transition: all 0.3s ease; /* Smooth transition for links */
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #0c2038;
    font-weight: 600;
}

/* --- Header & Navigation --- */
.navbar-main {
    background-color: #0c2038;
    border-bottom: 3px solid #00aeef;
}

.navbar-main .navbar-nav > li > a {
    color: #ffffff;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:focus,
.navbar-main .navbar-nav > .open > a:hover {
    color: #ffffff;
    background-color: rgba(0, 174, 239, 0.2);
}

/* --- Buttons --- */
.btn {
    transition: all 0.3s ease; /* Smooth transition for all buttons */
    border-radius: 4px;
}

.btn-primary {
    background-color: #00aeef;
    border-color: #009cdb;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #009cdb;
    border-color: #008cc7;
}

.btn-success {
    background-color: #00aeef;
    border-color: #009cdb;
}

/* --- Tables --- */
.table-list {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table-list > thead > tr > th {
    background-color: #0c2038;
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid #00aeef;
    padding: 12px 15px;
}

.table-list > tbody > tr > td {
    padding: 15px;
    vertical-align: middle;
}

.table-list > tbody > tr:hover {
    background-color: #f7faff;
}

/* --- Panels & Sidebars --- */
.panel-default .panel-heading {
    background-color: #f2f2f2;
    color: #0c2038;
    border-color: #dddddd;
    border-radius: 8px 8px 0 0;
}

.primary-sidebar, .secondary-sidebar {
    border-right: 1px solid #e9e9e9;
}

.primary-sidebar .list-group-item.active,
.primary-sidebar .list-group-item.active:focus,
.primary-sidebar .list-group-item.active:hover {
    background-color: #00aeef;
    border-color: #00aeef;
    color: #ffffff;
}

.secondary-sidebar .panel-heading {
    background-color: #0c2038;
    color: #ffffff;
}

/* --- Alerts & Notifications --- */
.alert-success {
    background-color: #e6f7ff;
    border-color: #00aeef;
    color: #0c2038;
}

.alert-info {
    background-color: #f0f0f0;
    border-color: #cccccc;
    color: #333333;
}

.alert-danger {
    background-color: #ffeded;
    border-color: #ffc2c2;
    color: #a94442;
}

/* --- FIX for Unreadable Table Headers --- */

/* This targets all header columns, including sorted ones, to ensure they are uniform */
.table.dataTable thead th {
    background-image: none !important;
    background-color: #0c2038 !important;
    color: #ffffff !important;
}

/* --- COMPLETE Sticky Footer & Styling --- */

/* This makes the main container of the page a flexible column that
   is at least the height of the browser window. */
body.whmcs-client-area {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* This is the key part. It tells the footer to take up all available
   vertical space above it, forcing it to the bottom. */
#footer {
    margin-top: auto;
    color: #a0a0a0;
    padding-top: 25px;
    padding-bottom: 25px;
}

/* The rest of this is for the streamlined styling */
#footer .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#footer .copyright {
    text-align: left;
    margin: 0;
    flex-grow: 1;
}

#footer .language-chooser {
    text-align: right;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

#footer .language-chooser .btn-group {
    margin-top: 0;
}

#footer a {
    color: #cccccc;
}

#footer a:hover {
    color: #ffffff;
}