/* BackChat Landing Page Styles */

/* Override Bootstrap primary colors with custom blue */
.text-primary {
    color: #1d7cba !important;
}

.btn-outline-primary {
    color: #1d7cba !important;
    border-color: #1d7cba !important;
}

.btn-outline-primary:hover {
    background-color: #1d7cba !important;
    border-color: #1d7cba !important;
    color: white !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529 !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #6c757d !important;
}

.btn-primary {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stats-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d7cba;
    margin-bottom: 0.5rem;
    min-height: 1.2em; /* Prevent layout shift during animation */
    display: inline-block;
    transition: color 0.3s ease;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame {
    background: #000;
    border-radius: 25px;
    padding: 20px 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.whatsapp-chat {
    background: linear-gradient(to bottom, #075e54, #128c7e);
    min-height: 500px;
    position: relative;
}

.chat-header {
    background: #075e54;
    padding: 15px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #25d366;
}

.chat-messages {
    padding: 20px 15px;
    background: linear-gradient(to bottom, #e5ddd5, #d1c7b8);
    min-height: 400px;
    position: relative;
}

.chat-messages::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='whatsapp-bg' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M50 15c19.33 0 35 15.67 35 35s-15.67 35-35 35-35-15.67-35-35 15.67-35 35-35zm0 5c-16.57 0-30 13.43-30 30s13.43 30 30 30 30-13.43 30-30-13.43-30-30-30z'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23whatsapp-bg)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.message {
    margin-bottom: 15px;
    display: flex;
    animation: messageSlide 0.3s ease-out;
}

.message.incoming {
    justify-content: flex-start;
}

.message.outgoing {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.incoming .message-bubble {
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 5px;
}

.message.outgoing .message-bubble {
    background: #dcf8c6;
    color: #333;
    border-bottom-right-radius: 5px;
}

.message.incoming .message-bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid #ffffff;
    border-bottom: 8px solid #ffffff;
    border-top: 8px solid transparent;
}

.message.outgoing .message-bubble::before {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #dcf8c6;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #dcf8c6;
    border-top: 8px solid transparent;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Payment method cards */
.payment-method-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-method-card:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.topup-form {
    position: relative;
}

.balance-display {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Admin interface styles */
.admin-sidebar {
    background: #343a40;
    min-height: 100vh;
    position: fixed;
    width: 250px;
    top: 0;
    left: 0;
    z-index: 1000;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1d7cba;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1d7cba;
    margin: 0;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Additional white theme enhancements */
.whatsapp-preview {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.chat-header {
    background: #25d366;
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

.message-bubble {
    background: #dcf8c6;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin: 0.5rem 0;
    display: inline-block;
    max-width: 80%;
}

.message.incoming .message-bubble {
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #333;
}

.cta-section {
    background: linear-gradient(135deg, #1d7cba 0%, #0056b3 100%);
    border-top: 1px solid #e9ecef;
    color: white !important;
}

.cta-section h2,
.cta-section p,
.cta-section .lead {
    color: white !important;
}

/* Fix any white text on white background issues */
body {
    color: #212529 !important;
}

.text-white {
    color: white !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Ensure all text elements have proper contrast */
h1, h2, h3, h4, h5, h6 {
    color: #212529 !important;
}

.lead {
    color: #6c757d !important;
}

/* Feature cards text */
.feature-card h5 {
    color: #212529 !important;
}

.feature-card p {
    color: #6c757d !important;
}

/* Pricing section text */
.pricing-card h5 {
    color: #212529 !important;
}

.pricing-card p,
.pricing-card li {
    color: #6c757d !important;
}

/* Stats text */
.stat-number {
    color: #1d7cba !important;
}

.stat-label {
    color: #6c757d !important;
}

/* Footer text */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer h5,
.footer h6 {
    color: #212529 !important;
}

.footer-text,
.footer p {
    color: #6c757d !important;
}

.footer-link {
    color: #6c757d !important;
    text-decoration: none;
}

.footer-link:hover {
    color: #1d7cba !important;
    text-decoration: underline;
}

/* Navbar text */
.navbar-brand,
.nav-link {
    color: #212529 !important;
}

.nav-link:hover {
    color: #1d7cba !important;
}