/*---------------- Containers */
.container,
.container-fluid{
    box-sizing: border-box;
}

.main-container{
    min-height: 100vh;
}

/* Ensure no overflow*/
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.row > div {
    max-width: 100%; /* Prevent elements from expanding too wide */
    box-sizing: border-box;
}

#hero-img {
    max-width: 100%;
    height: auto;
}

form {
    width: 100%; /* Ensure form fields scale down */
}

button {
    max-width: 100%; /* Prevent buttons from breaking out */
}

/*---------------- Header ----------------*/
.header{
    background-color: #ffdb94;
    height: 90px;
}

#header-name-container p{
    margin: auto 0;
}

header.container-fluid,
footer.container-fluid{
    background-color: #2F4F4F;
    margin: 0;
    color: #D3D3D3;
}

header h1,
header h2,
header h3,
header h4,
header h5,
header p,
header p.nav-link,
header li.nav-link,
header label,
header a,
header .nav-link,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer p,
footer label,
footer a,
footer > .nav-link{
    color: #D3D3D3;
    text-decoration: none;
}

#logo-text{
    font-family: "Audiowide", sans-serif;
}

.account-btn{
    height: max-content;
    margin: auto 20px auto 0;
}

.container-fluid-grey{
    /* For when the background should be grey with a white container*/
    background: #F2F4F7;
}

.floating-container{
    background-color: white;
    border-radius: 15px / 15px;
    box-shadow: 5px 5px 5px 5px #e6e6e6;
}

/*---------------- Toast */
.toast-container {
    z-index: 1055;
    position: absolute;
    right: 0px;
    top: 76px;
    pointer-events: none;
    width: fit-content;
    border: 2px solid #2F4F4F;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: #2F4F4F;
    padding: 10px;
    margin: 20px;
}

.toast-container:empty {
    display: none;
}

.alert {
    position: relative;
    padding: 0;
    margin-bottom: 0;
    border: 1px solid transparent;
    border-radius: .25rem;
}

/*---------------- Site Nav */
#profile_dropdown{
    border: 2px solid #024124;
    border-radius: 0 0 5px 5px;
    padding: 0;
    margin: 0;
    width: 150px;
    max-width: 150px;!important;
    background-color: #FFFFFF;
    color: #2F4F4F;
    text-align: Right;
}

#profile_dropdown li{
    width: 100%;
    height: 30px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background-color: #FFFFFF;
}

#profile_dropdown a{
    color: #2F4F4F;
}

#profile_container,
#profile_container *{
    width: 150px;
}

.dropdown-menu{
    left: 50px;
    min-width: 12rem;
}

.text-end {
    text-align: left !important;
}

#nav-row{
    background-color: #2F4F4F;
    border-bottom: #2F4F4F solid 2px;
}

#nav-row ul{
    margin: auto;
}

#nav-row li{
    display: inline-block;
    margin: 0 10px;
    background-color: #2F4F4F;
}

#nav-row li:hover{
    border-bottom: #FFFFFF 3px solid;
}

#nav-row a{
    display: block;
    background-color: #2F4F4F;
    height: 80px;
    text-align: center;
    align-items: center;
    padding-top: 30px;
    border: none;
    border-radius: 0;
}

#nav-row *{
    color: #FFFFFF;
    font-weight: bold;
}

#logo-img{
    height: 80px;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto auto;
}

#employee_dropdown{
    border: 2px solid #2F4F4F;
    border-radius: 0 0 5px 5px;
}

#employee_dropdown a{
    border-radius: 0 0 5px 5px;
    padding: 0;
    margin: 0;
    height: 30px;
    background-color: #FFFFFF;
    color: #2F4F4F;
    text-align: left;
    font-weight: normal;
}

#employee_dropdown a *{
    color: #2F4F4F;
}

#employee_dropdown li{
    background-color: #FFFFFF;
}

/*---------------- General site rules ----------------*/
/* Buttons */

.c2a-button{
    width: 400px;
    height: 50px;
    vertical-align: middle;
    border-radius: 30px;
    margin: 5px;
}

