/* Reset and base styles */
body {
    /* background-color: #f0f2f5; */
    /* font-family: 'Roboto', Arial, sans-serif; */
    font-family: "Nunito", sans-serif;
    /* font-family: 'Open Sans', Arial, sans-serif; */
    /* font-family: 'Lato', Arial, sans-serif; */
    /* font-family: 'Montserrat', Arial, sans-serif; */
    /* font-family: 'Source Sans Pro', Arial, sans-serif; */
    /* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    /* font-family: 'Helvetica', Arial, sans-serif; */
    /* font-family: 'Arial', sans-serif; */
    /* font-family: 'Nunito', Arial, sans-serif; */
    /* font-family: 'Poppins', Arial, sans-serif; */
    /* font-family: 'Calibri', Arial, sans-serif; */
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
.navbar {
    background-color: #343a40;
}

.navbar-brand,
.nav-link {
    color: #fff;
    font-weight: 600;
}

.title {
    color: #343a40;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

/* Main container: layout for form and preview */
.main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 30px 0;
    justify-content: center;
}

.form-label {
    font-size: 14px !important;
}

/* Form and preview sections */
.form-section {
    flex: 0 0 70%;
    max-width: 95%;
    min-width: 300px;
    background: #fff;
    /* border-radius: 12px; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px dashed black;
}

.preview-section {
    flex: 0 0 40%;
    max-width: 95%;
    min-width: 300px;
    background: #fff;
    /* border-radius: 12px; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    border: 1px dashed gray;
}

/* Section titles */
.section-title {
    font-size: 1.10rem;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid lightseagreen;
    padding-bottom: 8px;
    /* color: blue; */
}

/* Form controls */
.form-control {
    border-radius: 2px;
    font-size: 1rem;
}

/* Profile picture upload styling */
.logo-upload {
    position: relative;
    width: 150px;
    height: 150px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.2s;
}

.logo-upload:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2.5rem;
    color: #6c757d;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo-upload:hover .upload-icon {
    opacity: 1;
}

/* Table styles for line items */
table {
    width: 100%;
    border-collapse: collapse;
    /* font-size: 0.95rem; */
}

thead {
    background-color: #f8f9fa;
}

th {
    padding: 10px;
    font-weight: 600;
}

td {
    padding: 8px;
    vertical-align: middle;
}

/* Notes and summary styles */
.notes-section textarea {
    border-radius: 8px;
}

/* Invoice preview styles */
#invoice-preview {
    background: #fff;
    padding: 20px;
    /* border-radius: 12px; */
    border: 1px solid #dee2e6;
    min-height: 600px;
    overflow-y: auto;
}

.item-amount {
    text-align: right;
    padding-right: 10px !important;
}

/* Footer styles */
footer {
    background-color: #122f2a;
    color: #adb5bd;
    padding: 20px 0;
    margin-top: 50px;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.company-logo {
    opacity: 1;
    height: 200px;
    width: 200px;
    position: relative;
    overflow: hidden;
    background: url('../images/no-logo.jpg') no-repeat center;
    background-size: cover;
    box-shadow: 0 8px 6px -6px black;
    border: 1px dashed gray;
}

.company-signature {
    opacity: 1;
    height: 200px;
    width: 200px;
    position: relative;
    overflow: hidden;
    background: url('../images/no-logo.jpg') no-repeat center;
    background-size: cover;
    box-shadow: 0 8px 6px -6px black;
    border: 1px dashed gray;
}

.company-logo:hover .upload-icon {
    opacity: 1;
}

.company-signature:hover .upload-icon {
    opacity: 1;
}

.preview-company-logo {
    position: relative;
    background-size: cover;
}

#logo-container {
    position: relative;
}

#logo-container button {
    z-index: 10;
}

/* Menu */
.dropdown-item {
    padding: 12px;
}

.transition {
    transition: all 0.3s ease;
}

.hover-bg-light {
    background-color: #0101 !important;
}

.hover-bg-light:hover {
    background-color: #0d6efd !important;
}

.hover-text-primary:hover {
    color: white !important;
}

/* Remove default link styles for better appearance */
/* .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
} 
    
.nav-link:hover {
    color: #fd7e14;
}
*/

/* Default styles for larger devices */
.nav-link {
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    color: inherit;
    border-radius: 50px;
}

/* Hover effects for larger devices */
.nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Social icons hover effect */
.hover-link:hover {
    text-decoration: underline;
}

.hover-icon:hover {
    color: #0d6efd;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.sticky-top-preview {
    position: sticky;
    top: 100px;
    z-index: 100;
}

#discount-percentage::after {
    content: "%";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

#calculation {
    padding-top: 10px;
}

.page-header h1 {
    font-weight: bold;
    font-size: 2.5rem;
    color: #0d6efd;
}

.contact-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h4 {
    margin-bottom: 20px;
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #0d6efd;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
    margin-bottom: 20px;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 5px;
    font-weight: bold;
}

.accordion-button {
    font-weight: bold;
}

.optional-label {
    /* float: left; */
    font-size: 14px;
    /* color: green; */
    font-weight: bold;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    body {
        font-size: 14px !important;
    }

    .logo-img {
        width: 60px !important;
        height: 60px !important;
    }

    .main {
        flex-direction: column;
        align-items: center;
    }

    .form-section,
    .preview-section {
        flex: 1 1 100%;
        width: 95%;
    }

    .company-logo {
        width: 100%;
        height: 150px;
    }

    .company-signature {
        width: 100%;
        height: 150px;
    }

    .contact-form {
        font-size: 12px !important;
    }

    .calculation-text-td {
        width: 35% !important;
    }

    .nav-link {
        transition: none;
        background-color: transparent;
        color: inherit;
        border-radius: 0;
    }

    .nav-link:hover {
        background-color: transparent;
        color: inherit;
    }
}

/* Tooltip styles for info icons */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    font-size: 16px;
    color: #007bff;
    cursor: pointer;
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 30%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: normal;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    height: auto;
    text-align: center;
}

.info-icon:hover::before {
    content: '';
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 10;
}

/* End: Tooltip styles for info icons */