/* =========================================
   B2B LEAD BUILDER - UI THEME (Orange)
   ========================================= */

/* 1. Global Reset & Body */
body, html {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background-color: #F8FAFC;
    color: #334155;
    overflow-x: hidden !important; /* Fix Horizontal Scroll */
    height: 100%;
}
body {
    padding-bottom: 70px !important; /* Space for Footer */
}

/* Scrollbars */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: #f1f1f1; }
body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* 2. Main Card Styling (LeadQC Style) */
.card {
    border: none !important;
    background-color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    border-radius: 16px !important;
}

/* 3. Inputs & Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    height: 45px;
    transition: all 0.3s;
}
.form-control:focus {
    border-color: #FFA000;
    box-shadow: 0 0 0 3px rgba(255, 160, 0, 0.15);
}

/* 4. Footer Styling */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 10px 0;
    z-index: 900;
    margin-left: 240px; /* Matches Sidebar */
    transition: margin-left 0.3s ease;
}
.footer-nav .nav-link:hover { text-decoration: underline; color: #0f172a !important; }

@media (max-width: 768px) {
    .main-footer { margin-left: 0; }
}

/* 5. Custom Button (Upgrade Animation) - Preserved from your old code but refined */
.upgrade-button {
    background-color: #ff5722; /* Matches Orange Theme well */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    font-weight: 600;
}
.upgrade-button:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.6);
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 87, 34, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 87, 34, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 87, 34, 0.6); }
}

/* 6. Standard Buttons (Orange) */
.btn-primary, .btn-orange-action {
    background: #FFA000;
    border-color: #FFA000;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary:hover, .btn-orange-action:hover {
    background: #e69000;
    border-color: #e69000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 160, 0, 0.3);
}

