/*navbar styling*/
.nav-item.dropdown .dropdown-menu-end[data-bs-popper] {
    top: 70%;
}

.nav-item.dropdown .navbar-nav-link.rounded-pill:active,
.nav-item.dropdown .navbar-nav-link.rounded-pill:focus {
    color: #0F749D ! important;
    background-color: #0f759d55 ! important;
}

/*End navbar styling*/

/*login page*/
.login-container {
    position: absolute;
    width: 50%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%); /* Moves the box back by 50% of its width and height */
}

.login-container .alert.login-error-message p.text-justify {
    text-align: justify;
}

.login-form,
.login-error-message {
    margin: 0 auto;
}

.login-form .card,
.login-form .card-body {
    border-radius: 0;
}

.login-form .card-body .form-control {
    transition: border-bottom-color 0.8s ease ! important; /* Smooth border-color change */
}

/* Optional: Add a subtle border color change on focus */
.login-form .card-body .form-control:focus,
.login-form .card-body .form-control:active {
    outline: none;
    box-shadow: none;
    border-bottom-color: #0F749D ! important; /* or any desired color */
    border-bottom-width: 2px ! important;
    border-bottom-style: solid ! important;
    animation: grow-from-center 0.8s ease-out forwards;
}

.login-form .card-body .forgot-password {
    text-decoration: none;
    color: #0f759d9d;
}

.login-form .card-body .forgot-password:hover,
.login-form .card-body .forgot-password:hover {
    color: #0F749D;
}

.login-form .input-group .input-group-text {
    background-color: white;
    border-bottom: none;
    border-top: none;
    border-left: none;
    border-right: inherit;
    border-radius: 0;
    color: #0F749D;
}

.login-form .input-group .input-group-text.password {
    border-bottom: 1px solid #D1D5DB ! important;
    color: #3b3b3b;
    font-weight: bold;
    cursor: pointer;
}

/* Keyframes for the "grow from center" effect */
@keyframes grow-from-center {
    0% {
        border-bottom-color: #c1c1c1 ! important; /* or any desired color */
    }
    100% {
        border-bottom-color: #0F749D ! important; /* or any desired color */
    }
}

/* Sidebar Navigation styling*/
.nav-sidebar .nav-link.active {
    background-color: #0f759d2b ! important;
    color: #0F749D ! important;
    border-right: 5px solid #0F749D ! important;
}

.sidebar-control.sidebar-main-resize,
.sidebar-mobile-main-toggle {
    background-color: #0f759d25 ! important;
    color: #0F749D ! important;
}

.sidebar-control.sidebar-main-resize {
    position: absolute;
    right: 16px;
}

.ph-dots-three.sidebar-resize-show {
    color: #0F749D ! important;
    font-size: 2.5em;
    font-weight: bold;
}

.sidebar-section .nav.nav-sidebar .nav-item.nav-item-submenu.nav-item-expanded.nav-item-open > a.nav-link {
    background-color: #0f759d1c ! important;
}

.nav-sidebar .nav-item.nav-item-submenu.nav-item-expanded .nav-group-sub.collapse.show {
    background-color: #0f759d1c ! important;
}

/*End of Sidebar Navigation Styling*/

.card-body .navbar .container-fluid .nav.navbar-nav .nav-item .navbar-nav-link.navbar-nav-link-icon.active {
    color: #0F749D ! important;
    background-color: #0f759d2b ! important;
}

a.text-body[aria-expanded="true"] {
    color: #0F749D ! important;
}

.page-title {
    font-size: 1rem;
    font-weight: 600;
    /*margin-bottom: 1rem;*/
    color: #000000;
    text-transform: uppercase;
}

.form-wizard-field-group {
    margin-bottom: 1rem;
}

#search_programmes {
    margin-top: 1rem;
}

#selected-programmes-container {
    margin-top: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

#category-select {
    margin-bottom: 1rem;
}

.selected-programmes-count {
    font-weight: 600;
}

.form-wizard-field-group label {
    font-weight: 600;
    color: #000000;
    margin-top: 1rem;
    font-size: 1rem;
}


.form-wizard-field-group label {
    font-weight: 600;
    color: #000000;
    margin-top: 1rem;
    font-size: 1rem;
}

.details-card {
    width: 95%;
    margin: 10px auto;
}

ul {
    list-style-type: none;
    padding: 0;
}

.detail-header {
    font-weight: bolder;
}

.detail-header, .detail-info {
    display: block;
    padding: 5px;
}

.detail-header {
    letter-spacing: 1px;
    font-size: 0.9rem;
    background-color: #f4f4f4;
    color: #000;
    text-transform: uppercase;
}

.detail-info {
    font-size: 0.9rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: black;
    padding: 3px;
    border-bottom: 1px dotted #405189;
    margin: 10px auto;
    text-transform: uppercase;
}

