/*!

 =========================================================
 * Login Form Bootstrap 1
 =========================================================

 * Product Page: https://uifresh.net
 * Copyright 2021 UIFresh (https://uifresh.net)
 * Coded by UIFresh

 =========================================================

 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 */
html, body{
	height: 100%;
}
body{
	display: flex;
	align-items: center;
	background-image: linear-gradient( to right, #243472, #a0a0a0);
}
a{
	color: #f7a81b;
	text-decoration: none;
}
a:hover{
	color: #c1050c;
}
.uf-form-signin {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    margin: auto;
}
.uf-form-signin2 {
    width: 100%;
    max-width: 650px;
    padding: 55px;
    margin: auto;
}
.uf-input-group .input-group-text {
    background: #ffffff70;
    color: #f8f9fa;
    border: unset;
    font-size: 18px;
    padding: 15px;
    width: 50px;
}

.uf-input-group .form-control {
    border: unset;
    border-left: 1px solid #ffffff05;
    font-size: 16px;
    background: #ffffff70;
}

.uf-input-group .form-control:focus {
    box-shadow: unset;
    background: #ffffff;
}
.uf-btn-primary {
    background: #f7a81b;
    color: #fff;
}

.uf-btn-primary:hover {
    background: #243472;
    color: #fff;
}

.uf-form-check-input:checked {
    background-color: #842029;
    border-color: #842029;
}

.uf-social-login .uf-social-ic+.uf-social-ic{
	margin-left: 15px;
}
.uf-social-ic{
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.uf-social-ic:hover{
	background: #842029;
}
.uf-social-ic:hover i{
	color: #fff;
}

/* ========================================
   ALERT STYLES
   ======================================== */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ========================================
   MODAL BACKDROP FIX
   ======================================== */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    transition: opacity 0.15s linear !important;
}

.modal-backdrop.fade {
    opacity: 0 !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

/* Remove backdrop when hidden */
.modal-backdrop:not(.show) {
    display: none !important;
}

.modal {
    z-index: 1050 !important;
}

/* Ensure modal content is above backdrop */
.modal-dialog {
    z-index: 1051 !important;
}

/* ========================================
   MODAL BODY SCROLL FIX
   ======================================== */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ========================================
   BODY SCROLL FIX WHEN MODAL IS OPEN
   ======================================== */
body.modal-open {
    overflow: visible !important;
    padding-right: 0 !important;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   FORM IMPROVEMENTS
   ======================================== */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 168, 27, 0.25) !important;
    border-color: #f7a81b !important;
}

.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 168, 27, 0.25) !important;
    border-color: #f7a81b !important;
}

/* ========================================
   BUTTON IMPROVEMENTS
   ======================================== */
.btn-primary {
    background-color: #f7a81b !important;
    border-color: #f7a81b !important;
}

.btn-primary:hover {
    background-color: #243472 !important;
    border-color: #243472 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* ========================================
   DATA TABLE IMPROVEMENTS
   ======================================== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 10px 0;
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    min-width: 1200px; /* Ensures table doesn't squish too much */
}

/* ========================================
   CARD IMPROVEMENTS
   ======================================== */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

/* ========================================
   BADGE COLORS
   ======================================== */
.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge-success {
    background-color: #28a745 !important;
}

.badge-primary {
    background-color: #007bff !important;
}

.badge-danger {
    background-color: #dc3545 !important;
}

.badge-secondary {
    background-color: #6c757d !important;
}

/* ========================================
   DROPDOWN IMPROVEMENTS
   ======================================== */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* ========================================
   INPUT GROUP FIXES
   ======================================== */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #d1d3e2;
}

/* ========================================
   LOADING STATE
   ======================================== */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
/*!

 =========================================================
 * Login Form Bootstrap 1
 =========================================================

 * Product Page: https://uifresh.net
 * Copyright 2021 UIFresh (https://uifresh.net)
 * Coded by UIFresh

 =========================================================

 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 */
html, body{
	height: 100%;
}
body{
	display: flex;
	align-items: center;
	background-image: linear-gradient( to right, #243472, #a0a0a0);
}
a{
	color: #f7a81b;
	text-decoration: none;
}
a:hover{
	color: #c1050c;
}
.uf-form-signin {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    margin: auto;
}
.uf-form-signin2 {
    width: 100%;
    max-width: 650px;
    padding: 55px;
    margin: auto;
}
.uf-input-group .input-group-text {
    background: #ffffff70;
    color: #f8f9fa;
    border: unset;
    font-size: 18px;
    padding: 15px;
    width: 50px;
}

.uf-input-group .form-control {
    border: unset;
    border-left: 1px solid #ffffff05;
    font-size: 16px;
    background: #ffffff70;
}

.uf-input-group .form-control:focus {
    box-shadow: unset;
    background: #ffffff;
}
.uf-btn-primary {
    background: #f7a81b;
    color: #fff;
}

.uf-btn-primary:hover {
    background: #243472;
    color: #fff;
}

.uf-form-check-input:checked {
    background-color: #842029;
    border-color: #842029;
}

.uf-social-login .uf-social-ic+.uf-social-ic{
	margin-left: 15px;
}
.uf-social-ic{
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.uf-social-ic:hover{
	background: #842029;
}
.uf-social-ic:hover i{
	color: #fff;
}

/* ========================================
   ALERT STYLES
   ======================================== */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ========================================
   MODAL BACKDROP FIX
   ======================================== */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    transition: opacity 0.15s linear !important;
}

.modal-backdrop.fade {
    opacity: 0 !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

/* Remove backdrop when hidden */
.modal-backdrop:not(.show) {
    display: none !important;
}

.modal {
    z-index: 1050 !important;
}

/* Ensure modal content is above backdrop */
.modal-dialog {
    z-index: 1051 !important;
}

/* ========================================
   MODAL BODY SCROLL FIX
   ======================================== */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ========================================
   BODY SCROLL FIX WHEN MODAL IS OPEN
   ======================================== */
body.modal-open {
    overflow: visible !important;
    padding-right: 0 !important;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   FORM IMPROVEMENTS
   ======================================== */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 168, 27, 0.25) !important;
    border-color: #f7a81b !important;
}

.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 168, 27, 0.25) !important;
    border-color: #f7a81b !important;
}

/* ========================================
   BUTTON IMPROVEMENTS
   ======================================== */
.btn-primary {
    background-color: #f7a81b !important;
    border-color: #f7a81b !important;
}

.btn-primary:hover {
    background-color: #243472 !important;
    border-color: #243472 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* ========================================
   DATA TABLE IMPROVEMENTS
   ======================================== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 10px 0;
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    min-width: 1200px; /* Ensures table doesn't squish too much */
}

/* ========================================
   CARD IMPROVEMENTS
   ======================================== */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

/* ========================================
   BADGE COLORS
   ======================================== */
.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge-success {
    background-color: #28a745 !important;
}

.badge-primary {
    background-color: #007bff !important;
}

.badge-danger {
    background-color: #dc3545 !important;
}

.badge-secondary {
    background-color: #6c757d !important;
}

/* ========================================
   DROPDOWN IMPROVEMENTS
   ======================================== */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* ========================================
   INPUT GROUP FIXES
   ======================================== */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #d1d3e2;
}

/* ========================================
   LOADING STATE
   ======================================== */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
