/* Combined CSS from index.html and demo.html */

/* Base styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
    background: #f7f7f7;
}

header {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    padding: 2.5rem 0 1.5rem 0;
    text-align: center;
    position: relative;
}

.marketing-link {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    text-decoration: underline;
    font-size: 1rem;
}

nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    margin: 0 1.5rem;
    text-decoration: none;
    color: #232526;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #e67e22;
}

.hero {
    background: url("https://placehold.co/1200x350?text=AI+Chatbot+for+Business") center/cover no-repeat;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(34,34,34,0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.cta-btn {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.cta-btn:hover {
    background: #cf711f;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 2.5rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 2.5rem 2rem;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.service-card {
    flex: 1 1 220px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.15s;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 4px 16px rgba(230,126,34,0.10);
}

.service-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.why-choose {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: center;
}

.why-text {
    flex: 2;
}

.why-img {
    flex: 1;
    min-width: 220px;
}

.why-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.testimonials {
    margin-top: 3rem;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem;
    max-width: 320px;
    text-align: center;
}

.testimonial img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.7rem;
}

.disclaimer {
    background: #ffeb3b;
    padding: 1rem;
    border-left: 5px solid #fbc02d;
    margin: 2rem 0 0 0;
    border-radius: 6px;
}

footer {
    background: #232526;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 2rem;
    font-size: 1rem;
}

/* Chat Popup Styles */
.chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

.chat-btn:hover {
    background: #cf711f;
}

.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 507px;
    height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 101;
}

.chat-popup.active {
    display: flex;
}

.chat-header {
    background: lightgray;
    color: darkblue;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.chat-close:hover {
    opacity: 1;
    color: #e67e22;
}

.chat-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#chatForm {
    display: flex;
    gap: 8px;
    width: 100%;
}

#chatInput {
    flex: 1 1 0;
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 0;
}

#chatForm button[type="submit"] {
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 22px;
    font-size: 1.1rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    height: 38px;
}

/* Responsive styles */
@media (max-width: 900px) {
    .services, .why-choose, .testimonial-list {
        flex-direction: column;
        align-items: center;
    }
    .container {
        padding: 1.2rem 0.5rem;
    }
    
    nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .service-card {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .why-img {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .chat-popup {
        width: 100%;
        right: 0;
        bottom: 70px;
        border-radius: 0;
        height: calc(100vh - 70px);
        max-height: 400px;
    }
    
    .marketing-link {
        position: static;
        display: block;
        margin-top: 1rem;
    }
    
    header {
        padding: 1.5rem 1rem;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #232526;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
    }
    
    nav.active {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }
    
    nav.active a {
        margin: 0.5rem 0;
    }
}

/* Additional classes for inline styles */
.text-center {
    text-align: center;
}

.max-width-700 {
    max-width: 700px;
}

.margin-auto {
    margin: 0 auto;
}

.margin-top-2 {
    margin-top: 2rem;
}

.button-dark {
    background: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

/* Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.document-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.document-uploads table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.document-uploads th,
.document-uploads td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.document-uploads th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.upload-form {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px dashed #ccc;
    border-radius: 6px;
}

.upload-form input[type="file"] {
    margin-bottom: 1rem;
    width: 100%;
}

.upload-form button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.chats-section {
    margin-bottom: 2rem;
}

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

.conversation-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.conversation-item h3 {
    margin-top: 0;
    color: #232526;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.conversation-item p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .chats-container {
        grid-template-columns: 1fr;
    }
}

/* Statistics Section Styles */
.stats-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.stats-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #232526;
    font-size: 1.5rem;
    font-weight: 600;
}

.stats-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.stats-table thead {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: white;
}

.stats-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.stats-table tbody tr {
    transition: background-color 0.2s ease;
}

.stats-table tbody tr:hover {
    background-color: #f8f9fa;
}

.stats-table tbody tr.current-week {
    background-color: #fff3e0;
    border-left: 4px solid #e67e22;
}

.stats-table tbody tr.current-week:hover {
    background-color: #ffebcc;
}

.stat-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #232526;
}

.intent-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.intent-badge.booking {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.intent-badge.inquiry {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.intent-badge.service {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.intent-badge.hours {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* Mobile Responsive Styles for Stats Table */
@media (max-width: 768px) {
    .stats-table-container {
        border-radius: 0;
        box-shadow: none;
        overflow-x: visible;
    }
    
    .stats-table,
    .stats-table thead,
    .stats-table tbody,
    .stats-table th,
    .stats-table td,
    .stats-table tr,
    .documents-table,
    .documents-table thead,
    .documents-table tbody,
    .documents-table th,
    .documents-table td,
    .documents-table tr {
        display: block;
    }
    
    .stats-table thead tr,
    .documents-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .stats-table tr,
    .documents-table tr {
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }
    
    .stats-table tr.current-week {
        border-left: 4px solid #e67e22;
        background-color: #fff3e0;
    }
    
    .stats-table td,
    .documents-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 0.75rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .stats-table td:last-child,
    .documents-table td:last-child {
        border-bottom: none;
    }
    
    .stats-table td:before,
    .documents-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #232526;
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    .intent-badge {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .stats-section h2 {
        font-size: 1.3rem;
    }
    
    .stats-table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .stats-table td:before {
        margin-right: 0;
    }
    
    .intent-badge {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Remove button styles */
.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #c0392b;
}

.document-uploads td:last-child {
    text-align: center;
    width: 100px;
}

/* Enhanced Dashboard Styles */
.dashboard-container {
    background: #f7f7f7;
    min-height: calc(100vh - 120px);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.dashboard-container .container {
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card div {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Enhanced header styling */
header {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* Improved table styling */
.stats-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.stats-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Enhanced upload form */
.upload-form:hover {
    border-color: #cf711f;
    background-color: #fefefe;
    transition: all 0.3s ease;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Success/Error states */
.upload-success {
    color: #27ae60;
    background: #d5f4e6;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #27ae60;
}

.upload-error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #e74c3c;
}

/* Mobile enhancements */
@media (max-width: 768px) {
    .dashboard-container .container {
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 8px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .service-card div {
        font-size: 1.5rem !important;
    }
    
    .stats-section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
        padding: 1rem;
    }
}
