/* =========================================================
   GLOBAL
========================================================= */

body {
    background-color: rgba(202, 201, 199, 0.33);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #343a40;
}

/* =========================================================
   HEADINGS
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Mobile Heading Sizes */
@media (max-width: 768px) {

    h3 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.85rem;
    }
}

/* =========================================================
   HEADER
========================================================= */

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
}

.logo img {
    height: 80px;
    width: auto;
}

.title {
    padding: 10px;
    text-align: left;
}

.title h3 {
    font-size: 1.7rem;
    color: #003366;
}

.title h5 {
    color: #555;
    font-weight: 500;
}

/* =========================================================
   NAVBAR
========================================================= */

.horizontal-navbar {
    background: radial-gradient(circle, #085cb0, #2a5179);
    padding: 12px 20px;
}

.horizontal-navbar a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.horizontal-navbar a:hover,
.horizontal-navbar a.active {
    color: #ffeb3b;
}

/* =========================================================
   MOBILE SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: radial-gradient(circle, #085cb0, #2a5179);
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1050;
    padding-top: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   OVERLAY
========================================================= */

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.overlay.active {
    display: block;
}

/* =========================================================
   MOBILE NAVBAR
========================================================= */

.menu-btn {
    font-weight: 600;
}

@media (min-width: 992px) {

    .sidebar,
    .overlay,
    .menu-btn {
        display: none !important;
    }
}

/* =========================================================
   ANIMATION
========================================================= */

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   COMMON TEXT
========================================================= */

.text-title {
    color: #003366;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* =========================================================
   CONTENT AREA
========================================================= */

.left-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.login-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   CARD
========================================================= */

.card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px;
    width: 100%;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #085cb0;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    margin-top: 30px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer a {
    color: #9fe3ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   NOTIFICATION BAR
========================================================= */

.notification-bar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #343a40;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1060;
    padding: 20px;
}

.notification-bar.active {
    right: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #555;
    padding-bottom: 15px;
}

.notification-content {
    margin-top: 20px;
}

/* =========================================================
   DATATABLE FIXES
========================================================= */

table.dataTable {
    width: 100% !important;
    margin-top: 10px !important;
}

table.dataTable thead th {
     background: #dae1e5 !important;
    position: relative;
    color: #000;
    vertical-align: middle;
    white-space: nowrap;
}

table.dataTable tbody td {
    vertical-align: middle;
}

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

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 5px;
}

/* Pagination Alignment Fix */

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px !important;
    text-align: right;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 18px;
}

@media (max-width: 768px) {

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: center !important;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center;
    }

    .left-content {
        padding: 20px;
    }
}

/* =========================================================
   UTILITIES
========================================================= */

.sticky-top {
    z-index: 1020 !important;
}

.navbar-collapse {
    flex-grow: 0 !important;
}

.hand {
    display: inline-block;
    cursor: pointer;
    font-size: 24px;
}

.hand::before {
    content: '👉';
    color: #007bff;
    transition: color 0.3s ease;
}

.hand:hover::before {
    color: #0056b3;
}

/* =========================================================
   DATATABLE TOP ALIGNMENT
========================================================= */

.dataTables_wrapper .row:first-child {
    margin-bottom: 15px;
}

.dataTables_length,
.dataTables_filter,
.pdf-btn {
    display: flex;
    align-items: center;
}

.dataTables_length {
    margin-left: 15px;
}

.dataTables_filter {
    justify-content: flex-end;
}

.dataTables_filter input {
    width: 220px !important;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 6px 12px;
}

/* =========================================================
   SORT ICON FIX
========================================================= */

table.dataTable thead th {
    position: relative;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .dataTables_wrapper .row:first-child > div {
        margin-bottom: 10px;
        text-align: center !important;
        justify-content: center !important;
    }

    .dataTables_length,
    .dataTables_filter,
    .pdf-btn {
        justify-content: center !important;
    }

    .dataTables_filter input {
        width: 100% !important;
    }
}

.dataTables_wrapper {
    border: 1px solid #cfd4da;
    border-radius: 8px;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Table Border */

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
    border: 1px solid #dee2e6 !important;
}

/* Header Border */

table.dataTable thead th {
    border: 1px solid #dee2e6 !important;
    background-color: #dae1e5 !important;
    vertical-align: middle;
    white-space: nowrap;
}

/* Body Border */

table.dataTable tbody td {
    border: 1px solid #dee2e6 !important;
    vertical-align: middle;
}

/* Footer Area */

.dataTables_info,
.dataTables_paginate {
    margin-top: 10px;
}

/* Pagination Buttons */

.dataTables_wrapper .pagination .page-link {
    border-radius: 4px;
    margin: 0 2px;
}

/* Responsive */

@media (max-width: 768px) {

    .dataTables_wrapper {
        padding: 10px;
    }

    table.dataTable {
        font-size: 14px;
    }
}