/* 7. Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}
.table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    border: none;
    padding: 15px;
}
.table tbody tr {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}
.table tbody tr:hover {
    transform: translateY(-3px);
    background: #f8fafc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.table td {
    border: 1px solid #f1f5f9;
    border-width: 1px 0;
    padding: 10px !important;
    vertical-align: middle;
}
.table td:first-child { border-left: 1px solid #f1f5f9; border-radius: 10px 0 0 10px; }
.table td:last-child { border-right: 1px solid #f1f5f9; border-radius: 0 10px 10px 0; }

/* 8. Text Utilities */
.text-orange { color: #FFA000 !important; }
.bg-light-orange { background-color: #fffaf0; }

/* File Input */
input[type="file"]::file-selector-button {
	border-radius: 4px;
	padding: 0 16px;
	height: 40px;
	cursor: pointer;
	background-color: white;
	border: 1px solid #e2e8f0;
	margin-right: 16px;
	transition: all 0.2s;
}
input[type="file"]::file-selector-button:hover {
	background-color: #FFA000;
    color: white;
    border-color: #FFA000;
}


/* =========================================
   DASHBOARD PAGE SPECIFIC STYLES
   ========================================= */

/* Stats Icons Circle (Soft Backgrounds) */
.icon-circle-soft {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

/* Specific Colors for Stats */
.bg-soft-primary { background-color: #e0e7ff; color: #4f46e5; }
.bg-soft-success { background-color: #dcfce7; color: #16a34a; }
.bg-soft-info    { background-color: #e0f2fe; color: #0ea5e9; }

/* White Icon Circle (Used inside the Orange Promo Card) */
.icon-circle-white {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Orange Gradient Background for Promo Card */
.bg-gradient-orange {
    background: linear-gradient(135deg, #FFA000 0%, #FF8C00 100%);
}

/* Responsive Borders for the Stats Grid */
/* On mobile, changes the vertical border-right to a horizontal border-bottom */
@media (max-width: 768px) {
    .border-right { 
        border-right: none !important; 
        border-bottom: 1px solid #f1f5f9; 
        padding-bottom: 20px; 
        margin-bottom: 20px; 
    }
}

/* =========================================
   USER LEADS PAGE STYLES
   ========================================= */

/* LinkedIn Share Button */
.share-btn {
    background-color: #0077b5; /* LinkedIn Blue */
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.3);
    transition: all 0.3s ease;
    animation: linkedinPulse 2s infinite;
}

.share-btn:hover {
    background-color: #005e93;
    transform: translateY(-2px);
    color: #fff !important;
}

.share-btn i {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes linkedinPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 181, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 119, 181, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 181, 0); }
}

/* Table URL Truncation (keeps table neat) */
.table-url {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #0077b5; /* Link Color */
}


/* =========================================
   ZI LISTING ENHANCEMENTS
   ========================================= */

/* 1. Boxed Table Headers */
.zi-listing-table thead th {
    background-color: #f8fafc; /* Very Light Slate */
    color: #475569;            /* Dark Slate Text */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    border: 1px solid #e2e8f0; /* The Box Border */
    border-bottom: 2px solid #cbd5e1; /* Thicker bottom border */
    padding: 12px 15px;
}
/* Rounded corners for the header row */
.zi-listing-table thead th:first-child { border-radius: 8px 0 0 8px; }
.zi-listing-table thead th:last-child { border-radius: 0 8px 8px 0; }


/* 2. DOWNLOAD BUTTON (Orange Theme) */
/* Default State: Light Orange Background, Dark Orange Icon */
.zi-listing-table .btn:has(.bi-download),
.zi-listing-table .btn:has(.fa-download) {
    background-color: #fff7ed !important; /* Light Orange (#FFA0000F equivalent) */
    color: #ea580c !important;            /* Dark Orange Icon */
    border: 1px solid #ffedd5 !important; /* Soft Orange Border */
    width: 32px;
    height: 32px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
    padding: 0;
}

/* Hover State: Solid Brand Orange Background, White Icon */
.zi-listing-table .btn:has(.bi-download):hover,
.zi-listing-table .btn:has(.fa-download):hover {
    background-color: #FFA000 !important; /* Solid Brand Orange */
    color: white !important;               /* White Icon */
    border-color: #FFA000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 160, 0, 0.3); /* Orange Shadow */
}


/* 3. Search Box Fix */
.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-box-wrapper .search-icon-overlay {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5; /* Ensure icon is above input background */
    pointer-events: none; /* Click through to input */
}

.search-box-wrapper input.search-modern {
    padding-left: 45px !important; /* Push text to right so it doesn't hit icon */
    height: 45px;
    border-radius: 50px;
}


/* =========================================
   PREMIUM PRICING PAGE STYLES
   ========================================= */

/* Base Card Styling */
.pricing-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px; /* Softer corners */
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hover Effect: Lift and Glow */
.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Top Orange Line for Standard Cards */
.card-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    transition: background 0.3s;
}
.pricing-card:hover .card-top-border {
    background: #FFA000; /* Turns Orange on Hover */
}

/* --- FEATURED CARD (Enterprise) --- */
.featured-card {
    border: 2px solid #FFA000;
    box-shadow: 0 15px 40px rgba(255, 160, 0, 0.15);
    transform: scale(1.05); /* Make it bigger */
    z-index: 10;
}
.featured-card:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 160, 0, 0.25);
}

/* Ribbon for Featured Card */
.ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    overflow: hidden;
}
.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: #FFA000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg); /* Diagonal Ribbon */
    right: -65px;
    top: 45px;
}

/* --- TYPOGRAPHY --- */
.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}
.plan-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.price-wrapper {
    font-size: 48px; /* Massive Price */
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.price-wrapper .currency {
    font-size: 24px;
    vertical-align: top;
    margin-right: 2px;
    color: #94a3b8;
}
.price-wrapper .period {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 5px;
}

/* Features List */
.pricing-body {
    flex-grow: 1;
    margin-bottom: 30px;
}
.pricing-body ul li {
    margin-bottom: 15px;
    font-size: 15px;
    color: #475569;
    display: flex;
    align-items: center;
}
.pricing-body ul li i {
    font-size: 16px;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

/* Buttons */
.pricing-footer .btn {
    font-size: 14px;
    padding: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* =========================================
   DOCUMENTATION / STEPS STYLES
   ========================================= */

/* Step Number Circle */
.step-number {
    width: 32px;
    height: 32px;
    background-color: #FFA000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(255, 160, 0, 0.2);
}

/* Code Snippet Box */
.custom-code {
    background-color: #1f2937; /* Dark Slate */
    color: #4ade80; /* Terminal Green */
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    display: inline-block;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Icon Soft Background (Used in Left Card) */
.icon-circle-soft {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}
.bg-soft-primary { background-color: #e0e7ff; color: #4f46e5; }