.details-bg {
    background-color: #F3F4F6 !important;
}

#programmes-table-container {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 400px;
}

#programmes-table {
    width: 100%;
    table-layout: fixed;
}

.ring-border {
    height: 150px;
    padding: 3px;
    margin-bottom: 10px;
}

.app-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
}

.table-responsive .dropdown-menu {
    position: absolute; /* Use absolute positioning */
    z-index: 1050; /* Make sure it’s above other elements */
}

.btn-primary {
    background-color: #0F749D;
    border-color: #0F749D;
    color: #fff;
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #0F749D;
    color: #0F749D;
}

.btn.btn-primary:active,
.btn.btn-primary:focus {
    background-color: #0F749D ! important;
    border-color: #0F749D ! important;
    border-width: 5px ! important;
    color: #ffffff;
    box-shadow: 0 0 2px #0F749D;
}


.btn-primary:focus-visible {
    background-color: #0F749D;
    border-color: #0F749D;
    color: #fff;
    box-shadow: none;
}


.underline {
    cursor: pointer;
    background: linear-gradient(to right, black 0%, black 100%) center bottom no-repeat;
    transition: background-size 0.3s ease-in;
    padding-bottom: 3px;
    background-size: 0 1px;
}

.underline:hover,
.underline.active {
    background-size: 100% 1px;
}

#app_name {
    font-size: 1.9rem !important;
    font-family: "Averia Serif Libre", serif;
    font-weight: 800;
    font-style: normal;
    color: black;
    letter-spacing: 4px;
}

.app-nav-bar.shadow {
    box-shadow: 0 0 5px #0F749D !important;
}

.app-nav-bar { /*background-size: 100% auto;*/
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    /*background-color: #fff !important;*/
    background-color: #0f759d2b ! important;
    /*border-bottom: 1.5px solid #0F749D;*/
    border-bottom: 0 solid #0f759d2b;
}

.app-nav-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7) 100%, #f0f0f0 80%);
}

.navbar-description {
    text-align: center; /* Center the text */
    margin: 0; /* Remove default margins */
    padding: 10px 0; /* Add padding for spacing */
    color: white; /* Adjust text color for visibility */
    z-index: 2; /* Ensure it's above the background */
}


/* Flex container for row layout */
.form-row-flex {
    display: flex;
    align-items: flex-end; /* Align elements at the bottom */
    gap: 10px; /* Space between fields */
    margin-bottom: 1rem;
}

/* Flex item for the input field */
.form-group {
    flex: 1; /* Make input field take as much space as possible */
    display: flex;
    flex-direction: column;
}

/* Flex item for the button group */
.button-group {
    display: flex;
    gap: 10px; /* Space between the buttons */
}

/* Button styling */
.button-group button {
    width: 100px;
    height: 38px; /* Adjust button height to match input */
    font-size: 14px;
}

/* Optional: Add some spacing to the additional fields */
#additional_fields {
    margin-top: 20px;
}

/* Flex container for row layout */
.form-row-flex {
    display: flex;
    align-items: flex-end; /* Align elements at the bottom */
    gap: 10px; /* Space between fields */
    margin-bottom: 1rem;
}

/* Flex item for the input field */
.form-group {
    flex: 1; /* Make input field take as much space as possible */
    display: flex;
    flex-direction: column;
}

/* Flex item for the button group */
.button-group {
    display: flex;
    gap: 10px; /* Space between the buttons */
}

/* Button styling */
.button-group button {
    width: 100px;
    height: 38px; /* Adjust button height to match input */
    font-size: 14px;
}

/* Optional: Add some spacing to the additional fields */
#additional_fields {
    margin-top: 20px;
}


.all-programmes-tables td {
    padding: 2px 8px;
    font-size: 12px;
    vertical-align: middle;
}

.all-programmes-tables th {
    padding: 6px 10px;
    font-size: 13px;
    vertical-align: middle;
}

#app_description {
    text-align: center;
    font-weight: bold;
    /*margin-left: 280px !important;*/
}

.navbar .container-fluid {
    /*display: flex;
    justify-content: space-between;
    align-items: center;*/
}

#app_description span {
    display: block;
}

.content .page-header {
    margin: -1.25rem -1.25rem 1rem -1.25rem;
}

.content .page-header .page-title {
    padding-top: 0.8rem;
    padding-bottom: 0.5rem;
}

.text-red {
    color: red;
}


body.wait, body.wait * {
    cursor: wait !important;
}


/* CSS to remove browser default datepicker icon */
.apply-datepicker::-webkit-calendar-picker-indicator {
    display: none;
}

.apply-datepicker::-moz-calendar-picker-indicator {
    display: none;
}

.apply-datepicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Optional: Ensure cursor shows as pointer when hovering */
.apply-datepicker {
    cursor: pointer;
}