/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f6f8fa;
  display: flex;
  min-height: 100vh;
}

button, input, textarea {
  font-family: inherit;
}


/* Variables */
:root {
  --primary-color: #0f4c75;
  --secondary-color: #3282b8;
  --light-color: #d1e8f2;
  --hover-color: #0056b3;
  --border-radius: 8px;
}

/* Sidebar */

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 158px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* Enables vertical scrolling */
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}


.sidebar .logo {
  text-align: center;
  margin: -15px 0;
}

.sidebar .logo img {
  max-width: 160px;
  height: auto;
  padding: 0px;
}


.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 15px 0;
}

.sidebar nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.sidebar nav ul li a i {
  margin-right: 10px;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  background-color: var(--secondary-color);
  color: white;
  transform: scale(1.05);
  padding: 10px;
  background-color: #3282b8;
  margin: 10px;
}

/* Main Content */
.main-content {
  margin-left: 100px;
  padding: 20px;
  width: 100%;
  transition: margin-left 0.3s ease;
  margin-top: 65px;
}

.sidebar.open + .main-content {
  margin-left: 250px;
}



.tab-container {
    display: flex;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    
}

.tab {
    padding: 9px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.91rem;
    color: #ffffff;
    background: #3282b8;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(15, 23, 42, 0.1),
        0 2px 4px -2px rgba(15, 23, 42, 0.06);
}

.tab:hover::after {
    opacity: 1;
}

.tab.active {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(15, 23, 42, 0.1),
        0 2px 4px -2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #0f4c75 0%, #3b82f6 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.tab:hover {
    color: #1e293b;
    background: rgba(241, 245, 249, 0.8);
}

