/* PetroBill modern theme: layered over the existing Bootstrap 3 markup, no structural changes. */
:root {
    --pb-green: #1a6131;
    --pb-green-2: #237a3f;
    --pb-green-3: #2f9a52;
    --pb-lime: #b9ef02;
    --pb-bg: #eef3ef;
    --pb-card: #ffffff;
    --pb-text: #1f2933;
    --pb-muted: #6b7a75;
    --pb-line: #d9e4dd;
    --pb-radius: 10px;
    --pb-shadow: 0 6px 18px rgba(16, 48, 28, .10);
    --pb-shadow-sm: 0 2px 6px rgba(16, 48, 28, .08);
    --pb-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    font-family: var(--pb-font);
    color: var(--pb-text);
    background: var(--pb-bg);
    -webkit-font-smoothing: antialiased;
}

body {
    cursor: url("/Images/cursor-nozzle.svg") 3 13, auto;
}

a, button, .btn, [onclick], label[for], select, .list-group-item, .menu-anchor,
.nav-tabs a, .pagination a, .paginate_button, .select2-selection,
input[type=checkbox], input[type=radio], input[type=submit], input[type=button] {
    cursor: url("/Images/cursor-nozzle-pointer.svg") 3 13, pointer;
}

input[type=text], input[type=password], input[type=number], input[type=email],
input[type=search], input[type=date], input[type=tel], textarea {
    cursor: text;
}

::selection {
    background: var(--pb-lime);
    color: #1a1a1a;
}

/* Header */
header.navbar-fixed-top {
    background: linear-gradient(90deg, #14502a 0%, #1a6131 55%, #237a3f 100%) !important;
    border: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

header h3 {
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

header a {
    transition: opacity .2s;
}

header a:hover {
    opacity: .85;
    text-decoration: none;
}

.menu-anchor i {
    transition: transform .25s ease;
}

.menu-active .menu-anchor i {
    transform: rotate(90deg);
}

/* Side menu */
menu {
    background: linear-gradient(180deg, #1a6131 0%, #134a26 100%) !important;
    box-shadow: 6px 0 18px rgba(0, 0, 0, .25) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .35) transparent;
}

menu::-webkit-scrollbar {
    width: 6px;
}

menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 6px;
}

#profile-photo {
    box-shadow: 0 0 0 3px rgba(185, 239, 2, .6), 0 6px 14px rgba(0, 0, 0, .35);
    transition: transform .3s;
}

#profile-photo:hover {
    transform: scale(1.06);
}

.menu a {
    border-radius: 8px;
    margin: 2px 8px;
    width: calc(100% - 16px);
    transition: background-color .2s, transform .2s, color .2s;
}

.menu a:hover {
    transform: translateX(4px);
    background-color: rgba(255, 255, 255, .12) !important;
}

.menu .list-group-item {
    background: transparent;
    border: 0;
}

.list-group-item-text {
    background: rgba(255, 255, 255, .96) !important;
    border-radius: 10px;
    margin: 4px 8px 8px;
    padding: 4px 0;
}

.list-group-item-text div a {
    color: #1f2933 !important;
    font-size: .95em;
}

.list-group-item-text div a:hover {
    background: #e8f3ec !important;
    color: var(--pb-green) !important;
}

.mi-selected {
    background-color: rgba(255, 255, 255, .18) !important;
    border-left: 3px solid var(--pb-lime);
}

/* Content cards */
.post {
    animation: pb-fade .4s ease both;
}

.main .panel {
    border: 0;
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-sm);
    transition: box-shadow .25s;
}

.main .panel:hover {
    box-shadow: var(--pb-shadow);
}

.main .panel-heading {
    background: linear-gradient(90deg, #e8f3ec, #f4f9f5) !important;
    color: var(--pb-green) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--pb-line) !important;
    border-radius: var(--pb-radius) var(--pb-radius) 0 0;
}

.main .well {
    background: #fff;
    border: 0;
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-sm);
}

.main h2, .main h3, .main h4 {
    color: var(--pb-green);
    font-weight: 600;
}

/* Tables */
.main .table {
    background: #fff;
    box-shadow: var(--pb-shadow-sm);
}

.main .table > thead > tr > th {
    background: #e8f3ec;
    color: var(--pb-green);
    font-weight: 600;
    border-bottom: 2px solid #cfe3d6 !important;
    white-space: nowrap;
}

.main .table > tbody > tr {
    transition: background-color .15s;
    animation: pb-rise .35s ease both;
}

.main .table > tbody > tr:hover {
    background: #f1f8f3;
}

.main .table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafcfa;
}

