html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  transition: background-color 0.2s ease;
  cursor: pointer;
}
input, textarea {
  font-family: inherit;
  font-size: 14px;
}

.air-datepicker {
    z-index: 9999 !important;
}

.login-container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
    text-align: center;
}

    .login-box h1 {
        margin-bottom: 24px;
        color: #10b981;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 20px;
    }

    .login-box h1 img {
        height: 36px;
    }

    .login-box h1 span {
        color: #10b981; 
        font-weight: bold;
    }

    .login-box input {
        width: 100%;
        padding: 12px 16px;
        border-radius: 20px;
        border: 1px solid #e5e7eb;
        margin-bottom: 16px;
        font-size: 14px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .login-box button {
        background-color: #10b981;
        color: white;
        padding: 10px 16px;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        width: 100%;
    }

    .login-box button:hover {
            background-color: #059669;
        }

.topbar {
  background-color: white;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
}

.topbar .logo {
  display: flex; 
  align-items: center; 
  gap: 12px;
}

.topbar .logo img {
  height: 48px;
}

.topbar .logo span {
  font-weight: bold;
  font-size: 22px;
  color: #1a936f;
}

.topbar .user-info {
  display: flex;
  align-items: center;
  margin-left: auto; 
  gap: 12px;
}

.topbar .user-info a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar .logout {
  background-color: #10b981;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.topbar .logout:hover {
  background-color: #059669;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: #fafafa;
    padding: 24px 16px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  color: #4b5563;
}

.nav-item:hover {
  background-color: #f3f4f6;
}

.nav-item.active {
  background-color: #ecfdf5;
  color: #059669;
  font-weight: 600;
}

.nav-item a img {
  width: 20px;
}

.ai-agent {
  margin-top: 24px;
  padding: 16px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.ai-agent label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.chat-window {
  background-color: #d1fae5;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.chat-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
}

.sidebar img {
  filter: invert(46%) sepia(62%) saturate(310%) hue-rotate(88deg) brightness(93%) contrast(91%);
}

.nav-item.active img {
  filter: invert(58%) sepia(80%) saturate(622%) hue-rotate(110deg) brightness(90%) contrast(101%);
}

.main-content {
  flex-grow: 1;
  padding: 32px;
}

.main-content .main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.main-content .main-container h2 {
  margin-top: 0;
}

.main-content .main-container h3 {
  margin-top: 0;
}
.dashboard-container {
  display: flex; 
  gap: 24px; 
  flex-wrap: wrap;
}

.dashboard-left-container {
  flex: 2; 
  min-width: 600px;
}

.task-card-group {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.task-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  display: flex; 
  gap: 16px;
}

.task-card .left-row {
  min-width: 210px;
}

.task-card .left-row img {
  width: 200px; 
  height: 120px; 
  object-fit: cover; 
  border-radius: 12px;
}

.task-card .left-row .profile-info {
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-top: 12px;
}

.task-card .left-row .profile-info a img {
  width: 24px; 
  height: 24px; 
  border-radius: 50%;
}

.task-card .right-row {
  flex: 1;
}

.task-card .right-row p {
  font-size: 14px;
}

.task-card .right-row .date-info {
  font-size: 13px; 
  color: gray; 
  text-align: right;
}

.dashboard-right-container {
  flex: 1; 
  min-width: 300px;
}

.dashboard-right-group {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.dashboard-right-group h3 {
  margin-top: 0;
}

.top-agents {
  font-size: 14px;
}

.top-agents .agent-row {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 10px;
}

.top-agents .agent-row .agent-info {
  display: flex; 
  align-items: center; 
  gap: 8px;
}

.top-agents .agent-row .agent-info a img {
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  vertical-align: middle;
  object-fit: cover;
}

.top-agents .agent-row span {
  margin-left: auto;
}

.call-stats-good {
  color: green;
}

.call-stats-bad {
  color: red;
}

.conversion-chart {
}

.conversion-chart img {
  width: 100%; 
  border-radius: 12px;
}

.client-info-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  padding: 20px 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  display: flex;
  align-items: 
  center; 
  gap: 20px;
}

.client-info-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.avatar-block img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}


.client-info-notes {
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
}

.client-info-notes-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.client-info-tasks {
}

.client-info-docs {
}

.client-info-docs .buttons-block {
  margin-bottom: 16px;
}

.client-info-docs .docs-block {
  display: flex; gap: 16px;
}

.client-info-small-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  max-width: 400px;
}

.client-info-small-card ul {
  list-style: none; 
  padding: 4px;
}

.property-info-data {
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px;
}

.property-info-data img {
  max-width: 450px; 
  min-width: 200px; 
  border-radius: 12px;
}

.property-info-data .data-details {
  flex: 1;
}

.property-info-data .data-details p {
  max-width: 400px;
}