.tab.active {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(15, 23, 42, 0.1),
        0 2px 4px -2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab.active::before {
    width: 50%;
}

/* Tab-specific accent colors */
.tab[data-tab="upcoming"]::before {
    background: linear-gradient(to right, #818cf8 0%, #6366f1 100%);
}

.tab[data-tab="in-progress"]::before {
    background: linear-gradient(to right, #0ea5e9 0%, #0284c7 100%);
}

.tab[data-tab="on-market"]::before {
    background: linear-gradient(to right, #ef4444 0%, #dc2626 100%);
}

.tab[data-tab="completed"]::before {
    background: linear-gradient(to right, #22c55e 0%, #16a34a 100%);
}

/* Count Badge Styling */
/* Modern unified count badge styling */
.tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0f4c75 0%, #3b82f6 100%);
    border-radius: 14px;
    box-shadow: 
        0 2px 4px rgba(15, 76, 117, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.tab:hover span {
    transform: scale(1.1) translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(15, 76, 117, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.tab.active span {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-container {
        padding: 12px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Projects Display Section */
.project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-radius: 8px 8px 0 0;
    margin: -16px -16px 12px -16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.project-item-header p {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.15rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 18px;
    letter-spacing: -0.02em;
}

/* Update the project item header accent styles */
.project-item-header p::before {
    content: '';
    position: absolute;
    left: 0;
    width: 6px;
    height: 75%;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Upcoming projects accent */
#Upcoming-projects-list .project-item-header p::before {
    background: linear-gradient(to bottom, #818cf8 0%, #6366f1 100%);
}

#Upcoming-projects-list .item:hover .project-item-header p::before {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* In Progress projects accent */
#projects-list .project-item-header p::before {
    background: linear-gradient(to bottom, #0ea5e9 0%, #0284c7 100%);
}

#projects-list .item:hover .project-item-header p::before {
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* On Market projects accent */
#on-market-projects-list .project-item-header p::before {
    background: linear-gradient(to bottom, #ef4444 0%, #dc2626 100%);
}

#on-market-projects-list .item:hover .project-item-header p::before {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* Completed projects accent */
#completed-projects-list .project-item-header p::before {
    background: linear-gradient(to bottom, #22c55e 0%, #16a34a 100%);
}

#completed-projects-list .item:hover .project-item-header p::before {
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.project-item-header .project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.project-item-header .project-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hover effects */
.item:hover .project-item-header {
    background: linear-gradient(to right, #f1f5f9, #ffffff);
}

.item:hover .project-item-header p::before {
    height: 85%;
    transform: translateY(-1px);
    background: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}



.columns-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.column {
  width: 100%;
  min-width: 250px;
  background-color: #eae8e8;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
}


.item {
    padding: 16px;
    margin: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}



.column h3 {
    padding: 18px 24px;
    margin: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.25rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

.column h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #0f4c75 0%, #3b82f6 100%);
}

.count-badge {
    background: linear-gradient(135deg, #0f4c75 0%, #3b82f6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.count-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

/* Column specific accent colors */
#Upcoming-projects-column h3::before {
    background: linear-gradient(to bottom, #818cf8 0%, #6366f1 100%);
}

#projects-column h3::before {
    background: linear-gradient(to bottom, #0ea5e9 0%, #0284c7 100%);
}

#on-market-column h3::before {
    background: linear-gradient(to bottom, #ef4444 0%, #dc2626 100%);
}

#completed-projects-column h3::before {
    background: linear-gradient(to bottom, #22c55e 0%, #16a34a 100%);
}

.item p {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.item small {
  color: #555;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex
;
  flex-direction: column;
  align-items: center;
}

/* Projects List Container */
#projects-list {
  max-height: 665px; /* Limit height */
  overflow-y: scroll; /* Enable vertical scrolling */
  padding: 15px;
  background-color: #fbfcfd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide the scrollbar */
#projects-list::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}
#projects-list {
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
  scrollbar-width: none; /* For Firefox */
}

/* Project Item Styling */
#projects-list .item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

#projects-list .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#projects-list .item p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

#projects-list .item small {
  font-size: 14px;
  color: #555;
}

/* Upcoming Projects List Container */
#Upcoming-projects-list {
  max-height: 665px; /* Match the height limit */
  overflow-y: scroll; /* Enable vertical scrolling */
  padding: 15px;
  background-color: #fbfcfd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide the scrollbar */
#Upcoming-projects-list::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}
#Upcoming-projects-list {
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
  scrollbar-width: none; /* For Firefox */
}

/* Upcoming Project Item Styling */
#Upcoming-projects-list .item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

#Upcoming-projects-list .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#Upcoming-projects-list .item p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

#Upcoming-projects-list .item small {
  font-size: 14px;
  color: #555;
}

/* On Market Projects List Container */
#on-market-projects-list {
  max-height: 665px;
  overflow-y: scroll;
  padding: 15px;
  background-color: #fbfcfd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide the scrollbar */
#on-market-projects-list::-webkit-scrollbar {
  display: none;
}
#on-market-projects-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* On Market Project Item Styling */
#on-market-projects-list .item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

#on-market-projects-list .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#on-market-projects-list .item p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

#on-market-projects-list .item small {
  font-size: 14px;
  color: #555;
}


/* Completed Projects List */
#completed-projects-list {
  max-height: 665px;
  overflow-y: scroll;
  padding: 15px;
  background-color: #fbfcfd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide scrollbar */
#completed-projects-list::-webkit-scrollbar {
  display: none;
}
#completed-projects-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Project Item Styling */
#completed-projects-list .item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding: 20px;
  background-color: #e8f5e9; /* Light green for completed projects */
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

#completed-projects-list .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#completed-projects-list .item p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

#completed-projects-list .item small {
  font-size: 14px;
  color: #555;
}








/* Columns */
.columns {
  display: flex;
  flex-wrap: wrap; /* Wrap columns for responsiveness */
  gap: 20px;
}

.column {
  flex: 1 1 calc(50% - 20px); /* Two columns on medium screens */
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 35px;
  transition: all 0.3s ease;
}

.column:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.badge {
  background: #456f99;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  margin-left: 5px;
}

.column h2 {
  font-size: 18px;
  color: #0f4c75;
  margin-bottom: 10px;
}

.column:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: #3282b8;
  color: rgb(255, 255, 255);
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(41, 102, 151);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  min-width: 160px;
}

.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e4e3e3;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(3, 3, 3, 0.5); /* Black w/ opacity */
}

.modal-content {
  background-color: rgb(252, 251, 251);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add Form Containers */
.add-project-form-container,
.add-client-form-container,
.add-estimate-form-container,
.add-task-form-container,
.add-vendor-form-container {
  width: 60%;
  margin: auto;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-project-form-container h2,
.add-client-form-container h2,
.add-estimate-form-container h2,
.add-task-form-container h2,
.add-vendor-form-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Form Container */
.form-container {
  width: 100%;
  max-width: 1300px; /* Restrict form width */
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left; /* Align form elements to the left */
}

/* Form Elements */
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #c1c0c0;
  border-radius: 4px;
}

textarea {
  resize: vertical;
  height: 100px;
}

.color-picker {
  display: flex;
  gap: 10px;
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.color-circle:hover {
  transform: scale(1.1);
}

.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #ccc;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #999;
}

.form-container h1 {
  margin-bottom: 20px;
  color: #0f4c75;
}

.form-container form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-container form input,
.form-container form textarea,
.form-container form select,
.form-container form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-container form button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.form-container form button:hover {
  background-color: #0056b3;
}



button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}





/* Tablet view (768px and above) */
@media (max-width: 1024px) {
  .container {
      width: 90%;
      padding: 15px;
  }

  body {
      font-size: 14px;
  }

  img, video {
      max-width: 100%;
      height: auto;
  }

  button {
      font-size: 14px;
  }

}

/* Mobile view (up to 768px) */
@media (max-width: 768px) {
  .container {
      width: 100%;
      padding: 10px;
  }

  body {
      font-size: 15px;
      line-height: 1.5;
  }

  img, video {
      max-width: 100%;
      height: auto;
  }

  button {
      font-size: 12px;
      padding: 8px 16px;
  }

  input, textarea {
      font-size: 14px;
      padding: 8px;
}


}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  animation: slideIn 0.5s;
}

/* Mobile-first: Adjust for very small devices (up to 480px) */
@media (max-width: 480px) {
  /* Stack columns */
/* Main Content */



.main-content {
  margin-top: 55px;
  margin-left: 20px;
}

  .columns-container {
    flex-direction: column;
    gap: 10px;
    margin-left: -20px;

  }

  .column {
    width: 100%; /* Full width */
    padding: 10px;
  }



  /* Adjust nav links for touch-friendly sizes */
  .sidebar nav ul li a {
    font-size: 13px;
    padding: 10px;
  }

  /* Adjust buttons and tabs */
  .tab {
    font-size: 14px;
    padding: 8px 12px;
  }

  button {
    font-size: 14px;
    padding: 8px 12px;
  }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0px;
  left: 0;
  width: 150px;
  height: 100vh;
  background: var(--primary-color);
  color: white;
  transform: translateX(-100%);
  transition: transform 0.3s ease; /* Smooth animation */
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Sidebar when open */
.sidebar.open {
  transform: translateX(0); /* Slide in */
}

.sidebar .logo {
  text-align: center;
  margin: 20px 0;
}

.sidebar img {
  max-width: 120px;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 15px 0;
}

.sidebar nav ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  background: rgba(255, 255, 255, 0.2);
}

/* Hamburger Button */
.hamburger {
  position: fixed;
  top: 4px;
  left: 380px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1100; /* Above sidebar */
  display: none; /* Hidden by default, shown for mobile */
}








}

@media (max-width: 768px) {
  .hamburger {
    display: block; /* Show on smaller screens */
  }
}



.sidebar.open + .main-content {
  margin-left: 160px;
}







/* Map Section */
#map-section {
  width: 100%;
  max-width: 1200px; /* Adjust width */
  margin: 20px auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
 
}

#map {
  width: 100%;
  height: 450px; /* Adjust as needed */
  border-radius: 10px;
}

#map {
  touch-action: none; /* Prevents double-tap zoom */
}