.c2a-button > h3{
    padding: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    vertical-align: middle;
}

/* Lists */

ul {
  list-style-type: none;
}

/* Sets the forms into two columns */

#add_potential_client_form select,
#add_potential_client_form label,
#add_potential_client_form input[type=text],
#add_client_form select,
#add_client_form label,
#add_client_form input[type=text],
.form-2-col select,
.form-2-col label,
.form-2-col input[type=text],
.form-2-col input[type=email]{
    box-sizing: border-box;
    margin: 5px;
}

.form-group{
    width: 45%
}

#add_potential_client_form,
#add_client_form,
.form-2-col{
    display: flex;
    flex: 0 auto;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

/* Text */
h1,
h2,
h3,
h4,
h5,
p,
label,
a,
.nav-link{
    color: #2F4F4F;
    font-family: "Raleway", sans-serif;;
}

.one-line{
    height: 26px;
}

.overflow-hidden{
    text-overflow: ellipsis;
}

/* HR */

hr{
    height: 4px !important;
}

main{
    height: 100%;
}

#base-hr{
    margin: 0;
}

.no-link-decoration,
a{
    text-decoration: unset;
    width: auto;
}

.jumbotron-img{
    margin: 0 auto;
}
/*--------------- Django MSG*/

.msg-container{
    margin: 0;
    padding: 0;
}

.msg{
    margin: 0;
    height: 60px;
}

/*---------------- Nav */

.navbar{
    padding: 0;
}

.nav-height{
    height: 30px;
    padding: 0;
    margin: 0;
}

/*---------------- nav-tabs */
#nav-requests-tab{
     margin-left: 4px;
}

.nav-tabs{
    background: lightgrey;
}

.nav-link{
    border: none;
    color: #2F4F4F;
    background: none;
    border-radius: 7%;
    height: 60px;
    padding:0 16px;
    vertical-align: center;
}

.nav-link:hover {
    background: #F2F2F2;
    color: #2F4F4F;
}

.nav-link.active{
    border-bottom: #FFBF00 3px solid;
    border-radius: 7% 7% 0 0;
    color: #2F4F4F;
}

.nav-button{
    box-shadow: 5px 5px 5px 5px #e6e6e6;
    border-radius: 7%;
    margin: 20px;
    padding: 10px;
    height: 150px;
    width: 150px;
}

.nav-button > *{
    position: relative;
    top: 25%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.nav-button a:hover{
    background-color: #FFFFFF;
}


/*--------------- Homepage ---------------*/
/* Sections */
section{
    margin: 20px 0;
}

#banner{
    margin-top: 0;
}

/* Hero Image */
#hero-image {
    background-image: url('/static/media/bannerTryfan.jpg');
    background-size: cover; /* Ensures the image covers the container */
    background-position: center; /* Centers the image */
    width: 100vw; /* Full-width of the viewport */
    height: 50vh; /* Full-height of the viewport */
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    position: relative; /* Required for inner content positioning */
}

/* Text Container */
#hero-image-text {
    opacity: 1;
    visibility: visible;
    transition: opacity 1200ms ease-in, visibility 800ms ease-in;
    padding: 10px;
    width: max-content; /* Adjusts container width based on inner content */
    color: #F28500; /* Text color */
    text-align: center; /* Aligns text inside the container */
    border-radius: 10px; /* Optional: Makes the box corners rounded */
}

/* Transition on page load */
#hero-image-text.preparation {
    opacity: 0;
    visibility: hidden;
}


/* Text Styling */
#hero-image-text-h1 {
    font-size: 400%; /* Adjust font size as needed */
    margin: 0; /* Removes margin for a cleaner look */
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000;
}

/* Portal Section */
#portal-image{
    box-shadow: 5px 5px 5px 5px #9f9f9f;
}

/* Services */
.service-card{
    border: 1px solid #D3D3D3;
    margin: 5px;
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 130px;
    padding: 10px;
    position: relative;
    transition: bottom 800ms ease-in;
    bottom: 0;
    background: #FFFFFF;
}