.property-info-data .data-details .buttons-block {
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: 20px;
}

.property-info-gallery {
  margin-top: 20px; 
  display: flex; 
  gap: 10px;
}

.property-info-gallery a img {
  width: 100px; 
  height: 70px; 
  border-radius: 8px;
}

.property-info-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  margin-top: 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

.property-info-card-data ul {
  list-style: none; 
  padding: 4px;
}

.property-info-card .property-info-card-data{
}

.property-info-card .property-info-card-data h3 {
  margin-top: 0;
}

.property-info-card .property-info-card-data a img {
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  vertical-align: middle; 
  margin-right: 6px;
}

.property-info-buttons-block {
  display: flex; 
  gap: 10px; 
  margin-top: 8px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  max-width: 400px;
}

.card img {
  width: 100%; 
  height: 180px; 
  object-fit: cover; 
  border-radius: 12px;
}

.card .card-info {
  margin-top: 12px; 
  font-size: 14px;
  line-height: 1.4;
}

.card .card-info .available {
  color: green;
}

.card .card-info .sold {
  color: red;
}

.card .property-actions {
  display: flex; 
  gap: 8px; 
  margin-top: 12px;
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.profile-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.profile-card h2 {
  margin-top: 0;
}

.profile-photo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-photo img {
  width: 64px; height: 64px; border-radius: 50%;
}

.client-cards-container {
  margin-top: 20px;
}

.client-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #fff;
    gap: 16px;
    flex-wrap: wrap; /* fallback ??? ????????? ??????? */
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    flex-shrink: 0;
}

.client-data {
    min-width: 200px;
    flex-shrink: 0;
    /* white-space: nowrap; ? ??????? */
    overflow: hidden;
    text-overflow: ellipsis;
}

    .client-data .client-name {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
        font-weight: bold;
    }

    .client-data .client-type,
    .client-data .client-properties {
        font-size: 13px;
        color: #4b5563;
    }

    .client-data span {
        font-size: 13px;
        color: gray;
    }

.client-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.client-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 1810px) {
    .badge-assigned {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .client-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-data {
        min-width: auto;
        white-space: normal;
    }
}

.client-status {}

.upload-button,
.save-button,
.password-button,
.task-button {
  background-color: #10b981;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.task-button {
  margin-top: 12px;
}

.pagination-line {
  margin-top: 30px; 
  text-align: center; 
  display: flex; 
  justify-content: center; 
  gap: 10px;
}

.pagination-button {
  background-color: #10b981;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
}

.pagination-button.active {
  background-color: #4CAF50;
  color: white;
}

.pagination-button:hover {
  background-color: #059669;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
}

.checkbox {
  margin-bottom: 12px;
  font-size: 14px;
}

.upload-button:hover,
.save-button:hover,
.password-button:hover,
.task-button:hover
{
  background-color: #059669;
}

.nav-item:hover {
  background-color: #e0f2f1;
  color: #047857;
}

.nav-item:hover img {
  filter: brightness(0.9) saturate(1.2);
}

.sidebar img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  transition: filter 0.2s ease;
}
.nav-item.active img {
  filter: none;
}

.nav-item {
  cursor: pointer;
}

input, button {
  max-width: 100%;
  box-sizing: border-box;
}

.user-info img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-info img:hover {
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.btn img {
  margin-right: 6px;
}
.action-btn {
  background: #A6F4C5;
  color: #064E3B;
}
.action-btn:hover {
  background: #6EE7B7;
}
.table-btn {
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 12px;
}

.search-input,
.filter-select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  min-width: 150px;
}

.basic-input {
  padding: 10px;
  border: 1px solid #ccc; 
  border-radius: 12px; 
  min-width: 150px;
}

.search-input { width: 240px; }
.stats-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 15px;
  color: #374151;
}
.table-wrapper {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  padding-left: 24px;
  padding-right: 24px;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  font-size: 15px;
  color: #1F2937;
  text-align: left;
}
.data-table th {
  font-weight: 600;
  border-bottom: none;
}
.data-table tbody tr {
  background: #F9FAFB;
}

.data-table tbody tr td:first-child,
.data-table thead th:first-child {
  width: 40px;
}

.status {
    display: inline-block;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    width: 100px;
    white-space: nowrap;
}


.filters-row {
  display: flex; 
  gap: 12px; 
  margin-bottom: 20px; 
  flex-wrap: wrap;
}

a.task-button {
    display: inline-block;
    background-color: #10b981;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    transition: background-color 0.2s ease;
}

    a.task-button:hover {
        background-color: #059669;
    }

.status-badge, .priority-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 4px 0 0;
    color: white;
    text-transform: uppercase;
}

.status-new {
    background-color: #10b981; /* Green */
    color: white;
}

.status-contacted {
    background-color: #f59e0b; /* Amber */
    color: white;
}