@media (max-width: 768px) {
  #map {
      height: 300px; /* Adjust map height on mobile */
      width: 100%; /* Ensure full width */
      
  }
}

/* Small devices (Phones, 480px and below) */
@media (max-width: 480px) {
  #map-section {
     margin-left: -17px;
     width: 105%; /* Ensure full width */
  }

}



/* 🔹 Logo Section with Avatar */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  
}

.avatar {
  width: 40px;
  height: 40px;
  background: #3174c6; /* Custom color (change as needed) */
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-transform: uppercase;
  margin-top: -80px;
  margin-left: 0px;
}

.header-logo h1 {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  margin: 0;
  margin-top: -85px;
  border-bottom: 2px solid #a9d2ee;
  
  background: #ffffff; /* Clean white background */
  width: 88%;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}


@media (max-width: 480px) {
  .top-bar {
      padding: 10px 15px;
      left: 0px;
  }

    .avatar {
    margin-left: -30px;
  }

}

/* ✅ Daily Updates Panel */
#daily-updates-panel {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 600px;
  margin: 20px auto;
  max-width: 100%;
}

/* ✅ Header */
#daily-updates-panel h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
}

/* ✅ Date Picker */
#date-picker {
  width: 100%;
  padding: 10px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  outline: none;
  transition: border 0.3s ease;
}