/* Contact */
#contact-section{
    background: #F2F4F7;
}

#div_id_message{
    width: 93%;
}

#div_id_message textarea{
    height: 150px;
}

#contact-submit{
    height: max-content;
    background: #FFFFFF;
    border: 1px solid #CED4DA
}

#submit-container{
    align-items: center;
}

/*--------------- Initial Sign-up Form ---------------*/
.initial_sign_up_container{
    min-height: 400px;
    height: 400px;
}

#profile_picture_preview{
    height: 400px;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto auto;
}

.address-input{
    width: 100%;
}

.address-input input,
.address-input span{
    width: 50%;
}


/*--------------- Business Logo */
.business_logo{
    min-height: 254px;
    min-width: 45%;
    border: #cfd3d5 solid 1px;
    border-radius: .25rem;
}

.business_logo_label{
    height: 24px;
    margin: 5px;
}

#file-preview{
    max-height: 254px;
    width: auto;
    max-width: 100%;
}

#clear_img_btn{
    background-color: #efeff0;
    border: #767676 1px solid;
    height: 30px;
    padding: 0 15px;
    display: inline-block;
}


/*███████╗███╗░░░███╗██████╗░██╗░░░░░░█████╗░██╗░░░██╗███████╗███████╗        ██████╗░░█████╗░██████╗░████████╗░█████╗░██╗░░░░░*/
/*██╔════╝████╗░████║██╔══██╗██║░░░░░██╔══██╗╚██╗░██╔╝██╔════╝██╔════╝        ██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██║░░░░░*/
/*█████╗░░██╔████╔██║██████╔╝██║░░░░░██║░░██║░╚████╔╝░█████╗░░█████╗░░        ██████╔╝██║░░██║██████╔╝░░░██║░░░███████║██║░░░░░*/
/*██╔══╝░░██║╚██╔╝██║██╔═══╝░██║░░░░░██║░░██║░░╚██╔╝░░██╔══╝░░██╔══╝░░        ██╔═══╝░██║░░██║██╔══██╗░░░██║░░░██╔══██║██║░░░░░*/
/*███████╗██║░╚═╝░██║██║░░░░░███████╗╚█████╔╝░░░██║░░░███████╗███████╗        ██║░░░░░╚█████╔╝██║░░██║░░░██║░░░██║░░██║███████╗*/
/*╚══════╝╚═╝░░░░░╚═╝╚═╝░░░░░╚══════╝░╚════╝░░░░╚═╝░░░╚══════╝╚══════╝        ╚═╝░░░░░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝╚══════╝*/

/*--------------- Adjustment Requests ---------------*/
.employee-container{
    min-height: 800px;
}

#add-adjustment-request{
    font-size: 200%;
}

#addRequestModal .modal-content{
    min-width: max-content;
}



/*--------------- Clients ---------------*/
/* Business Card */
.business-card-img{
    height: auto;
    width: auto;
    max-width: 95%;
    max-height: 95%;
    margin: auto auto;

}

.business-card-img-container{
    height: 175px;
}


/*--------------- Potential Clients ---------------*/
/* Add Potential Client Form*/
#add_potential_client_buttons{
    max-height: 68px;
    vertical-align: center;
}

/* Potential Client Detail */
.business-img{
    width: 100%;
    height: auto;
    border: #cfd3d5 solid 1px;
    border-radius: .25rem;
    padding: 5px;
}

#submit_btn_new_business{
    margin-top: 22px;
}

/*--------------- Finances ---------------*/
/* Nav */
#finance-nav{
    border-right: #F2F4F7 solid 1px;
}

.nav-pills .nav-link.active{
    background: inherit;
    color: #2F4F4F;
}

.nav-pills .nav-link{
    color: #2F4F4F;
}

#add_plan_form #div_id_description,
#add_plan_form #div_id_name{
    width: 100%;
}