.status-negotiation {
    background-color: #3b82f6; /* Blue */
    color: white;
}

.status-finalizing {
    background-color: #ef4444; /* Red */
    color: white;
}

.status-converted {
    background-color: #6366f1; /* Indigo */
    color: white;
}

.status-cancelled {
    background-color: #6b7280; /* Gray */
    color: white;
}

.status-noanswer {
    background-color: red; 
}


.priority-highest {
    background-color: #ef4444;
}
/* Red */
.priority-high {
    background-color: #f97316;
}
/* Orange */
.priority-normal {
    background-color: #9ca3af;
}
/* Gray */
.priority-low {
    background-color: #60a5fa;
}
/* Light Blue */
.priority-lowest {
    background-color: #8b5cf6;
}
/* Violet */


.acknowledge-button {
    background-color: #facc15;
    border: none;
    color: black;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 12px;
}

    .acknowledge-button:hover {
        background-color: #eab308;
    }

.badge-assigned {
    background-color: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 15px;
    background-color: #f9f9f9;
}

.doc-icon {
    font-size: 24px;
    margin-right: 10px;
}
.doc-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 10px;
    margin-right: 20px;
}

.doc-description {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.doc-name {
    flex-grow: 1;
    font-weight: 500;
    color: #333;
    margin-left: 10px;
    margin-right: 20px; 
}


.doc-download {
    font-size: 14px;
    padding: 5px 10px;
}


    .lead-actions-panel .upload-button {
        width: 160px;
    }

.lead-details-flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.lead-actions-panel {
    min-width: 220px;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assigned-user-block {
    margin-top: 10px;
    display: flex;
    align-items: center; 
    gap: 10px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 10px;
}


.assigned-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.assigned-user-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.status-noanswer {
    background-color: #9ca3af; /* Gray */
    color: white;
}

.status-calllater {
    background-color: #3b82f6; /* Blue */
    color: white;
}

.status-unavailable {
    background-color: #ef4444; /* Red */
    color: white;
}

.status-dataerror {
    background-color: #6b7280; /* Dark Gray */
    color: white;
}

.status-negative {
    background-color: #b91c1c; /* Dark Red */
    color: white;
}

.status-sold {
    background-color: #f59e0b; /* Amber */
    color: white;
}

.status-positive {
    background-color: #10b981; /* Green */
    color: white;
}

.status-other {
    background-color: #8b5cf6; /* Violet */
    color: white;
}

.status-whatsapp {
    background-color: #25D366; /* WhatsApp green */
    color: white;
}

.status-notinterested {
    background-color: #64748b; /* Slate */
    color: white;
}

.status-rude {
    background-color: #7f1d1d; /* Very dark red */
    color: white;
}

.call-result-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    display: inline-block;
    min-width: 100px; 
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
}

.calls-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

    .calls-table th, .calls-table td {
        padding: 10px 12px;
        border: 1px solid #ddd;
        text-align: left;
    }

    .calls-table th {
        background-color: #f3f4f6;
        font-weight: 600;
    }

    .calls-table td span.calls-result-badge {
        padding: 4px 8px;
        border-radius: 5px;
        color: white;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Responsive column widths */
    .calls-table th:nth-child(1),
    .calls-table td:nth-child(1) {
        width: 140px; /* Date */
        white-space: nowrap;
    }

    .calls-table th:nth-child(2),
    .calls-table td:nth-child(2) {
        width: 100px; /* Duration */
        white-space: nowrap;
    }

    .calls-table th:nth-child(3),
    .calls-table td:nth-child(3) {
        width: 150px; /* Result */
        white-space: nowrap;
    }

    .calls-table th:nth-child(4),
    .calls-table td:nth-child(4) {
        width: auto; /* Comment */
        max-width: 100%;
        word-wrap: break-word;
    }

#call-modal label {
    font-weight: bold;
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    text-align: left;
}

#call-modal .form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#call-modal textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

#call-modal .modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

    #call-modal .modal-buttons .upload-button {
        flex: 1;
        margin: 0 5px;
    }