#date-picker:focus {
  border: 2px solid #007bff;
}

/* ✅ Updates Feed */
#daily-updates-feed {
  max-height: 400px;
  overflow-y: auto;
  padding: 5px;
}

/* ✅ Individual Update Items */
.daily-update-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 5px solid #007bff;
  transition: transform 0.2s ease-in-out;
}

.daily-update-item:hover {
  transform: scale(1.02);
}

/* ✅ Update Text */
.daily-update-item p {
  margin: 5px 0;
  font-size: 16px;
  line-height: 1.5;
}

/* ✅ Project Link */
.daily-update-item small a {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

.daily-update-item small a:hover {
  text-decoration: underline;
}

/* ✅ Timestamp */
.daily-update-item small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
}



/* ✅ Responsive Design */
@media (max-width: 768px) {
  #daily-updates-panel {
      max-width: 106%;
      margin-left: 0px;
  }
}


/* ✅ Responsive Design */
@media (max-width: 480px) {
  #daily-updates-panel {
      max-width: 106%;
      margin-left: -15px;
  }
}

.project-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-badge {
  position: relative;
  background-color: crimson;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  cursor: pointer;
}

.activity-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* Position above the badge */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.activity-badge:hover::after,
.activity-badge:focus::after,
.activity-badge.tooltip-visible::after {
  opacity: 1;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

#addVendorForm {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#addVendorForm input {
  flex: 1 1 45%;
  padding: 8px;
}

#vendorList {
  list-style: none;
  padding: 0;
}

#vendorList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.vendor-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.vendor-list li:hover {
  background-color: #f4f4f4;
}

.vendor-details {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}
.vendor-details h3 {
  margin-bottom: 10px;
}


.vendor-menu-toggle {
  cursor: pointer;
  padding: 4px 10px;
  font-size: 18px;
  user-select: none;
}

.vendor-dropdown-menu {
  position: absolute;
  right: 0;
  top: 25px;
  display: none;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 999;
  min-width: 120px;
}

.vendor-dropdown-menu button {
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: #0f172a; /* ← makes text black */
  display: flex;
  align-items: center;
  gap: 8px;
}

.vendor-dropdown-menu button:hover {
  background: #e6f0fa;
}

#projectFilters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

#projectFilters label:hover {
  background: #e2e8f0;
}

#projectFilters input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #3b82f6;
  border-radius: 4px;
  display: grid;
  place-content: center;
  transition: all 0.2s;
}

#projectFilters input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

#projectFilters input[type="checkbox"]:checked::before {
  content: "✔";
  color: white;
  font-size: 12px;
  font-weight: bold;
}



/* Assignments Section Styles */
#assignments-section {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px 18px 18px 18px;
  margin: 20px auto;
  max-width: 100%;
  overflow-x: auto;
  /* Add max height and vertical scroll */
  max-height: 780px;
  overflow-y: auto;
}


#assignments-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--primary, #2563eb);
  letter-spacing: 0.5px;
}

#assignments-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 0.98rem;
}

#assignments-table th,
#assignments-table td {
  padding: 10px 8px;
  text-align: left;
}

