/* Variables */
:root {
    --light: #f2f2f2;
    --light-hover: #fce2cf;
    --dark: #011936;
    --button: #da650b;
    --button-hover: #F48025;
    --background: #e6e6e6;
    --delete: #D91F22;
    --delete-hover: #EF2E32;
}

/* Media Queries */
@media screen and (min-width: 1101px) {
    #header nav ul li {
        margin: 10px 10px;
    }

    #header nav ul {
        justify-content: center;
    }

    #header-text {
        position: absolute;
        left: 50vw;
        transform: translateX(-50%);
    }
  }

@media screen and (max-width: 1100px) {
    .container {
        flex-direction: column;
    }

    .container .state-box {
        width: 80%;
        margin: 10px auto;
    }

    #top-header {
        flex-direction: column;
    }

    #header #top-header h1 {
        position: static;
        transform: none;
        padding-top: 15px;
    }

    #header-text {
        position: initial;
        transform: none;
    }

    nav ul {
        /* flex-direction: column; */
        justify-content: center !important;
    }

    nav ul li {
        padding: 5px;
    }

    #customer-details-table tr,
    #core-files-table tr {
        display: flex;
        flex-direction: column;
    }

    #customer-details-table th,
    #core-files-table th {
        background-color: #f0f0f0;
        padding: 5px;
    }

    #customer-details-table td {
        text-align: center;
    }

    #inner-files-container {
        flex-direction: column;
    }

    #top-header #inner-header-text {
        flex-direction: column;
        align-items: center;
    }
  }

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.image-full {
    max-width: 100%;
    height: auto;
    display: block;
}

html, body, input {
    font-family: 'Open Sans', sans-serif;
    background: var(--background);
}

#customer-details-table a, #core-files-table span a {
    color: var(--button);
    text-decoration: none;
}

#customer-details-table a:hover, #core-files-table span a:hover {
    color: var(--button-hover);
}

.state-box a {
    text-decoration: none;
    color: inherit;
}

#top-header {
    display: flex;
    align-items: center;
    padding: 0 40px;
    justify-content: space-between;
}

#inner-header-text {
    display: flex;
    align-items: baseline;
}

#header {
    text-align: center;
    padding-top: 20px;
}

#header a {
    text-decoration: none;
}

#profile-link {
    color: var(--button);
    font-weight: bold;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;  /* Ensures the image fills the container without stretching */
    display: block;     /* Ensures the image is treated as a block element (for layout) */
    border: 2px solid #ccc;
}

.header-profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;  /* Ensures the image fills the container without stretching */
    border: 2px solid #ccc;
    margin-right: 20px;
}

#profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 45px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: bold;
    font-size: 1.2em; /* Adjust the font size as needed */
}

.user-role {
    color: #666; /* Make the role text lighter for visual contrast */
}

nav {
    padding: 20px 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

button, .button {
    background-color: var(--button);
    color: white;
    padding: 15px;
    display: inline-block;
    border-radius: 10px;
    transition: background-color .3s;
    cursor: pointer;
    text-decoration: none;
}

nav ul li a, #logout-btn, #register-btn, #login-btn {
    background-color: var(--button);
    color: white;
    padding: 15px;
    display: inline-block;
    border-radius: 10px;
    transition: background-color .3s;
}

a#logout-btn {
    padding: 5px 10px;
}

nav ul li a:hover, .info-btn:hover, #logout-btn:hover, #register-btn:hover,
.button:hover {
    background-color: var(--button-hover);
    cursor: pointer;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
    background-color: var(--light);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 15px;
    margin: 0 0 10px 0;
}

#search-box {
    width: 200px;
    height: 40px;
    font-size: 20px;
}

#search-form {
    display: flex;
}

#search-form button:hover {
    background-color: var(--button-hover);
}

#search-form input {
    margin: 0;
}

.container {
    max-width: 1368px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.row-container {
    max-width: 1368px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#register-form, #login-form {
    max-width: 1368px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.form-container {
    max-width: 1000px;
    margin: auto;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.state-box {
    background-color: var(--light);
    width: 23%;
    height: 500px;
    padding: 15px;
    margin: 10px;
    border: 1px black solid;
    border-radius: 10px;
    box-shadow: 5px 5px 14px -10px black;
    overflow: auto;
}

.quotes-list {
    margin-top: 10px;
    list-style-type: none;
}

.quotes-list li {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px 0;
    background-color: white;
}

.quotes-list li a {
    display: block;
    padding: 15px 20px;
}

.quotes-list li:hover {
    background-color: var(--light-hover);
}

#site-main form button {
    font-size: 15px;
    margin: 10px 0;
    transition: background-color .3s;
    border: none;
}

#site-main form button:hover {
    background-color: var(--button-hover);
}

#customers-table, #sent-quotes-table {
    width: 100%;
}

