body {
    margin: 0;
    padding: 0;
}

body.normal-body {
    margin: 0;
    padding-top: 80px;
}

body[dir="rtl"] .row {
    display: flex;
    flex-wrap: wrap;
}

body[dir="ltr"] .row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

body.centered-body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full height of the viewport */
    padding-top: 20px;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

.main-page {
    padding: 40px;
}

.right-page {
    padding-right: 50px;
}

.left-page {
    padding-left: 50px;
    padding-right: 20px;
}

/* For mobile devices */
@media (max-width: 768px) {
    .right-page {
        padding: 20px;
    }

    .left-page {
        padding: 20px;
    }
}

/* ==================== */
/* Navigation Styles */
/* ==================== */

.nav-box {
    background-color: #178099;
    color: white;
    box-shadow: 10px 0px 20px rgba(0, 0, 0, 0.1), -10px 0px 20px rgba(0, 0, 0, 0.1);
    margin: 0px;
    border-radius: 15px;
    padding: 30px 20px 30px 20px;
    width: 100%;
}

.nav-box-no-border {
    background-color: #164f59;
    color: white;
    box-shadow: 10px 0px 20px rgba(0, 0, 0, 0.1), -10px 0px 20px rgba(0, 0, 0, 0.1);
    margin: 0px;
    padding: 20px;
}

.nav-box .btn {
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: transparent;
    border: none;
    font-weight: normal;
}

.nav-box-no-border .btn {
    border-radius: 0px;
}

/* ==================== */
/* Header Styles */
/* ==================== */

.header-container {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1), 0px -10px 20px rgba(0, 0, 0, 0.05),
        10px 0px 20px rgba(0, 0, 0, 0.05), -10px 0px 20px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    background-color: #178099;
    width: 100%;
    height: 100px;
    padding: 20px 20px 90px 20px;
}

.header-row {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 244px;
    height: 222px;
}

.user-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.header-button {
    border-radius: 5px;
}

/* ==================== */
/* Footer Styles */
/* ==================== */

.footer-container {
    color: #a6a6a6;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

/* ==================== */
/* Cover Styles */
/* ==================== */

.cover-container {
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.1), 10px 0px 20px rgba(0, 0, 0, 0.1), -10px 0px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    position: relative;
    width: 100%;
    height: 12%;
    background-color: #164f59;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
}

.cover-overlay {
    background-color: #1780995e;
    text-align: center;
    padding: 30px;
}

.cover-title {
    padding: 30px;
}

/* ==================== */
/* Homepage Styles */
/* ==================== */

.homepage-section {
    background-color: #178099;
    background-image: url('img/a.png');
    width: 100%;
    padding: 40px;
}

.homepage-column {
    padding: 20px;
}

.homepage-title {
    text-align: justify;
    font-weight: normal;
    padding-bottom: 20px;
}

/* ==================== */
/* Login Page Styles */
/* ==================== */

.login-container {
    padding: 20px;
    background-color: #efeeee;
}

.login-panel {
    flex-wrap: wrap;
    align-items: stretch;
    box-shadow: 10px 0px 20px rgba(0, 0, 0, 0.1), -10px 0px 20px rgba(0, 0, 0, 0.1);
    margin: 0px;
    border-radius: 8px;
}

.login-panel-no-border {
    box-shadow: 10px 0px 20px rgba(0, 0, 0, 0.1), -10px 0px 20px rgba(0, 0, 0, 0.1);
    margin: 0px;
}

.login-card {
    border-radius: 20px;
    margin: 0px;
    padding: 0px 30px 0px 30px;
}

.login-button {
    width: 100%;
    color: white;
    margin-top: 8px;
}

.register-button {
    width: 100%;
    color: white;
}

.form-control {
    margin-bottom: 8px;
    text-align: center;
    border-radius: 5px;
    background-color: #efeeee;
    color: #a6a6a6 !important;
}

/* ==================== */
/* Button Styles */
/* ==================== */

.btn-danger {
    background-color: #0f5161;
    border-color: #0f5161;
    border-radius: 8px;
    font-weight: bold;
    margin-top:12px;
}

.btn-danger:hover {
    background-color: #9bb369;
    border-color: #9bb369;
}

.btn-info {
    background-color: #178099;
    border-color: #178099;
    border-radius: 8px;
    font-weight: bold;
    margin-top:12px;
}

