/* =================  GLOBAL STYLING ================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================  BUTTONS STYLING ================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f0f7ff;
    color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: 1.5px solid #dc2626;
} 

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15);
}

#plusButton{
    color: white;
    font-size: 1rem;
    margin-right: 2px;
}

/* =================  FORM STYLING ================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select:hover {
    border-color: #9ca3af;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =================  NAVIGATION STYLING ================= */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure hovered dropdown stacks above sibling nav items */
.nav-item.dropdown:hover {
    z-index: 1300;
}

/* Mobile/tap support: when .open is set via JS, show dropdown */
.nav-item.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

.dropdown-menu li a.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #64748b;
    margin: 3px 0;
    transition: 0.3s;
}

/* =================  HOME PAGE STYLING ================= */
.hero {
    background: linear-gradient(135deg, #8f37ca 45%, #4f2bc5 100%);
    color: white;
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-top: 0;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.8;
}

/* Features Grid Section */
.features {
    padding: 5rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background:  linear-gradient(135deg, #8f37ca 40%, #4f2bc5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.feature-link {
    margin:auto auto;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #1d4ed8;
    gap: 0.75rem;
}

/* =================  FOOTER STYLING ================= */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 3rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: center;
}

.footer-section {
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.5rem;
    color: #f8fafc;
    font-weight: 600;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.footer-section h3 i {
    color: #60a5fa;
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #60a5fa;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.2rem 0;
    display: inline-block;
    position: relative;
}


.footer-section ul li a:hover {
    color: #60a5fa;
    transform: translateX(5px);
    
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

/* =================  PAGE CONTENT STYLING ================= */
.page-content {
    padding: 2rem 0;
}

.page-header {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.page-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.content-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow:  0 2px 4px rgba(0, 0, 0, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-card h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.content-card h2 i{
    margin-right: 0.4rem;
}

/* Output Styles */
.output-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.output-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

/* ================= Info Status Card Styling================= */
.profile-status {
    margin-bottom: 2rem;
}

.status-card {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-card i {
    font-size: 2rem;
    color: #f59e0b;
}

.status-content h3 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
}

.status-content p {
    margin: 0 0 1rem 0;
    color: #92400e;
}

/* =================  MARKETING CONTENT GENERATOR STYLING ================= */

.marketing-form {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.marketing-results {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-header h2 {
    margin: 0;
    color: #1e293b;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.copy-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.card-content {
    padding: 1.5rem;
}

.email-section,
.social-section {
    margin-bottom: 1.5rem;
}

.email-section:last-child,
.social-section:last-child {
    margin-bottom: 0;
}

.email-section h4,
.social-section h4 {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-text {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    white-space: pre-wrap;
    min-height: 60px;
}

.content-text.hashtags {
    color: #3b82f6;
    font-weight: 500;
}

/* =================  EMAIL GENERATOR STYLING ================= */
.email-content {
    margin-top: 1rem;
}

.email-preview {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.email-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.email-text {
    padding: 1.5rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
}

.email-text p {
    margin: 0 0 1rem 0;
}

.email-text p:last-child {
    margin-bottom: 0;
}

/* =================  LEAD CAPTURE STYLING ================= */

#recentLeadsContainer{
    background: #fff;
    border-radius: 1rem;
    box-shadow:  0 2px 4px rgba(0, 0, 0, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

#recentLeadsContainer h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#recentLeadsContainer h2 i{
    margin-right: 0.4rem;
}

/* Lead Summary Styles */
.leads-summary {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f3f5f7;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.leads-summary-header {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.leads-summary-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.leads-summary-link:hover {
    color: #1d4ed8;
}

.leads-summary-info {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}
.leads-summary-info p {
    margin: 0; 
    display: inline; 
}


/* =================  CRM DASHBOARD STYLING ================= */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.dashboard-header h2 i{
    margin-right: 0.4rem;
}

.dashboard-stats {
    display: flex; 
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f5f7f9;
    border-radius: 0.5rem;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.filters-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #acacac;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-controls {
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.filter-controls .form-input {
    min-width: 200px;
}

/* Lead Cards Styles */
.leads-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.lead-card {
    background: #ffffff;
    border: 1px solid #d6dde5;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.lead-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
}

.lead-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lead-info {
    flex: 1;
    min-width: 0;
}

.lead-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.lead-email {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.lead-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lead-card-body {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lead-details {
    display: flex;
    padding-left: 1rem;
    gap: 2rem;
    flex: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
}

.detail-item i {
    color: #64748b;
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.detail-item span {
    font-weight: 500;
}

.lead-status {
    flex-shrink: 0;
}

.lead-status .status-select {
    min-width: 140px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.lead-status .status-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Status-specific styling */
.lead-status .status-select option[value="New"] {
    color: #059669;
}

.lead-status .status-select option[value="Contacted"] {
    color: #d97706;
}

.lead-status .status-select option[value="Interested"] {
    color: #2563eb;
}

.lead-status .status-select option[value="Won"] {
    color: #059669;
}

.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.status-contacted {
    background: #fef3c7;
    color: #92400e;
}

.status-interested {
    background: #d1fae5;
    color: #065f46;
}

.status-won {
    background: #dcfce7;
    color: #166534;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn-edit {
    background: #eff6ff;
    color: #2563eb;
}

.action-btn-edit:hover {
    background: #dbeafe;
}

.action-btn-delete {
    background: #fef2f2;
    color: #dc2626;
}

.action-btn-delete:hover {
    background: #fecaca;
}

.no-data-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.no-data-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data-message p {
    font-size: 1.125rem;
    margin: 0;
}

/* =================  APPOINTMENT SCHEDULER STYLING ================= */
.appointments-summary {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f3f5f7;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.appointments-summary-header {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.appointment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.appointment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.appointment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.appointment-info {
    flex: 1;
}

.appointment-customer {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.appointment-service {
    color: #64748b;
    font-size: 0.875rem;
}

.appointment-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 500;
    font-size: 0.875rem;
}

.appointment-time i {
    color: #2563eb;
}

.appointment-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.appointment-date {
    flex: 1;
}

.date-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
}

.date-badge.today {
    background: #dcfce7;
    color: #166534;
}

.date-badge.tomorrow {
    background: #fef3c7;
    color: #92400e;
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
}

/* =================  INVOICE GENERATOR STYLING ================= */
.invoice-service {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.btn-add-service {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
}

.btn-remove-service {
    padding: 0.5rem;
}

/* Invoice Form Layout */
.invoice-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    
}

.invoice-services-section {
    margin: 1rem 0 1rem 0;
    color: #1e293b;
}

.invoice-preview-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
}

.invoice-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}


.invoice-preview-title {
    color: #1e293b;
}

.invoice-preview-subtitle {
    color: #64748b;
}

.invoice-preview-number {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.invoice-preview-date {
    color: #64748b;
    margin: 0;
}

.invoice-preview-client {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.invoice-preview-client-title {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.invoice-preview-client-details {
    color: #64748b;
    margin: 0;
}

.invoice-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.invoice-preview-table th {
    text-align: left;
    padding: 1rem 0;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.invoice-preview-table td {
    padding: 1rem 0;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

.invoice-preview-table .amount {
    text-align: right;
}

.invoice-preview-totals {
    text-align: right;
}

.invoice-preview-total-row {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.invoice-preview-subtotal {
    margin-bottom: 0.5rem;
}

.invoice-preview-tax {
    margin-bottom: 0.5rem;
}

.invoice-preview-total-label {
    color: #64748b;
}

.invoice-preview-total-value {
    margin-left: 2rem;
    font-weight: 600;
}

.invoice-preview-total-final {
    margin-left: 2rem;
}

.invoice-preview-btn-group {
    margin-top: 1rem;
}

/* =================  RESPONSIVE DESIGN ================= */
@media (max-width: 1050px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    /* Invoice Generator Responsive */
    .invoice-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .invoice-service {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.5rem;
    }

    .invoice-preview-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .invoice-preview-client {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap:0.5rem;
    }
    
    .leads-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .leads-summary-header span {
        display: none;
    }
    
    .leads-summary-info {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls .form-input {
        min-width: auto;
        flex: 1;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .lead-card {
        padding: 1rem;
    }
    
    .lead-card-header {
        gap: 1rem;
    }
    
    .lead-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .lead-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .lead-details {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .lead-status {
        width: 100%;
    }
    
    .lead-status .status-select {
        width: 100%;
        min-width: auto;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .email-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .email-header .copy-btn {
        align-self: flex-end;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .results-header .btn-group {
        justify-content: center;
    }
    
    .appointments-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .appointments-summary-header > span {
        display: none;
    }
    
    .appointment-card-header {
        gap: 0.5rem;
    }
    
    .appointment-time {
        align-self: flex-start;
    }
    
    .appointment-card-body {
        gap: 0.75rem;
    }
    
    /* Invoice Generator Responsive */
    .invoice-service {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .invoice-service input {
        width: 100%;
    }

    .btn-remove-service {
        align-self: flex-start;
        width: 150px;
    }

    .invoice-preview-container {
        padding: 1rem;
    }

    .invoice-preview-table {
        font-size: 0.9rem;
    }

    .invoice-preview-table th,
    .invoice-preview-table td {
        padding: 0.5rem 0;
    }

    .invoice-preview-btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* ------------------- Footer Responsive ------------------- */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        justify-content: center;
        font-size: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .dashboard-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .leads-summary {
        padding: 0.75rem;
    }
    
    .leads-summary-header {
        font-size: 0.875rem;
    }
    
    .leads-summary-info {
        font-size: 0.75rem;
    }
    
    .lead-card {
        padding: 0.75rem;
    }
    
    .lead-card-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .lead-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lead-name {
        font-size: 1.1rem;
    }
    
    .lead-email {
        font-size: 0.9rem;
    }
    
    .lead-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left:3rem;
    }
    
    .lead-card-body {
        gap: 0.75rem;
    }
    
    .lead-details {
        gap: 0.5rem;
    }
    
    .detail-item {
        font-size: 0.875rem;
    }
    
    .appointments-summary {
        padding: 0.75rem;
    }
    
    .appointments-summary-header {
        font-size: 0.875rem;
    }
    
    .appointment-card {
        padding: 0.75rem;
    }
    
    .appointment-customer {
        font-size: 1rem;
    }
    
    .appointment-service {
        font-size: 0.8rem;
    }
    
    .appointment-time {
        font-size: 0.8rem;
    }
    
    /* Invoice Generator Responsive */
    .invoice-service {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .invoice-service input {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .btn-remove-service {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .invoice-preview-container {
        padding: 0.75rem;
    }

    .invoice-preview-header {
        margin-bottom: 1rem;
    }

    .invoice-preview-title {
        font-size: 1.25rem;
    }

    .invoice-preview-number {
        font-size: 1rem;
    }

    .invoice-preview-table {
        font-size: 0.8rem;
    }

    .invoice-preview-table th,
    .invoice-preview-table td {
        padding: 0.25rem 0;
    }

    .invoice-preview-totals {
        font-size: 0.875rem;
    }

    .invoice-preview-total-row {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .invoice-preview-btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .invoice-preview-btn-group .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* ------------------- Footer Responsive for Small Screens ------------------- */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
        gap: 0.5rem;
    }
    
    .footer-section h3 i {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* =================  CHAT ASSISTANT STYLING ================= */

/* Chat Assistant Container */
.chat-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* Chat Toggle Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #314e9c 100%);
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 99, 235, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    }
}

.chat-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    animation: none;
}

.chat-toggle-btn.chat-open {
    animation: none;
    transform: scale(0.95);
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 1rem 1rem 0 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.chat-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
    max-height: 280px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Message Styles */
.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.message-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
    padding-top: 6px;
}

.bot-message .message-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.user-message .message-icon {
    background: #e2e8f0;
    color: #64748b;
}

.message-text {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.bot-message .message-text {
    border-bottom-left-radius: 0.25rem;
}

.user-message .message-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message-text p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-text li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    align-self: flex-end;
}

.user-message .message-time {
    align-self: flex-start;
}

/* Typing Indicator */
.typing-indicator .message-text {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.5rem 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    animation: typing 1.4s infinite ease-in-out;
    opacity: 0.7;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Container */
.chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Chat Assistant Responsive Design */
@media (min-width: 769px) {
    .chat-window {
        bottom: 80px;
    }
}

@media (max-width: 768px) {
    .chat-window {
        width: 320px;
        height: 350px;
        bottom: 70px;
        right: 0;
    }
    
    .chat-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .chat-messages {
        max-height: 230px;
    }
}

@media (max-width: 480px) {
    
    .chat-assistant {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .chat-messages {
        max-height: 200px;
    }
}

/* =================  APPOINTMENT SCHEDULER ENHANCEMENTS ================= */

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

/* Name input container for proper positioning */
.name-input-container {
    position: relative;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e1e8ee;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #eef3f8;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: 500;
    color: #1e293b;
}

.suggestion-email {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Lead Addition Modal */
.lead-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-modal.show {
    opacity: 1;
    visibility: visible;
}

.lead-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-modal.show .lead-modal-content {
    transform: scale(1) translateY(0);
}

.lead-modal-header {
    margin-bottom: 1.5rem;
}

.lead-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.lead-modal-message {
    color: #64748b;
    line-height: 1.6;
}

.lead-modal-form {
    margin-bottom: 1.5rem;
}

.lead-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .lead-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 4rem);
    }
    
    .lead-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .lead-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lead-modal-content {
        padding: 1rem;
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: 320px;
    }
    
    .lead-modal-title {
        font-size: 1.1rem;
    }
    
    .lead-modal-message {
        font-size: 0.9rem;
    }
}

/* Time Input Enhancement */
.time-input-container {
    position: relative;
}

.time-input-container input[type="time"] {
    cursor: pointer;
}

.time-input-container input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Global time and date input cursor enhancement */
input[type="time"],
input[type="date"] {
    cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
} 