/*██████╗░██╗░░░██╗░██████╗██╗███╗░░██╗███████╗░██████╗░██████╗        ██╗░░░██╗██╗███████╗░██╗░░░░░░░██╗*/
/*██╔══██╗██║░░░██║██╔════╝██║████╗░██║██╔════╝██╔════╝██╔════╝        ██║░░░██║██║██╔════╝░██║░░██╗░░██║*/
/*██████╦╝██║░░░██║╚█████╗░██║██╔██╗██║█████╗░░╚█████╗░╚█████╗░        ╚██╗░██╔╝██║█████╗░░░╚██╗████╗██╔╝*/
/*██╔══██╗██║░░░██║░╚═══██╗██║██║╚████║██╔══╝░░░╚═══██╗░╚═══██╗        ░╚████╔╝░██║██╔══╝░░░░████╔═████║░*/
/*██████╦╝╚██████╔╝██████╔╝██║██║░╚███║███████╗██████╔╝██████╔╝        ░░╚██╔╝░░██║███████╗░░╚██╔╝░╚██╔╝░*/
/*╚═════╝░░╚═════╝░╚═════╝░╚═╝╚═╝░░╚══╝╚══════╝╚═════╝░╚═════╝░        ░░░╚═╝░░░╚═╝╚══════╝░░░╚═╝░░░╚═╝░░*/



/*--------------- Business View ---------------*/
.tab-pane{
    min-height: 430px;
}

/*--------------- Business Control page ---------------*/
.portfolio_item_row,
.portfolio_item_row *,
.adjustment_request_row,
.adjustment_request_row *{
    height: 76px;
}

#business_logo{
    border-radius: 50%;
    border: #cfd3d5 solid 1px;
}

#business_logo:hover{
    cursor: pointer;
    border-radius: 0;
    box-shadow: 5px 5px 5px 5px #9f9f9f;
}

/*-------------- Business Control - Adjustment Requests ---------------*/
.overlay-black{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sort_selector{
    cursor: pointer;
    align-items: center;
    gap: 5px; /* Add space between the text and the icon */
    white-space: nowrap;
    text-align: center;
}

.adjustment_request_table_row{
    line-height: 2rem; /* Set the line height for row cells */
    height: calc(2rem * 2); /* Use 2 times the line-height for the row height */
}

.table-striped-row-1 {
    background-color: #f8f9fa; /* Light gray (Bootstrap's stripe color) */
}

.table-striped-row-2 {
    background-color: white;
}


.request_images{
    position: relative;
    z-index: 1001;
    width: max-content;
    height: max-content;
    border-radius: 10px;
    margin: 100px auto;
}

.request-img{
    min-width: 700px;
}

.fa-pen-to-square:hover{
    color: #FF9E00;
}

.fa-trash:hover{
    color: #DC3545;
}

.disable-hover:hover {
    color: inherit; /* Remove the specific color change */
}


/*-------------- Business Control - Portfolio Items */
.add_img_button {
    height: 50%;
}

#portfolio_table,
#portfolio_table * {
    max-width: 100%;
}

/*--------------- Finances ---------------*/
.payment_plan_card .card-header{
    height: 75px;
    min-height: 75px;
}

.price_select{
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    height: max-content;
}

#billing_information_form .form-group{
    width: 100%;
}

/*--------------- Portfolio ---------------*/
.gallery-container {
    height: 300px;
    position: relative;
    overflow: hidden; /* Ensure the container hides overflow */
}

/*.gallery-img {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    height: inherit;*/
/*    margin: 0 auto;*/
/*    text-align: center;*/
/*    overflow-x: hidden;*/
/*    overflow-y: hidden; !* Hide overflow vertically *!*/
/*    white-space: nowrap;*/
/*    display: flex;*/
/*    transition: transform 0.5s ease-in-out; !* Smooth sliding effect *!*/
/*}*/

.gallery-img figure {
    flex: 0 0 auto;
    margin: 0;
    text-align: center;
    order: 1; /* Default order for alignment */
}

.gallery-img figure img {
    object-fit: cover; /* Maintain aspect ratio */
    display: inline-block;
}

/* Arrow Buttons */

.arrow-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.arrow-buttons .arrow {
    pointer-events: all;
    cursor: pointer;
}