.btn-info:hover {
    background-color: #3c5008;
    border-color: #3c5008;
}

/* ==================== */
/* Title and Counter Styles */
/* ==================== */

.box-title {
    font-weight: bold !important;
    font-size: 32px !important;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #178099;
}

.box-title-lite {
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 6px;
}

.counter {
    font-weight: normal;
    font-size: 48px;
    text-align: left;
    padding-left: 20px;
}

.counter-white {
    font-weight: bold;
    font-size: 48px;
    text-align: left;
    padding-left: 20px;
    color: white;
}

.counter-panel {
    margin-bottom: 15px;
    border-radius: 8px;
    padding:8px;
    background-color: white;
    border: 1px solid #e0e0e0;
}

.white-box-counter {
    padding: 8px;
    text-align: center;
}

.white-box.table-box-items {
    padding: 20px;
}

.table-box-bottom {
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.table-box-top {
    padding: 20px;
}

.white-box.table-box-items-no-padding {
    padding: 0px;
}

/* ==================== */
/* Checkbox Styles */
/* ==================== */

.select-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.select-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0; /* Completely hide the checkbox */
    cursor: pointer;
    height: 0;
    width: 0;
}

.select-checkbox span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white; /* Default background color */
    border: 2px solid lightgray; /* Light border color */
    border-radius: 50%; /* Rounded checkbox */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.select-checkbox input[type="checkbox"]:checked + span {
    background-color: #0f5161; /* Change background color when checked */
    border-color: #0f5161; /* Optional: Change border to match background */
}

/* ==================== */
/* Table Styles */
/* ==================== */

tbody tr {
    vertical-align: middle !important;
    text-align: center;
    color: #757c7f;
}

tbody tr td {
    vertical-align: middle !important;
}

thead tr {
    vertical-align: middle !important;
    background-color: #178099;
}

thead tr th {
    vertical-align: middle !important;
    color: white;
    text-align: center;
    font-size: 11px;
}

td {
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
}

.trdetail {
    vertical-align: middle;
    text-align: center;
    background: white;
    color: #757c7f;
    font-weight: bold;
}

/* ==================== */
/* Modal Filter Styles */
/* ==================== */

.modalFilter {
    display: none;
    height: auto;
    background: #e2e2e2;
    color: black;
    position: absolute;
    z-index: 1001;
    direction: rtl;
    max-width: 300px;
    font-weight: bold;
}

.modalFilter .col-xs-12 {
    height: auto;
    background: #e2e2e2;
    color: black;
    position: absolute;
    z-index: 1001;
    right: 0 !important;
    left: 0 !important;
    direction: rtl;
    margin: 20px;
}

.modalFilter .modal-content {
    max-height: 250px;
    padding: 10px;
    overflow-y: auto;
}

.modalFilter .modal-footer {
    background: #e2e2e2;
    height: 45px;
    padding: 6px;
    vertical-align: middle;
}

/* ==================== */
/* Media Library Styles */
/* ==================== */

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

.media-item {
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.media-thumbnail img {
    width: 100%;
    border-radius: 10px;
    height: 150px !important;
    display: block;
}

.media-details {
    padding: 10px;
}

.media-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.media-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.media-actions .btn {
    font-size: 12px;
    padding: 5px 10px;
}

/* ==================== */
/* Miscellaneous Styles */
/* ==================== */

hr {
    margin-top: 10px;
}

#hamburgerMenu {
    background-color: #1c1c1c;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin-top: 10px;
    display: block; /* Show hamburger icon on mobile */
}

/* Ensure the menu is hidden by default on mobile */
@media (max-width: 768px) {
    #hamburgerMenu {
        display: block;
        background-color: #0f5161;
        width: 100%;
        padding-bottom: 0px;
    }

    .menu {
        display: none; /* Keep the menu hidden */
    }
}

/* Show the hamburger menu and items for larger screens */
@media (min-width: 769px) {
    .menu {
        display: block; /* Display the menu on larger screens */
    }

    #hamburgerMenu {
        display: none; /* Hide the hamburger button on larger screens */
    }
}

.y {
    margin: 8px;
}

.x {
    width: 100%;
    background-color: #daac18;
    border-radius: 15px;
    color: white;
    border: 0px;
    padding: 6px;
}

.filterIcon {
    height: 16px;
    width: 16px;
}