.main .table > tbody > tr:nth-child(1) { animation-delay: .02s; }
.main .table > tbody > tr:nth-child(2) { animation-delay: .05s; }
.main .table > tbody > tr:nth-child(3) { animation-delay: .08s; }
.main .table > tbody > tr:nth-child(4) { animation-delay: .11s; }
.main .table > tbody > tr:nth-child(5) { animation-delay: .14s; }
.main .table > tbody > tr:nth-child(6) { animation-delay: .17s; }
.main .table > tbody > tr:nth-child(7) { animation-delay: .20s; }
.main .table > tbody > tr:nth-child(8) { animation-delay: .23s; }
.main .table > tbody > tr:nth-child(9) { animation-delay: .26s; }
.main .table > tbody > tr:nth-child(10) { animation-delay: .29s; }
.main .table > tbody > tr:nth-child(11) { animation-delay: .32s; }
.main .table > tbody > tr:nth-child(12) { animation-delay: .35s; }

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .2px;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, background-color .15s, filter .15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(180deg, #2c7be5, #1f65c0);
    border-color: #1b5aa8;
}

.btn-success {
    background: linear-gradient(180deg, #2f9a52, #237a3f);
    border-color: #1a6131;
}

.btn-danger {
    background: linear-gradient(180deg, #ef5350, #d32f2f);
    border-color: #b71c1c;
}

.btn-warning {
    background: linear-gradient(180deg, #f9a825, #ef8f00);
    border-color: #d67d00;
}

.btn-info {
    background: linear-gradient(180deg, #34b3d1, #2596b3);
    border-color: #1f7f98;
}

.btn-default {
    background: #fff;
    border-color: #c9d6ce;
    color: #33413b;
}

.action-buttons button {
    border: 0;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: filter .15s, transform .15s;
}

.action-buttons button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.pb-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transform: scale(0);
    animation: pb-ripple .6s ease-out;
    pointer-events: none;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #c9d6ce;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    border-color: var(--pb-green-3);
    box-shadow: 0 0 0 3px rgba(47, 154, 82, .18);
}

label {
    font-weight: 600;
    color: #33413b;
}

.select2-container--default .select2-selection--single {
    border-radius: 8px;
    border: 1px solid #c9d6ce;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--pb-green-3);
    box-shadow: 0 0 0 3px rgba(47, 154, 82, .18);
}

.select2-dropdown {
    border-radius: 8px;
    border-color: #c9d6ce;
    box-shadow: var(--pb-shadow);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--pb-green);
}

/* DataTables */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #c9d6ce;
    padding: 5px 10px;
    margin-left: 6px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #c9d6ce;
    padding: 4px 6px;
}

.pagination > li > a, .pagination > li > span {
    border-radius: 8px !important;
    margin: 0 2px;
    border-color: #d9e4dd;
    color: var(--pb-green);
    transition: background .15s, color .15s;
}

.pagination > li > a:hover {
    background: #e8f3ec;
    color: var(--pb-green);
}

.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span {
    background: var(--pb-green);
    border-color: var(--pb-green);
    color: #fff;
}

/* Tabs, badges, alerts */
.nav-tabs {
    border-bottom: 2px solid var(--pb-line);
}

.nav-tabs > li > a {
    border: 0 !important;
    border-radius: 8px 8px 0 0;
    color: var(--pb-muted);
    font-weight: 600;
    transition: color .15s, background .15s;
}

.nav-tabs > li > a:hover {
    background: #e8f3ec;
    color: var(--pb-green);
}

.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
    color: var(--pb-green);
    border-bottom: 3px solid var(--pb-green) !important;
    background: #fff;
}

.badge {
    border-radius: 12px;
    padding: 4px 8px;
    font-weight: 600;
    animation: pb-pulse 2.4s ease-in-out infinite;
}

.alert {
    border-radius: var(--pb-radius);
    border: 0;
    box-shadow: var(--pb-shadow-sm);
}

.label {
    border-radius: 6px;
}

/* Dialogs */
.jconfirm .jconfirm-box {
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3) !important;
}

.jconfirm .jconfirm-box .jconfirm-buttons button {
    border-radius: 8px;
}

.modal-content {
    border-radius: 14px;
    border: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.modal-header {
    background: #e8f3ec;
    border-radius: 14px 14px 0 0;
}

/* Dashboard charts */
canvas {
    border-color: #e3ebe6 !important;
    border-radius: 8px;
    background: #fff;
}

/* Login page */
.box-form {
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35) !important;
    animation: pb-fade .5s ease both;
}

@keyframes pb-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes pb-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes pb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, .35); }
    50% { box-shadow: 0 0 0 6px rgba(217, 83, 79, 0); }
}

@keyframes pb-ripple {
    to { transform: scale(2.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    body, * {
        cursor: auto !important;
    }

    .main .table > tbody > tr, .post, .badge {
        animation: none !important;
    }
}
