body {
    font-family: Arial, sans-serif;
}


header h1 {
    display: inline;
    color: #28a745;
    /* Green text for "CRM System" */
}

header nav ul {
    display: inline;
    list-style-type: none;
}

header nav ul li {
    display: inline;
    margin-right: 1em;
}

main {
    margin: 2em;
}

footer {
    text-align: center;
    margin-top: 2em;
    font-size: 0.8em;
}

/* Form styling */
.customer-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    font-size: 1em;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #555;
}

.customers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 0.9em;
}

.customers-table th,
.customers-table td {
    padding: 0.8em 1em;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.customers-table th {
    font-weight: bold;
    background-color: #f2f2f2;
}

.customers-table tbody tr:hover {
    background-color: #f9f9f9;
}

.customers-table a {
    color: #333;
    text-decoration: none;
}

.customers-table a:hover {
    text-decoration: underline;
}

/* Add a specific width for the form container to keep everything compact */
/* .form-container {
    max-width: 600px;
    Adjust as needed
    margin: auto;
} */

/* Input fields styling */
/* input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
     Full width within the container
    max-width: 400px;
    Limit width for a more compact look 
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
} */

/* Label styling for form labels to be close to inputs */
/* label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
} */



/* Align form container to the left */


/* Flex layout for form rows */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Label styling */
/* label {
    width: 150px;
    /* Fixed width for labels
    font-weight: bold;
    margin-right: 10px;
    text-align: right;
    /* Right-align labels
    font-size: 0.9em;
    /* Smaller font size for labels
} */

/* Input, select, and textarea styling */
/* input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
    flex: 1;
    max-width: 300px;
    padding: 4px;
    font-size: 0.8em;
    /* Smaller font size for input text
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
} */

/* Button styling */
.update-btn {
    padding: 6px 14px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    margin-top: 15px;
}

.update-btn:hover {
    background-color: #45a049;
}

/* Popup background */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
}

/* Popup content */
.popup-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    position: relative;
}

/* Close button */
.popup .close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

.add-contact-btn {
    padding: 6px 14px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    margin-top: 15px;
}

.add-contact-btn:hover {
    background-color: #45a049;
}

/* BOOTSTRAP CSS - Custom styles and overrides */

:root {
    --primary-color: #0d6efd
        /* #23e60a; */
}

header {
    background-color: var(--primary-color) !important;
    color: white;
    padding: 1em;
}

.navbar-custom {
    /* background-color: #45a049; */
    /* Replace with your desired color */
    border-radius: 5px;
    /* Optional: Add rounded corners */
}

.btn-custom {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
    color: white !important;
}

/* Register form */
.small-text {
    font-size: 0.775em;
    /* Adjust as needed for slightly smaller text */
}

.is-valid {
    border-color: #28a745 !important;
    /* Green */
}

.is-invalid {
    border-color: #dc3545 !important;
    /* Red */
}

/* View Customer and view customers forms */
.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

/* Define styles for different status values */
.status-open-lead {
    background-color: #e0f7fa;
    /* Light blue */
    color: #00796b;
    padding: 2px 5px;
    border-radius: 4px;
}

.status-contacted {
    background-color: #fff3e0;
    /* Light orange */
    color: #e65100;
    padding: 2px 5px;
    border-radius: 4px;
}

.status-pending {
    background-color: #f3e5f5;
    /* Light purple */
    color: #6a1b9a;
    padding: 2px 5px;
    border-radius: 4px;
}

.status-active {
    background-color: #e8f5e9;
    /* Light green */
    color: #2e7d32;
    padding: 2px 5px;
    border-radius: 4px;
}

.status-lost {
    background-color: #ffebee;
    /* Light red */
    color: #c62828;
    padding: 2px 5px;
    border-radius: 4px;
}

.status-offer-sent {
    background-color: #e3f2fd;
    /* Light blue */
    color: #1565c0;
    padding: 2px 5px;
    border-radius: 4px;
}

/* NAV BAR*/
/* Custom dropdown menu styles */
.custom-dropdown-menu {
    padding: 0rem 0;
    /* Adjust overall dropdown padding */
}

/* Custom dropdown item styles */
.custom-dropdown-menu .custom-dropdown-item {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin: 0 !important;
    /*line-height: 1.2;*/
    /* Adjust as needed */
    /*border: none; */
    /* No extra margin between items */
}

.commercially-protected-unknown {
    /*background-color: #faf9f7;*/
    color: #FFC107;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;

}

.commercially-protected-yes {
    /*background-color: #faf9f7;*/
    color: #f82f2f;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}

.commercially-protected-no {
    /*background-color: #faf9f7;*/
    color: #28A745;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}

/*Customer View*/
.note-column {
    max-width: 600px;
    /* Adjust the width as needed */
    word-wrap: break-word;
    /* Break words if necessary */
    overflow-wrap: break-word;
    /* Ensures compatibility with older browsers */
    white-space: normal;
    /* Allow text to wrap onto the next line */
}


/* DASHBOARD */
.dashboard-task-title {
    word-wrap: break-word;
    /* Ensures long words wrap to the next line */
    overflow: hidden;
    /* Hides overflowing text */
    text-overflow: ellipsis;
    /* Adds "..." to indicate clipped text */
    white-space: nowrap;
    /* Prevents wrapping if ellipsis is used */
}