.arrow i {
    font-size: 2.5rem;
    color: #2F4F4F;
    transition: color 0.3s ease-in-out;
}

.arrow i:hover {
    color: #f0f0f0;
}

/* Enlarge Img*/
#enlarged-img {
    margin: auto;
    width: 80vw;
    height: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

/* Modal */

#portfolio_table .modal-dialog {
    max-width: 500px;
}

#delete_img_img{
    width: 100%;
    height: auto;
}

/*--------------- Add Request ---------------*/
#add_request_form{
    min-height: 700px;
}

#add_request_form div.row{
    padding-right: 10px;
    padding-left: 10px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;

}

#add_request_form input.form-control{
    width: 100% !important;
}

#add_request_form .form-group{
    margin: 2px;
}

#add_request_form #div_id_title,
#add_request_form #div_id_page{
    display: inline-block;
    width: 45%;
}

#div_id_adjustment_request{
    width: 100%
}

.border-primary:hover{
    background-color: #0D6EFD;
    color: #FFFFFF;
}

.border-success:hover{
    background-color: #198754;
    color: #FFFFFF;
}

.border-danger:hover{
    background-color: #DC3545;
    color: #FFFFFF;
}

#adjustment_image_col{
    border-left: 1px solid #ccc
}

/*--------------- Add Services ---------------*/
#services-form{
    min-height: 700px;
}

#services-form div.row{
    padding-right: 10px;
    padding-left: 10px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;

}

#services-form input.form-control{
    width: 100% !important;
}

/*--------------- Add Portfolio ---------------*/
#portfolio-form{
    min-height: 700px;
}

/*-------------- Clients Home Page */

#clients-nav-buttons i,
#clients-nav-buttons h3{
    font-size: 200%;
    text-decoration: none;
}

#clients-nav-buttons i:hover{
    color: #2F4F4F;
    background: #D1D6DD;
}

/*-------------- Adjustment Request Status */
.bg-0{
    background-color: #ff0000;
}

.bg-1{
    background-color: #ff9e00;
}

.bg-2{
    background-color: #fffd2a;
}

.bg-3{
    background-color: #cbff40;
}

.bg-4{
    background-color: #00ff04;
}
.bg-0, .bg-1, .bg-2, .bg-3, .bg-4{
    color: #2F4F4F;
}

/*-------------- Expand/Close buttons */
.expand_button, .close_button{
    cursor: pointer;
}


/*--------------- For mobile phone view */

@media screen and (max-width: 992px) {
    .floating-container{
        border-radius: 15px / 15px;
        box-shadow: 5px 5px 5px 5px #e6e6e6;

    }

    #hero-image-text,
    #logo-text{
        font-size: 75%;
    }

    .row>*{
        padding-right: unset;
        padding-left: unset;
    }

    .form-group{
        width: 100%
    }

    .business_logo{
        min-width: 100%;
    }

    .container{
        padding: 0;
        text-align: center;
    }

    .c2a-button{
        width: unset;
    }

    .nav-item{
        display: inline-block;!important;
        width: 50%;
    }

    .navbar-nav{
        flex-direction: unset;
    }

    .card{
        margin: 0 auto;
    }

    .card-col{
        width: 100%;
    }

    .header{
        height: auto;
    }

    #adjustment_image_col{
        border-left: 0;
    }

    #adjustment_image_col .request_image_form_container{
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
    }

    /* Enlarge Img*/
    #enlarged-img {
        width: 100vw;
    }

    /* Initial Sign-up form */
    #initial_client_form .form-group{
        width: 90%;
    }
}

@media (max-width: 768px) {
    .summernote-div iframe {
        width: 100% !important; /* Make it responsive */
        height: auto; /* Automatically adjusts the height */
    }

    /* Optional: Adjust parent container alignment */
    #div_id_adjustment_request {
        width: 100% !important;
    }

    #business_logo{
        border-radius: 0;
        border: unset;
    }

    #business_logo:hover{
        cursor: unset;
        border-radius: 0;
        box-shadow: unset;
    }
}

