:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* FAQ Section */
.faq-category {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.faq-category:hover {
    transform: translateY(-5px);
}

.faq-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: white;
}

/* Guides Section */
.guide-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.guide-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.contact-methods {
    margin: 20px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-method i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
}

.chat-widget.active {
    display: block; /* Show when active */
}

.chat-header {
    background: #3498db;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header i {
    font-size: 24px;
    margin-right: 10px;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.minimize-btn, .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-popup {
    display: none;
    height: 400px;
    background: #fff;
    flex-direction: column;
}

.chat-popup.active {
    display: flex !important; /* Force display when active */
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-input-form {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.chat-input-form .input-group {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.chat-input-form input {
    border: none;
    padding: 12px 15px;
    background: transparent;
}

.chat-input-form input:focus {
    box-shadow: none;
}

.chat-input-form button {
    padding: 12px 20px;
    border: none;
}

.chat-input-form button:disabled {
    opacity: 0.7;
}

/* Message Styles */
.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message.user {
    margin-left: auto;
    background: #3498db;
    color: #fff;
    border-radius: 15px 15px 0 15px;
    padding: 10px 15px;
}

.message.support {
    margin-right: auto;
    background: #fff;
    border-radius: 15px 15px 15px 0;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Queue Status Styles */
.queue-status {
    padding: 15px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.queue-status.waiting {
    color: #e67e22;
}

.queue-status.connected {
    color: #2ecc71;
}

/* Minimized State */
.chat-widget.minimized .chat-popup {
    display: none;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .chat-widget {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chat-popup {
        height: calc(100vh - 60px);
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Powered by Branding */
.powered-by {
    text-align: center;
    padding: 12px 0 8px 0;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.75rem;
    background: #f4f6fa;
    border-top: 1px solid #e0e4ea;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.chat-popup .chat-body {
    position: relative;
    padding-bottom: 38px; /* space for branding */
}

.user-info-form .powered-by,
.chat-input-form .powered-by {
    display: none !important;
}

/* Remove sticky branding from chat-messages */
.chat-messages::after {
    display: none !important;
}

/* --- Modern Chat UI Enhancements --- */
.chat-header.enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--primary-color) 80%, var(--secondary-color) 100%);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    min-height: 64px;
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(44,62,80,0.08);
}
.chat-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2px;
}
.chat-status {
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    margin-right: 2px;
}
.status-dot.online { background: var(--success-color); }
.status-dot.offline { background: #ccc; }

.chat-messages.enhanced {
    background: linear-gradient(135deg, #f8fafc 80%, #eaf6fb 100%);
    padding: 16px 10px 6px 10px;
    min-height: 320px;
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid #f0f0f0;
}

.chat-input-form.enhanced {
    background: #f8fafc;
    border-top: 1px solid #e0e4ea;
    padding: 12px 10px 8px 10px;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    min-height: 60px;
}
.chat-input-form .input-group {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
    padding: 2px 6px;
    display: flex;
    align-items: center;
    width: 100%;
}
.chat-input-form input {
    border: none;
    background: none;
    padding: 10px 12px;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
}
.emoji-btn {
    background: none;
    border: none;
    color: #b0b8c1;
    font-size: 1.2rem;
    margin-right: 4px;
    cursor: not-allowed;
}
.send-btn {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    border: none;
}
.send-btn:hover {
    background: var(--primary-color);
    transform: scale(1.08);
}

/* --- Branding Footer --- */
.powered-by {
    text-align: center;
    padding: 16px 0 10px 0;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.8rem;
    background: #f4f6fa;
    border-top: 1px solid #e0e4ea;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    min-height: 36px;
}
.powered-by a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}
.powered-by a:hover {
    text-decoration: underline;
}

.chat-popup .chat-body {
    position: relative;
    padding-bottom: 54px; /* more space for branding */
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .chat-popup {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .chat-header.enhanced {
        border-radius: 0;
    }
    .chat-input-form.enhanced {
        border-radius: 0;
    }
    .powered-by {
        min-height: 44px;
        font-size: 0.9rem;
    }
}

.chat-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(44,62,80,0.08);
    vertical-align: middle;
}
.agent-name {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.98rem;
    margin-right: 6px;
}

/* Queue page state: hide chat input, center queue status */
.queue-page .chat-input-form {
    display: none !important;
}
.queue-page .queue-status {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Floating Chat Button */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    box-shadow: 0 4px 16px rgba(52,152,219,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.chat-button:hover {
    background: #217dbb;
    box-shadow: 0 8px 24px rgba(52,152,219,0.25);
} 