#assignments-table th {
  background: var(--table-header-bg, #f3f4f6);
  color: var(--primary, #2563eb);
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

#assignments-table thead {
  position: sticky;
  top: -25px;
  z-index: 2;
  background: var(--table-header-bg, #f3f4f6);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  
}


#assignments-table tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}

#assignments-table tr:hover {
  background: var(--table-row-hover, #f1f5f9);
}

#assignments-table td {
  color: var(--text, #22223b);
}

#assignments-table a.line-items-link {
  color: var(--accent, #0ea5e9);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

#assignments-table a.line-items-link:hover {
  color: var(--primary, #2563eb);
  text-decoration: underline;
}

/* Modal Styles for Line Items */
#lineItemsModal.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 41, 59, 0.25);
  justify-content: center;
  align-items: center;
}

#lineItemsModal .modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px 18px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: fadeIn 0.2s;
}

#lineItemsModal .close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  font-weight: bold;
}

#lineItemsDetailsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

#lineItemsDetailsTable th,
#lineItemsDetailsTable td {
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.97rem;
}

#lineItemsDetailsTable th {
  background: #f3f4f6;
  color: #2563eb;
  font-weight: 600;
}

#lineItemsDetailsTable tr:last-child td {
  border-bottom: none;
}


#assignments-filters {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 18px;
  align-items: center;
  
}




#assignments-filters input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: #f8fafc;
  color: #22223b;
  transition: border 0.2s, box-shadow 0.2s;
  min-width: 180px;
  outline: none;
}

#assignments-filters input[type="text"]:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px #2563eb22;
}

/* Responsive: stack filters vertically on small screens */
@media (max-width: 600px) {
  #assignments-filters {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  #assignments-filters input[type="text"] {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  #assignments-section {
    padding: 12px 4px;
  }
  #assignments-table th, #assignments-table td {
    padding: 7px 4px;
    font-size: 0.93rem;
  }
  #lineItemsModal .modal-content {
    padding: 14px 6px 10px 6px;
    max-width: 98vw;
  }
}

.lineitem-details-row {
  transition: all 0.2s;
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 200px; }
}
.lineitem-photo-thumb {
  max-width: 80px;
  max-height: 60px;
  margin: 4px 8px 4px 0;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  background: #fff;
}
 


.project-utilities-icons i {
  margin-right: 2px;
  transition: color 0.2s;
}


/* Project Edit Modal Styles */
#projectEditModal.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,41,59,0.25);
  justify-content: center;
  align-items: center;
}

#projectEditModal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px 32px 18px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  max-width: 600px;
  margin: 40px auto;
  animation: fadeIn 0.2s;
}

#projectEditModal h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: #2563eb;
  text-align: center;
}

#projectEditModal label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 500;
  color: #22223b;
}

#projectEditModal input[type="text"],
#projectEditModal input[type="color"],
#projectEditModal select,
#projectEditModal textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  font-size: 1rem;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border 0.2s;
}

#projectEditModal input[type="color"] {
  padding: 0;
  height: 36px;
  width: 60px;
  border: none;
  background: none;
}

#projectEditModal textarea {
  min-height: 60px;
  resize: vertical;
}

#projectEditModal .form-group {
  margin-bottom: 10px;
}

#projectEditModal .btn-primary {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

#projectEditModal .btn-primary:hover {
  background: linear-gradient(to right, #1d4ed8, #2563eb);
}

#closeProjectEditModal {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}



/* --- Custom Report Modal & Table Styles --- */
#customReportModal .modal-content {
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30,41,59,0.13);
  padding: 36px 32px 28px 32px;
  max-width: 900px;
  border: none;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

#customReportModal h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-align: center;
}

#customReportForm label {
  font-weight: 500;
  color: #1e293b;
  margin-right: 18px;
  font-size: 1rem;
}

#customReportForm select,
#customReportForm input[type="checkbox"] {
  margin-right: 10px;
}

#customReportForm button[type="submit"] {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
#customReportForm button[type="submit"]:hover {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
}

#customReportResult {
  margin-top: 24px;
  font-size: 1.05rem;
}

#customReportResult > button#downloadReportPdf {
  background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
  display: block;
  margin-left: auto;
}
#customReportResult > button#downloadReportPdf:hover {
  background: linear-gradient(90deg, #0284c7 0%, #2563eb 100%);
}