.modal-client {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-client-content {
    background-color: #fff;
    margin: auto;
    padding: 20px 30px;
    border-radius: 8px;
    width: 350px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

    .modal-client-content h2 {
        margin-top: 0;
        font-size: 20px;
        text-align: center;
    }

.client-form-label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
}

.client-form-control {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

    .client-form-control:focus {
        border-color: #10b981;
        outline: none;
    }

.modal-client-buttons {
    margin-top: 20px;
    text-align: center;
}

a.upload-button {
    display: inline-block;
    background-color: #10b981;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: 160px;
    box-sizing: border-box;
}

    a.upload-button:hover {
        background-color: #059669;
    }


.task-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    display: inline-block;
    width: 100px;
    white-space: nowrap;
    text-align: center;
    color: white;
}

/* Task Type */
.task-type-call {
    background-color: #3b82f6;
}
/* Blue */
.task-type-viewing {
    background-color: #10b981;
}
/* Green */
.task-type-document {
    background-color: #6366f1;
}
/* Indigo */
.task-type-meeting {
    background-color: #f59e0b;
}
/* Amber */
.task-type-followup {
    background-color: #8b5cf6;
}
/* Violet */
.task-type-posting {
    background-color: #6b7280;
}
/* Gray */
.task-type-other {
    background-color: #9ca3af;
}
/* Light Gray */

/* Task Status */
.task-status-new {
    background-color: #3b82f6;
}
/* Blue */
.task-status-acknowledged {
    background-color: #f59e0b;
}
/* Amber */
.task-status-done {
    background-color: #10b981;
}
/* Green */
.task-status-cancelled {
    background-color: #ef4444;
}
/* Red */

/* Task Priority */
.task-priority-highest {
    background-color: #dc2626;
}
/* Strong Red */
.task-priority-high {
    background-color: #f87171;
}
/* Light Red */
.task-priority-normal {
    background-color: #3b82f6;
}
/* Blue */
.task-priority-low {
    background-color: #a3e635;
}
/* Lime */
.task-priority-lowest {
    background-color: #84cc16;
}
/* Light Green */

.task-info-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    padding: 20px 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.task-info-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    position: relative;
    gap: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

    .nav-item:hover {
        background-color: #e0f2f1;
        color: #047857;
    }

    .nav-item.active {
        background-color: #ecfdf5;
        color: #059669;
        font-weight: 600;
    }

    .nav-item img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        filter: grayscale(100%) brightness(0.6);
        transition: filter 0.2s ease;
    }

    .nav-item.active img {
        filter: none;
    }

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 32px;
    margin-top: 0;
    margin-bottom: 4px;
    gap: 4px;
}

.nav-item.open + .submenu {
    display: flex;
}

.submenu a {
    font-size: 14px;
    color: #4b5563;
    padding: 6px 0;
    text-decoration: none;
}

    .submenu a:hover {
        color: #229D47;
    }
    
.toggle-arrow {
    display: none;
}

.nav-item.toggleable::after {
    content: '+';
    margin-left: auto;
    font-weight: bold;
    font-size: 18px;
    color: #888;
    transition: transform 0.3s;
}

.nav-item.toggleable.open::after {
    content: '-';
}


.submenu {
    display: none;
    flex-direction: column;
    padding-left: 40px;
    margin-top: -8px;
}

.nav-item.toggleable.open + .submenu {
    display: flex;
}


.data-table tbody tr.goal-row-daily {
    background-color: #e0f7fa !important;
}

.data-table tbody tr.goal-row-weekly {
    background-color: #f1f8e9 !important;
}

.data-table tbody tr.goal-row-monthly {
    background-color: #fff3e0 !important;
}

.data-table tbody tr.goal-row-quarterly {
    background-color: #f3e5f5 !important;
}

.data-table tbody tr.goal-row-yearly {
    background-color: #ede7f6 !important;
}

.progress-badge-low {
    background-color: #fee2e2; /* light red */
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.progress-badge-medium {
    background-color: #fef9c3; /* light yellow */
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.progress-badge-high {
    background-color: #dcfce7; /* light green */
    color: #065f46;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.goal-badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
}

.goal-progress-low {
    background-color: #fee2e2; /* light red */
    color: #991b1b;
}

.goal-progress-medium {
    background-color: #fef3c7; /* light yellow */
    color: #92400e;
}

.goal-progress-high {
    background-color: #d1fae5; /* light green */
    color: #065f46;
}

.viewing-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-scheduled {
    background-color: #e0f7fa;
    color: #00796b;
}

.status-rescheduled {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-cancelledbyclient,
.status-cancelledbyowner {
    background-color: #ffebee;
    color: #c62828;
}

.status-done {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.platform-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    color: white;
}

.platform-bayut {
    background-color: #00bfa5;
}

.platform-propertyfinder {
    background-color: #c2185b;
}

.platform-dubizzle {
    background-color: #d32f2f;
}

.platform-other {
    background-color: #757575;
}

.deal-type-badge,
.deal-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    color: white;
}

/* Deal Type Colors */
.type-sale {
    background-color: #43a047;
}

.type-rent {
    background-color: #039be5;
}

.type-mortagesale {
    background-color: #6d4c41;
}

.type-other {
    background-color: #757575;
}

/* Deal Status Colors */
.status-draft {
    background-color: #b0bec5;
}

.status-inprogress {
    background-color: #fbc02d;
}

.status-completed {
    background-color: #388e3c;
}

.status-cancelledbyowner,
.status-cancelledbyclient {
    background-color: #e53935;
}

.status-other {
    background-color: #78909c;
}