#customers-table tr, #sent-quotes-table tr {
    background-color: white;
}

#customers-table tr:nth-child(even), #sent-quotes-table tr:nth-child(even) {
    background-color: var(--light-hover);
}

#customers-table tbody tr td:last-of-type, #sent-quotes-table tbody tr td:last-of-type {
    text-align: center;
}

#customer-details-table, #core-files-table {
    width: 75%;
}

#customer-quotes-table {
    width: 100%;
    font-size: .9em;
}

#customer-details-table tr, #customer-quotes-table tr, #core-files-table tr {
    background-color: white;
}

#customer-quotes-table tr td, #customer-quotes-table tr th {
    padding: 10px;
}

#banner-alert {
    display: flex;
    justify-content: center;
}

#banner-alert span {
    color: var(--button);
    padding: 5px 15px;
    font-size: 20px;
    font-weight: bolder;
    border: 2px var(--button) solid;
    border-radius: 20px;
}

#new-customer-form {
    width: 50%;
}

#new-customer-form input{
    width: 100%;
}

#new-customer-form select {
    display: block;
}

.info-btn {
    background-color: var(--button);
    color: white;
    border-radius: 10px;
    padding: 8px;
    margin: 0 5px;
    display: inline-block;
    transition: background-color .3s;
    text-decoration: none;
}

#notes-section {
    width: 75%;
}

#add-note-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

#notes-table {
    width: 100%;
    font-size: .8em;
}

#notes-table th {
    padding: 5px;
    background-color: #f0f0f0;
}

#notes-table td {
    padding: 5px;
}

#notes-table tr {
    background-color: white;
}

.delete-btn {
    background-color: var(--delete);
    color: white;
    border-radius: 10px;
    padding: 8px;
    display: inline-block;
    transition: background-color .3s;
}

.delete-btn:hover {
    background-color: var(--delete-hover);
    cursor: pointer;
}

.delete {
    color: black;
}

.delete:hover {
    color: var(--delete-hover);
}

.info-cell {
    text-align: center;
}

.bottom-margin {
    margin-bottom: 20px;
}

#results-container {
    background-color: white;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    height: 100px;
    overflow: auto;
}

.is-hidden {
    display: none;
}

#results-container a {
    text-decoration: none;
    /* color: var(--button); */
    color: black;
}

#results-container a:hover {
    background-color: var(--button);
    color: white
}

.max-width-inputs input {
    width: 100%;
}

.relative {
    position: relative;
}

.hidden {
    display: none;
}

#suggestions-container {
    background-color: var(--light);
    padding: 15px;
    border: 1px black solid;
    border-radius: 10px;
    display: none;
    position: absolute;
    width: 15%;
}

#suggestions-container a {
    background-color: var(--light);
    color: var(--dark);
    padding: 5px 25px;
    margin: 1px 0;
    border-radius: 10px;
}

#suggestions-container a:hover {
    background-color: var(--light-hover);
    border: 1px black solid;
    margin: 0;
}

.small-text {
    font-size: .8rem;
    margin-left: 20px;
}

.version-div {
    width: 50%;
    margin: 10px auto;
    text-align: center;
    font-size: .7rem;
}

#quote-files {
    width: 75%;
}

#inner-files-container {
    display: flex;
    justify-content: space-between;
}

#file-list {
    flex: 1;
}

#file-list ul {
    list-style: circle;
}

#file-list #customer-details-table tr td:first-of-type a {
    font-size: .9rem;
    padding-left: 10px;
}

#file-list #customer-details-table tr td:first-of-type {
    display: flex;
    align-items: center;
}

#customer-details-table span a:hover {
    color: var(--button);
}

#file-list td {
    padding: 5px;
}

#file-list #customer-details-table {
    width: 100%;
}

.icon {
    width: 25px;
}

.upload-td-align {
    width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    margin: 0 10px;
}

.upload-td-align span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smaller-font tr th {
    font-size: smaller;
}

.square-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; 
    height: 40px;
    background-color: var(--button); 
    color: white;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    transition: background-color .3s;
}

.square-btn:hover {
    background-color: var(--button-hover);
}

#quoteStatus select {
    margin: 0;
}

#sent-quotes-table_filter input, #sent-quotes-table_length select, #customers-table_filter input, #customers-table_length select {
    background-color: var(--light);
}

#customer-details-table th,
#core-files-table th {
    background-color: #f0f0f0;
    padding: 5px;
}

#customer-details-table td,
#core-files-table td {
    padding: 5px;
}

/* Styles for input fields when editing content */
.quote-name-edit {
    font-size: 25px;
    background-color: white;
}

/* Spinner styles */
#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