#customReportResult .summary,
#customReportResult > div {
  background: #e0e7ef;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
  color: #22223b;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(30,41,59,0.04);
}

#customReportResult table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30,41,59,0.06);
  margin-top: 10px;
}

#customReportResult th, #customReportResult td {
  padding: 12px 14px;
  text-align: left;
  font-size: 1rem;
}

#customReportResult th {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: 0.5px;
}

#customReportResult tr:nth-child(even) td {
  background: #f3f6fa;
}

#customReportResult tr:hover td {
  background: #e0e7ef;
  transition: background 0.2s;
}

#customReportResult td {
  color: #22223b;
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 700px) {
  #customReportModal .modal-content {
    padding: 12px 4vw;
    max-width: 98vw;
  }
  #customReportResult th, #customReportResult td {
    padding: 8px 6px;
    font-size: 0.97rem;
  }
}


#customReportResult .summary,
#customReportResult > .summary {
  background: linear-gradient(90deg, #ffffff 60%, #ffffff 100%);
  border-radius: 14px;
  padding: 24px 28px 18px 28px;
  margin-bottom: 22px;
  color: #1e293b;
  font-size: 1.12rem;
  box-shadow: 0 2px 8px rgba(30,41,59,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  align-items: center;
  justify-content: space-between;
}

.summary-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  font-size: 1.08rem;
  font-weight: 500;
}

.summary-metric .metric-icon {
  font-size: 1.5rem;
  color: #2563eb;
  background: #e0e7ef;
  border-radius: 50%;
  padding: 8px;
  margin-right: 6px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
}

.summary-metric .metric-value {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0284c7;
  margin-left: 2px;
}

.summary-metric .metric-label {
  color: #64748b;
  font-size: 0.97rem;
  font-weight: 400;
  margin-left: 4px;
}

.summary-progress {
  flex: 1 1 100%;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-progress-bar {
  flex: 1;
  height: 14px;
  background: #e0e7ef;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 10px;
  box-shadow: 0 1px 4px rgba(30,41,59,0.06);
}

.summary-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 8px;
  transition: width 0.5s;
}

.summary-progress-label {
  font-size: 1.08rem;
  font-weight: 600;
  color: #2563eb;
  min-width: 60px;
}

.summary-address {
  flex-basis: 100%;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #edf2f8 60%, #f3f6fa 100%);
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(30,41,59,0.06);
}

.summary-address-label {
  font-weight: 700;
  color: #2563eb;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-address-label i {
  color: #ef4444;
  font-size: 1.15rem;
}

.summary-address-value {
  color: #334155;
  font-size: 1.05rem;
  font-weight: 500;
  margin-left: 8px;
  letter-spacing: 0.2px;
  word-break: break-word;
}

/* Add to your style.css if not present */
.summary-metric .fa-coins { color: #6366f1; }



/* --- Custom Report Modal: Select Columns --- */
#customReportForm label[for="reportProjectSelect"] {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 8px;
  display: block;
}

#customReportForm > label {
  font-weight: 500;
  color: #334155;
  margin-right: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}

#customReportForm > label input[type="checkbox"] {
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  transition: border-color 0.2s;
}

#customReportForm > label input[type="checkbox"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

#customReportForm > label:hover {
  color: #2563eb;
}

@media (max-width: 600px) {
  #customReportForm > label {
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
  }
}

      .project-progress-bar {
        margin: 8px 0 0 0;
        padding: 0 2px 2px 2px;
      }
      .project-progress-label {
        display: flex;
        justify-content: space-between;
        font-size: 0.97em;
        color: #64748b;
        margin-bottom: 2px;
      }
      .project-progress-bar-bg {
        width: 100%;
        background: #e5e7eb;
        border-radius: 8px;
        height: 12px;
        position: relative;
        overflow: hidden;
      }
      .project-progress-bar-fill {
        background: linear-gradient(90deg, #3b82f6 60%, #0ea5e9 100%);
        height: 100%;
        border-radius: 8px;
        transition: width 0.4s;
        position: absolute;
        left: 0; top: 0;
      }
