/* assets/css/app.css */

body {
    font-family: 'Outfit', sans-serif;
    color: #333333;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Container Structure */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #0b132b !important;
}

.app-content-wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

/* Sidebar Layout */
.sidebar {
    width: 250px;
    background-color: #1c2541 !important;
    min-height: calc(100vh - 56px);
    transition: all 0.3s ease;
    z-index: 1010;
}

.sidebar .list-group-item {
    font-weight: 500;
    padding: 12px 18px;
    transition: all 0.2s ease;
}

.sidebar .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding-left: 22px;
}

.sidebar .list-group-item.active {
    background-color: #198754 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Main Content area */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f8f9fa;
    max-width: 100%;
}

/* Responsive Sidebar for Mobile */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 56px;
        bottom: 0;
        min-height: auto;
        height: calc(100vh - 56px);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* Premium Card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 16px 20px;
}

/* User Avatar */
.user-avatar {
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Live Preview Frame */
.whatsapp-preview-container {
    width: 320px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 0 auto;
    font-size: 0.9rem;
}

.whatsapp-preview-header {
    background-color: #075e54;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.whatsapp-preview-body {
    padding: 15px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.whatsapp-preview-bubble {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 85%;
    margin-bottom: 5px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    word-break: break-word;
    white-space: pre-wrap;
    align-self: flex-start;
}

.whatsapp-preview-bubble::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

.whatsapp-preview-time {
    font-size: 0.7rem;
    color: #888888;
    text-align: right;
    margin-top: 4px;
}

/* Badge & Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-connected { background-color: #198754; }
.status-pending { background-color: #ffc107; }
.status-disconnected { background-color: #dc3545; }

/* Dashboard Mini Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.stat-card .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Authentication pages wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b132b;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: none;
}

/* Landing Page Styles */
.landing-navbar {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(11, 19, 43, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.hero-section {
    background-color: #070a13 !important;
    background-image: radial-gradient(circle at 85% 20%, rgba(37, 211, 102, 0.15) 0%, rgba(11, 19, 43, 0) 55%) !important;
    color: #ffffff;
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f8f9fa, transparent);
    pointer-events: none;
}

/* Ambient Glow Blobs */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    -webkit-filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.glow-1 {
    width: 350px;
    height: 350px;
    background: #25d366;
    top: 15%;
    left: 8%;
}

.glow-2 {
    width: 450px;
    height: 450px;
    background: #00b4d8;
    bottom: 15%;
    right: 8%;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #25d366 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

/* Realistic Phone Mockup */
.phone-mockup {
    width: 310px;
    background: #070a13;
    border: 12px solid #2d3748;
    border-radius: 36px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.phone-notch {
    width: 130px;
    height: 18px;
    background: #2d3748;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-status-bar {
    height: 26px;
    background: #075e54;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    z-index: 5;
    position: relative;
}

.phone-screen {
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    position: relative;
}

.whatsapp-chat-bubble {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 85%;
    margin-bottom: 5px;
    position: relative;
    box-shadow: 0 1px 1.5px rgba(0,0,0,0.15);
    word-break: break-word;
    white-space: pre-wrap;
    align-self: flex-start;
    font-size: 0.8rem;
    line-height: 1.35;
}

.whatsapp-chat-bubble::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

.whatsapp-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 3px;
    font-size: 0.65rem;
    color: #888888;
}

/* Feature Grid Glow */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 30px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.25);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(37, 211, 102, 0.08);
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #25d366 0%, #198754 100%);
    color: #ffffff;
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* Billing Toggle Switch */
.billing-toggle-container {
    background: #e9ecef;
    padding: 6px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.04);
}

.billing-toggle-btn {
    border: none;
    background: none;
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-toggle-btn.active {
    background: #198754;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

/* Simulator Card Customization */
.simulator-card {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 35px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: rgba(37, 211, 102, 0.15);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.pricing-card {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
}

.pricing-card.popular {
    border: 2.5px solid #198754;
    position: relative;
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.08);
}

.pricing-card.popular::before {
    content: "TERPOPULER";
    position: absolute;
    top: 22px;
    right: -33px;
    background-color: #198754;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 33px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.pricing-card.popular:hover {
    box-shadow: 0 30px 60px rgba(25, 135, 84, 0.15);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 15px;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(25, 135, 84, 0.2);
}

.accordion-button:not(.collapsed) {
    background: rgba(25, 135, 84, 0.06);
    color: #198754;
    font-weight: 700;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(25, 135, 84, 0.25);
}

.landing-footer {
    background-color: #050811;
    color: rgba(255, 255, 255, 0.6);
    padding: 90px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.landing-footer a:hover {
    color: #25d366;
    padding-left: 4px;
}

.landing-footer h5 {
    color: #ffffff;
    font-weight: 700;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #25d366 0%, #198754 100%);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}


