﻿/* card width override for mobile */
.card {
    min-width: 300px;
}

.dashboard-cards .card {
    min-width: unset;
}

/* Nav user dropdown overrides */
.dropdown-menu {
    min-width:7rem;
    margin: 0 !important;
}

.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
}

/* charts styles */

#radarChartJS {
    width: 400px;
    height: 350px;
}

/* Search suggestions styles*/
#search-suggestions {
    position: absolute;
    background: #fff;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    top: 100%;
    padding: 0.5rem 0;
    width: 100%;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
}

@media(min-width:700px) {
    #search-suggestions {
        width: 100%;
        min-width:400px;
    }
}

#search-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
}

#search-suggestions li:hover {
    background-color: #f0f0f0;
}

/* Auth layout containers */
.auth-layout-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 1rem; 
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.auth-layout-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/backgrounds/shopping-bg-light.png'); 
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.07; 
    z-index: -1;
}

.auth-content-wrapper {
    display: flex;
    width:100%;
    align-items: center;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid #d9dee3;
    border-radius: 0.5rem;
    padding: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: riseFadeIn 0.8s ease-out forwards;
}

@keyframes riseFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Container classes*/


.flex-center-between{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.flex-vh-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.flex-buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-direction:column;
    padding: 0.75rem 0.5rem;
    flex-wrap:wrap;
}

/*Search forms class*/
.search-form {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0.5rem; /* same as gap-2 */
    margin-bottom: 1rem; /* same as mb-3 */
    align-items: center;
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
    }
}

/* Base styles for all buttons and links,color overrides */

.form-control {
    color:black !important;
}

.form-check-input:focus {
    border-color: #E6954E !important;
    box-shadow: 0 2px 4px 0 rgb(65 51 24 / 40%);
}

.btn-custom,
.btn-custom:link,
.btn-custom:visited {
    color: #fff;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    display: flex;
    align-items:center;
    justify-content:center;
    gap:0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.dropdown-item {
    color: black !important;
}

.dropdown-item:not(.disabled).active, .dropdown-item:not(.disabled):active {
    background-color:whitesmoke !important;
    color:black !important;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.1;
    color: black;
}

.auth-link {
    color: #E6954E;
}

.auth-link:hover {
    color: #e64900;
}

.text-orange {
    color: #E6954E;
}

.text-navy {
    color: #1a2a4f !important;
}

.text-pure-black{
    color:black;
}

.text-danger {
    color: #b22222;
}

.bg-white {
    background-color: white;
    border: 1px solid gray !important;
}

/* Remove underline and visited coloring */
.btn-custom:hover,
.btn-custom:focus {
    text-decoration: none;
    color: #fff;
}

/* Orange */
.btn-primary-neon {
    background-color: #E6954E;
    border-color: #F08000;
}

.btn-primary-neon:hover,
.btn-primary-neon:focus {
    background-color: #cc4400;
    border-color: #cc4400;
}

/* Dark Navy Blue */
.btn-secondary-navy {
    background-color: #34549e;
    border-color: #1a2a4f;
}

.btn-secondary-navy:hover,
.btn-secondary-navy:focus {
    background-color: #13203c;
    border-color: #0f1a33;
}

/* Deep Red */
.btn-danger-deep {
    background-color: #E74C3C;
    border-color: #b22222;
}

.btn-danger-deep:hover,
.btn-danger-deep:focus {
    background-color: #991a1a;
    border-color: #7f1414;
}

.btn-white {
    background-color: white;
    border: 1px solid gray !important;
    color: black !important;
}

.btn-white:hover,
.btn-white:focus {
    background-color: #E6954E;
    border:1px solid !important;
    color: white !important;
}

.page-item.active .page-link, .page-item.active .page-link:hover, .page-item.active .page-link:focus,
.pagination li.active > a:not(.page-link),
.pagination li.active > a:not(.page-link):hover,
.pagination li.active > a:not(.page-link):focus {
    background-color: #E6954E;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 0.125rem 0.25rem rgba(105, 108, 255, 0.4);
}

.form-check-input:checked, .form-check-input[type=checkbox]:indeterminate {
    background-color: #F08000;
    border-color: #F08000;
    box-shadow: 0 2px 4px 0 rgba(105, 108, 255, 0.4);
}

.form-control:focus,
.form-select:focus {
    border-color: #696cff;
    border-color: #ff5500;
}

/* adjusting swal z-index */
.swal2-container {
    z-index: 9999 !important;
}

.swal2-confirm {
    background-color: #E6954E;
    border-color: #ff5500;
}

.swal2-confirm:hover {
    background-color: #cc4400;
    border-color: #cc4400;
}

.swal2-cancel {
    background-color: white;
    border: 1px solid gray !important;
    color: black;
    border-color: #1a2a4f;
}

.swal2-cancel:hover {
    background-color: #E6954E !important;
    color: white;
    border-color: #1a2a4f;
}

.app-brand .layout-menu-toggle {
    background-color: #E6954E;
    border-color: #ff5500;
    border: 7px solid #f5f5f9;
}

/* Dashboard button colors */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
    background-color: #E6954E !important;
    color: white;
}

.bg-menu-theme .menu-inner > .menu-item.active:before {
    background: #E6954E;
}

.details-border {
    border: 1px solid #1a2a4f;
    padding: 8px;
    color: black;
    border-radius: 6px;
}

.custom-card {
    border-left: 3px solid #E6954E;
    border-right: 3px solid #E6954E;
    border-radius: 8px;
    overflow: hidden;
}

.card-body {
    padding:2rem;
}

.custom-card-header {
    color: black;
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    display:flex;
    align-items:center;
    gap:0.5rem;
}

/* input field asterisk */
.required-field::after {
    content: '*';
    color: red;
    margin-left: 5px;
}

/* input validity classes*/
input.valid-input {
    border-color: #198754;
    padding-right: 2.5rem;
    background-image: url('/assets/img/svgs/icon-check.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
}

input.invalid-input {
    border-color: #dc3545;
}

select.valid-input {
    border-color: #198754;
    padding-right: 2.5rem;
    background-image: url('/assets/img/svgs/icon-check.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
}

select.invalid-input {
    border-color: #dc3545;
}

textarea.valid-input {
    border-color: #198754;
    padding-right: 2.5rem;
    background-image: url('/assets/img/svgs/icon-check.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
}

textarea.invalid-input {
    border-color: #dc3545;
}

/* Loader styles */
.pageLoader {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    opacity:0.5;
    justify-content: center;
    align-items: center;
}

/*Misc overrides*/
.avatar {
    cursor: default !important;
}

/* Responsive Adjustments */
@media (max-width: 660px) {
    .btn-custom {
        padding: 0.5rem 1.25rem;
        font-size:1rem;
    }
    .btn-custom,
    .btn-custom:link,
    .btn-custom:visited {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .btn-custom {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    #radarChartJS {
        width: 340px;
        height: 340px;
    }

    .custom-card-header {
        padding: 0.75rem 0.75rem;
    }

    .btn-custom,
    .btn-custom:link,
    .btn-custom:visited {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }
}
