/*
    Master Stylesheet - Reach Vortex SaaS
    Palette:
    - Base Dark: #1e1e2f
    - Hover Dark: #2a2a40
    - Action Blue: #2563eb
    - Action Hover: #1d4ed8
    - Success Emerald: #10b981
*/

/* =========================================================
   REACH VORTEX FOUNDATION (Replaces Bootstrap)
========================================================= */
.auth-page-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 80px 20px;
    box-sizing: border-box;
}

.content {
	padding: 0px !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* 2. Card Containers */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-body {
    background: #ffffff;
    padding: 25px 25px !important;
}

.card-body ul {
    margin: 0 0 1.5em 0em !important;
}  	

.card-header {
    background: #ffffff;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px !important;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0px 0px;
}

/* 3. The Grid System */
.col-md-12 { 
    width: 100%; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

.col-md-8 { 
    width: 66.67%; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

.col-md-6 { 
    width: 50%; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

.col-md-4 { 
    width: 33.33%; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

.col-md-3 { 
    width: 25%; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

/* 3. Basic Form Spacing */
.form-group {
    margin-bottom: 15px;
}

#myForm {
    max-width: 100%;
    padding: 0;
}

/* Fallback for any inputs we missed upgrading */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}


/* =========================================================
   THANK YOU / REGISTRATION SUCCESS PAGE
========================================================= */

/* Use the auth page base style to center the card */
.thankyou_outline {
    background: #ffffff;
    width: 100%;
    max-width: 500px; /* Slightly wider than login card */
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(5, 32, 73, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center; /* Center all contents */
}

/* Big Emerald Checkmark Icon */
.success_icon_container {
    font-size: 80px;
    color: #10b981; /* Fresh Emerald Green */
    margin-bottom: 25px;
}

.thankyou_fields h2 {
    color: #1e1e2f;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 15px !important;
    border: none !important;
}

.success_message {
    color: #334155;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.onboarding_tip {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

/* The CTA Button - Styled like a Register button but as a link */
#launch_dashboard_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(to right, #10b981, #059669); /* Emerald Gradient */
    color: #fff !important;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

#launch_dashboard_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: #fff !important;
}

/* Hide the error box until JavaScript triggers it */
#error_msg {
    display: none; 
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 500;
    background: #fee2e2;
    padding: 10px;
    border-radius: 6px;
    color: #991b1b !important;
}

/* Force Chrome Autofill to respect our clean white design */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* =========================================================
   AUTHENTICATION PAGES (LOGIN & REGISTER)
========================================================= */

/* 1. Override the Sidebar Margin for Auth Pages */
body.auth-page .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

/* 2. Center the Auth Container Vertically and Horizontally */
body.auth-page .container-inside {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px); /* Accounts for the topbar height */
    padding: 40px 20px;
}

/* 3. The Auth Card Design */
.login_outline, 
.register_outline {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(5, 32, 73, 0.05); /* Soft navy shadow */
    border: 1px solid #e2e8f0;
}

/* 4. Auth Typography */
.login_fields h2, 
.register_fields h2 {
    text-align: center;
    color: #1e1e2f;
    font-weight: 700;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 30px !important;
    border: none !important;
}

/* 5. Modern Input Fields */
.login_fields input[type="text"], 
.login_fields input[type="password"],
.login_fields input[type="email"],
.register_fields input[type="text"], 
.register_fields input[type="password"],
.register_fields input[type="email"] {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Smooth Focus State matching our Royal Blue */
.login_fields input:focus, 
.register_fields input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* 6. Main Action Buttons */
#login_submit_button, 
#register_submit_button {
    width: 100%;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#login_submit_button:hover, 
#register_submit_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* 7. Forgot Password / Alternative Action Links */
.login_button a, 
.register_button a {
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.login_button a:hover, 
.register_button a:hover {
    color: #2563eb;
}

/* 8. Error Message Styling */
#error_msg {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 500;
    background: #fee2e2;
    padding: 10px;
    border-radius: 6px;
    color: #991b1b !important;
}

/* --- TOP NAVIGATION --- */
.brand-logo {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e2f; 
    letter-spacing: -0.5px;
}

.topbar-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar-actions a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.topbar-actions a:hover {
    color: #2563eb;
}

.logout-btn {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.logout-btn:hover {
    background: #10b981 !important;
    color: #fff !important;
    border-color: #065f46 !important;
}

/* --- MAIN CONTENT & LAYOUT --- */
table, td, th {
	border: none;
}

a {color: #1e1e2f;}

body.sidebar-is-collapsed .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* --- LIGHTENED CARD HEADERS --- */

/* If you have the subtitle still, this styles it */
.card-category { 
    color: #64748b !important; 
    font-size: 13px !important;
    font-weight: 500;
    margin: 0;
}

/* --- EMERALD ACTION BUTTONS --- */
/* Smaller Utility Actions (Quick Paste, Add Row) */
.btn-add-row {
    background: #2563eb; /* Action Blue */
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-add-row:hover {
    background: #1d4ed8; /* Darker Blue */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* Main Primary Action (Deploy & Build / Save) */
.btn-deploy {
    background: linear-gradient(to right, #10b981, #059669); /* Emerald Gradient */
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    margin: 2px 4px 6px 0;
    transition: all 0.3s;
}

.btn-deploy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); /* Soft Emerald glow */
    color: #fff;
}

.btn-remove {
    color: #ef4444;
    background: #fef2f2; /* Super light red tint to create a boundary */
    border: 1px solid #fee2e2;
    border-radius: 6px; /* Modern soft square */
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-remove:hover {
    background: #ef4444;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.action-buttons { display: flex; gap: 5px; }
.action-buttons .btn { padding: 6px 10px; border-radius: 4px; border: none; color: #fff; text-decoration: none; font-size: 12px; }
.action-buttons .btn-view { background-color: #1e1e2f; color: #fff; }
.action-buttons .btn-view:hover { background-color: #2563eb; color: #fff; }
.action-buttons .btn-edit { background-color: #2563eb; color: #fff; }
.action-buttons .btn-edit:hover { background-color: #1d4ed8; color: #fff; }
.action-buttons .btn-delete { background-color: #ef4444; }
.action-buttons .btn-delete:hover { background-color: #dc2626; }

/* --- DATA GRIDS & TABLES --- */
.deployment-table { width: 100%; border-collapse: separate; border-spacing: 0; }

/* --- LIGHTENED TABLE HEADERS --- */
.deployment-table thead th { 
    background: #f8fafc; /* Very soft slate/gray */
    color: #475569; /* Muted dark text */
    padding: 14px 15px; 
    font-size: 12px; 
    font-weight: 600; 
    border: none;
    border-bottom: 2px solid #e2e8f0; /* Ground the header row */
    text-align: left; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deployment-table tbody td { padding: 0; border: 1px solid #fff; background: #fff; vertical-align: middle; }

.grid-select {
    width: 100%;
    font-size: 13px;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    padding: 10px 30px 10px 10px !important;

	/* 1. Kill the browser's ugly default arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* 2. Inject our own sleek, modern SVG chevron */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    
    /* 3. Position it exactly 12px away from the right edge! */
    background-position: right 12px center; 
    background-size: 16px;	
}

.domain-input { color: #666; font-weight: 500; background-color: #fcfcfc; }

.list-table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.list-table th { color: #888; font-size: 12px; border-bottom: 2px solid #eee; padding: 10px; text-align: left; font-weight: 600; }
.list-table td { padding: 12px 10px; border-bottom: 1px solid #f1f1f1; font-size: 13px; color: #333; vertical-align: middle; }

/* --- BADGES & STATUSES --- */
.status-badge { padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-pending { background: #fff3cd; color: #856404; }
.status-active { background: #d1fae5; color: #065f46; } /* Soft Emerald */
.status-error { background: #fee2e2; color: #991b1b; }

.badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.badge-dot.link-outreach { background-color: #10b981; } 
.badge-dot.sales-outreach { background-color: #1e1e2f; } 

.project-type-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; color: #fff; }
.project-type-badge.link-outreach { background-color: #2563eb; }
.project-type-badge.sales-outreach { background-color: #10b981; }

/* --- FORMS & INPUTS --- */
.paste-area { width: 100%; border: 2px dashed #ddd; padding: 15px; border-radius: 8px; background: #fdfdfd; font-size: 12px; font-family: monospace; margin-bottom: 15px; display: none; }
.project-textarea { width: 100%; min-height: 110px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; line-height: 1.6; resize: vertical; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.project-textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); outline: none; }

.topic-input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.topic-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); outline: none; }

.category-select { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; background-color: #fff; transition: border-color 0.3s ease, box-shadow 0.3s ease; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; height: 46px; line-height: 1.4; }
.category-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); outline: none; }
.category-select:invalid { color: #999; }

/* --- MISC UI ELEMENTS --- */
.mode-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.mode-tab { padding: 15px 25px; font-weight: 600; color: #888; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.mode-tab:hover { color: #555; background: #f9f9f9; }
.mode-tab.active { color: #1e1e2f; border-bottom-color: #1e1e2f; background: #fff; }
.mode-tab i { margin-right: 8px; }

.project-tabs { border-bottom: 2px solid #e9ecef; padding-left: 0; list-style: none; display: flex; margin-bottom: 20px !important; }
.project-tabs .nav-link { border: none; color: #6c757d; padding: 10px 20px; font-weight: 500; transition: all 0.3s ease; text-decoration: none; display: inline-block; background: transparent; }
.project-tabs .nav-link:hover { color: #10b981; background: #f8f9fa; }
.project-tabs .nav-link.active { color: #1e1e2f; border-bottom: 3px solid #1e1e2f; margin-bottom: -2px; }

.readonly-content { background: #f8f9fa; border-radius: 8px; padding: 15px; min-height: 150px; max-height: 250px; overflow-y: auto; }
.url-item { display: block; padding: 8px 12px; margin-bottom: 5px; background: #fff; border-radius: 4px; color: #1e1e2f; text-decoration: none; font-size: 13px; word-break: break-all; transition: all 0.2s ease; }
.url-item:hover { background: #e9ecef; color: #2563eb; text-decoration: none; }
.anchor-item { display: inline-block; padding: 6px 12px; margin: 3px; background: #fff; border-radius: 20px; color: #333; font-size: 13px; border: 1px solid #ddd; }

.alert-success { background-color: #10b981 !important; color: white !important;padding: 10px !important;}

/* =========================================================
   1. UPGRADED PAGE HEADER & BUTTON
========================================================= */

.card-title {
    color: #1e1e2f !important; /* Dark Navy */
    font-weight: 700 !important;
    font-size: 26px !important;
    letter-spacing: -0.5px;
    margin: 0 !important;
}

.add-project {
    background: linear-gradient(to right, #10b981, #059669); /* Emerald Gradient */
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Perfect spacing between the + icon and text */
}

.add-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
    background: linear-gradient(to right, #059669, #047857);
}

/* Restore the Dark Table Header for Projects */
.projects-table thead th {
    background: #f8fafc !important; /* Very soft, airy slate background */
    color: #334155 !important; /* Crisp, dark slate text */
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important; /* Grounds the header row */
    padding: 16px 15px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure the table rows match the clean aesthetic */
.projects-table {
    border-collapse: separate;
    border-spacing: 0;
}

.projects-table tbody td {
    border-bottom: 1px solid #f1f5f9 !important; /* Super subtle row dividers */
    color: #475569; /* Softer text for data */
    font-size: 14px;
    padding: 16px 15px !important;
    vertical-align: middle;
}

/* Keep the bold project name standing out */
.projects-table tbody td strong {
    color: #1e1e2f;
    font-weight: 600;
}

.projects-table .btn-edit,
.action-buttons .btn-edit {
    background: #2563eb !important; 
    color: #ffffff !important;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.projects-table .btn-edit:hover,
.action-buttons .btn-edit:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* =========================================================
   2. FIXING THE STATS GRID (Bypassing Bootstrap)
========================================================= */
.project-stats { 
    border-top: 1px solid #e2e8f0; 
    padding-top: 25px; 
    margin-top: 25px; 
}

/* Force a modern 4-column layout */
.project-stats .row {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 0 !important; /* Kills broken bootstrap margins */
}

/* Nullify the broken bootstrap column widths */
.project-stats .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.stat-card { 
    display: flex; 
    align-items: center; 
    padding: 20px; 
    background: #ffffff; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease; 
    height: 100%; 
    box-sizing: border-box;
}

.stat-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(5,32,73,0.05); 
}

.stat-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 15px; 
    color: #fff; 
    font-size: 22px; 
    flex-shrink: 0; 
}

/* Stat Gradients */
.stat-icon.total { background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%); }
.stat-icon.link { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.stat-icon.sales { background: linear-gradient(135deg, #475569 0%, #334155 100%); }
.stat-icon.prospects { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.stat-info h3 { margin: 0; font-size: 22px; font-weight: 800; color: #1e1e2f; }
.stat-info p { margin: 0; font-size: 13px; color: #64748b; font-weight: 500; }

/* =========================================================
   FORM SUBMIT BUTTON (EMERALD)
========================================================= */
.btn-submit-project {
    background: linear-gradient(to right, #10b981, #059669); /* Emerald Gradient */
    color: #fff !important;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
    background: linear-gradient(to right, #059669, #047857);
}

.btn-submit-project:disabled {
    background: #94a3b8; /* Slate gray when disabled/spinning */
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   CHEERING UP THE ADD PROJECT FORM (VISUAL ENHANCEMENTS)
========================================================= */

/* 1. Enhance the Card Header with an Icon and subtle color */
.card-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
}

/* 2. Massive breathing room between form groups */
#myForm .form-group {
    margin-bottom: 30px;
}

/* 3. Smarter, evenly spaced Labels (Targeted via the 'for' attribute) */
#myForm label {
    font-weight: 700 !important;
    color: #334155 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px !important; /* Push input down slightly */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Target exactly the right label without relying on HTML IDs */
#myForm label[for="label"]:before { content: "\f02c"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }
#myForm label[for="prospects"]:before { content: "\f0c0"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }
#myForm label[for="target_country"]:before { content: "\f0ac"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }
#myForm label[for="type"]:before { content: "\f005"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }
#topics-wrapper label:before { content: "\f140"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }
#urls-wrapper label:before { content: "\f0c1"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }
#anchors-wrapper label:before { content: "\f24a"; font-family: FontAwesome; font-weight: normal; color: #64748b; font-size: 14px; }

/* 4. Make the Credit Wrapper a floating badge instead of a huge block */
#max-link-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 8px;
    margin-top: 15px !important;
    display: inline-block; /* Stops it from stretching full width */
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

#max-link-wrapper strong {
    color: #10b981;
    font-size: 15px;
}

/* 5. Improve the visibility of conditional wrappers */
#topics-wrapper, #urls-wrapper, #anchors-wrapper {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px !important;
}

/* 6. Button Icon */
.btn-submit-project .btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit-project .btn-text:before {
    content: "\f0fe"; /* fa-plus-square */
    font-family: FontAwesome;
    font-weight: normal;
    font-size: 16px;
}

/* =========================================================
   PROJECT DETAILS PAGE SPECIFIC
========================================================= */

/* 1. Top Project Info Bar */
.project-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background: #f8fafc;
    padding: 18px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    align-items: center;
}
.info-item { display: flex; align-items: center; gap: 8px; }
.info-label { font-weight: 700; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-weight: 800; color: #1e1e2f; font-size: 15px; }

/* 2. Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e1e2f;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: #2563eb; } /* Action Blue Icons */

/* 3. Modernized Success Alert (Replaces the ugly dark blue block) */
.alert-success-modern {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 5px solid #10b981;
    border-radius: 8px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.alert-success-modern h5 { color: #065f46; font-weight: 800; margin: 0 0 5px 0; font-size: 18px; }
.alert-success-modern p { margin: 0; color: #047857; font-size: 14px; font-weight: 500; }

/* 4. Action Buttons (Emerald & Blue) - FORCED SYMMETRY */
.btn-action-emerald {
    background: linear-gradient(to right, #10b981, #059669);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    
    /* The Great Equalizer */
    height: 48px !important; 
    padding: 0 24px !important; /* Let height control the vertical space */
    box-sizing: border-box !important;
    line-height: 1 !important;
}
.btn-action-emerald:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16,185,129,0.2); }

.btn-action-blue {
    background: #2563eb;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    
    /* The Great Equalizer */
    height: 48px !important;
    padding: 0 24px !important; /* Let height control the vertical space */
    box-sizing: border-box !important;
    line-height: 1 !important;
}
.btn-action-blue:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37,99,235,0.2); }

/* 5. Database Stats Box */
/* =========================================================
   EQUAL-HEIGHT ACTION PANELS (Find Prospects)
========================================================= */
.split-col-left, .split-col-right {
    display: flex;
    flex-direction: column;
}

.action-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Forces both cards to be the exact same height */
    margin-top: 15px;
}

.action-card form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.action-card .project-textarea {
    flex-grow: 1; /* Makes the textarea expand to fill empty space */
    margin-bottom: 20px !important;
    min-height: 120px;
}

/* Force exact matching dimensions and bottom alignment */
.action-card .btn-action-emerald,
.action-card .btn-action-blue {
    margin-top: auto !important; /* Pushes buttons to the absolute bottom */
    height: 50px;
    width: 100%;
    font-size: 15px;
}

.database-stats-inner {
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.database-stats-inner h2 { margin: 0 0 5px 0; color: #10b981; font-weight: 800; font-size: 36px; letter-spacing: -1px; }
.database-stats-inner p { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #64748b; margin: 0; letter-spacing: 1px; }

/* 6. Readonly content areas (URLs & Anchors) */
.readonly-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}
.url-item {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
    transition: all 0.2s ease;
}
.url-item:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; text-decoration: none; }
.anchor-item {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: #ffffff;
    border-radius: 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* =========================================================
   CAMPAIGN DETAILS PAGE
========================================================= */

/* 1. Missing Bootstrap Utility Polyfills */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.m-0 { margin: 0 !important; }
.mb-4 { margin-bottom: 25px !important; }
.ml-2 { margin-left: 10px !important; }
.text-success { color: #10b981 !important; } /* Emerald */
.text-danger { color: #ef4444 !important; } /* Red */
.text-warning { color: #f59e0b !important; } /* Orange */
.text-info { color: #3b82f6 !important; } /* Blue */
.text-muted { color: #64748b !important; } /* Slate */

/* 2. Status Badges (Next to Title) */
.badge-active { 
    background: #ecfdf5; 
    color: #065f46; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 800; 
    display: inline-block; 
    border: 1px solid #a7f3d0;
    vertical-align: middle;
}
.badge-paused { 
    background: #fefce8; 
    color: #b45309; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 800; 
    display: inline-block; 
    border: 1px solid #fde68a;
    vertical-align: middle;
}

/* 3. Master Controls (Pause/Resume) */
.btn-control { 
    border-radius: 8px !important; 
    font-weight: 700 !important; 
    padding: 12px 24px !important; 
    transition: all 0.3s; 
    border: none; 
    font-size: 14px; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-pause { background: linear-gradient(to right, #ef4444, #dc2626); color: #fff; }
.btn-pause:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(239,68,68,0.2); }
.btn-resume { background: linear-gradient(to right, #10b981, #059669); color: #fff; }
.btn-resume:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(16,185,129,0.2); }

/* 4. Analytics Cards Row */
/* Overriding col-md-2 to flex:1 ensures 5 columns divide the space perfectly evenly */
.stat-card {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    flex: 1; 
}
.stat-card:last-child { border-right: none; }
.stat-value { font-size: 36px; font-weight: 800; color: #1e1e2f; margin-bottom: 5px; letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;}

/* 5. Sender Health List Group */
.list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }
.list-group-item { position: relative; display: block; background-color: transparent; }
.badge-pill { padding-right: 0.6em; padding-left: 0.6em; border-radius: 10rem; }
.badge-success { background: #ecfdf5; color: #065f46; font-weight: 700; font-size: 11px; border: 1px solid #a7f3d0; padding: 4px 10px;}

/* 6. Activity Table */
.activity-table { width: 100%; border-collapse: collapse; }
.activity-table th { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 800; padding: 15px; border-bottom: 2px solid #e2e8f0; letter-spacing: 1px; text-align: left;}
.activity-table td { padding: 15px; vertical-align: middle; font-size: 13px; color: #334155; border-bottom: 1px solid #f8fafc; }

/* =========================================================
   CAMPAIGNS LIST PAGE
========================================================= */

/* 1. Page Header Typography Overrides */
h2[style*="#052049"] { color: #1e1e2f !important; letter-spacing: -0.5px; }

/* 2. Table Structural Styling */
.campaign-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.campaign-table thead th { 
    background: #f8fafc !important; 
    color: #475569 !important; 
    border: none !important; 
    border-bottom: 2px solid #e2e8f0 !important; 
    padding: 16px 15px !important; 
    font-size: 11px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.campaign-table tbody td { 
    padding: 18px 15px !important; 
    vertical-align: middle !important; 
    font-size: 14px; 
    color: #64748b; 
    border-bottom: 1px solid #f1f5f9 !important; 
}

.campaign-table tbody tr:hover { background-color: #f8fafc; }

/* 3. Column Specific Text Overrides (Killing old inline colors) */
.campaign-table td:nth-child(1) strong { color: #1e1e2f !important; font-size: 15px; }
.campaign-table td:nth-child(4) span { color: #10b981 !important; font-weight: 700 !important; } /* Verified Leads (Emerald) */
.campaign-table td:nth-child(5) strong { color: #1e1e2f !important; } /* Total Sent */

/* 4. Badges (Adding the missing Draft badge) */
.badge-draft { 
    background: #f1f5f9 !important; 
    color: #64748b !important; 
    padding: 6px 14px !important; 
    border-radius: 20px !important; 
    font-size: 11px !important; 
    font-weight: 800 !important; 
    display: inline-block; 
    border: 1px solid #e2e8f0 !important;
    vertical-align: middle;
    text-transform: uppercase;
}

/* 5. Button Normalization & Inline Style Assassination */
.btn-view-campaign { 
    border: none !important; 
    padding: 8px 16px !important; 
    border-radius: 6px !important; 
    font-size: 12px !important; 
    font-weight: 700 !important; 
    transition: all 0.2s ease !important; 
    text-decoration: none !important; 
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center;
    color: #fff !important;
    margin-right: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.btn-view-campaign:hover {
    transform: translateY(-2px) !important;
}

/* Settings & Configure Buttons (Slate) - Targets the URL */
a.btn-view-campaign[href*="campaign-settings"] {
    background: #64748b !important; 
}
a.btn-view-campaign[href*="campaign-settings"]:hover {
    background: #475569 !important;
    box-shadow: 0 4px 10px rgba(100,116,139,0.2) !important;
}

/* View Details Button (Action Blue) - Targets the URL */
a.btn-view-campaign[href*="campaign-details"] {
    background: #2563eb !important; 
}
a.btn-view-campaign[href*="campaign-details"]:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 10px rgba(37,99,235,0.2) !important;
}

/* Pause Button (Amber Warning) - Targets data attribute */
button.btn-view-campaign[data-action="4"] {
    background: #f59e0b !important; 
}
button.btn-view-campaign[data-action="4"]:hover {
    background: #d97706 !important;
    box-shadow: 0 4px 10px rgba(245,158,11,0.2) !important;
}

/* Resume Button (Emerald Success) - Targets data attribute */
button.btn-view-campaign[data-action="3"] {
    background: #10b981 !important; 
}
button.btn-view-campaign[data-action="3"]:hover {
    background: #059669 !important;
    box-shadow: 0 4px 10px rgba(16,185,129,0.2) !important;
}

/* =========================================================
   CAMPAIGNS LIST TABLE ALIGNMENT & POLISH
========================================================= */

/* 1. Center the Data & Status Columns (Cols 2, 3, 4, 5) */
.campaign-table th:nth-child(2), .campaign-table td:nth-child(2),
.campaign-table th:nth-child(3), .campaign-table td:nth-child(3),
.campaign-table th:nth-child(4), .campaign-table td:nth-child(4),
.campaign-table th:nth-child(5), .campaign-table td:nth-child(5) {
    text-align: center !important;
}

/* 2. Right-Align the Actions Column (Col 6) */
.campaign-table th:nth-child(6), 
.campaign-table td:nth-child(6) {
    text-align: right !important;
    padding-right: 25px !important; /* Give it a little breathing room from the edge */
}

/* 3. Kill the trailing margin on the last button so it sits perfectly flush right */
.campaign-table td:nth-child(6) .btn-view-campaign:last-child {
    margin-right: 0 !important;
}

/* =========================================================
   CAMPAIGNS SETTINGS ALIGNMENT & POLISH
========================================================= */

/* Fix the "Thick Bars" - Reducing height and padding */
.grid-input, .grid-select {width: 100%;border: 1px solid #e0e0e0 !important;padding: 8px 12px !important;height: 38px !important;font-size: 14px !important;background: #fff !important;outline: none;color: #333;border-radius: 4px !important;transition: all 0.2s;}
.grid-input:focus, .grid-select:focus { border-color: #10b981 !important; background: #fafffa !important; }

/* Identity List Container */
#identity_list_container {max-height: 150px;overflow-y: auto;border: 1px solid #eee;padding: 10px;border-radius: 6px;background: #fcfcfc;}
.identity-item { display: block; padding: 4px 0; border-bottom: 1px solid #f9f9f9; }
.identity-item label { font-weight: normal !important; font-size: 13px; color: #555; cursor: pointer; margin: 0; }
.identity-item input { margin-right: 8px; }

/* Custom Scrollbar */
#identity_list_container::-webkit-scrollbar { width: 6px; }
#identity_list_container::-webkit-scrollbar-track { background: #f1f1f1; }
#identity_list_container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
#identity_list_container::-webkit-scrollbar-thumb:hover { background: #10b981; }

/* Custom Scrollbar */
#lead_list_container::-webkit-scrollbar { width: 6px; }
#lead_list_container::-webkit-scrollbar-track { background: #f1f1f1; }
#lead_list_container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
#lead_list_container::-webkit-scrollbar-thumb:hover { background: #10b981; }

/* Override Bootstrap h2/h3 margins */
.card-header h2, .card-header .h2, .card-header h3, .card-header .h3 {margin: 0 !important;font-weight: 700 !important;font-size: 22px !important;line-height: 1.2;display: flex;align-items: center;color: #fff !important;}
.card-header h2 i, .card-header h3 i {margin-right: 10px; font-size: 20px;}
.card label {padding-top: 0 !important; margin-top: 5px; margin-bottom: 5px;}
        
/* Fix the Search Input Cursor position for Emoji Icons */
#identity_search, #lead_search {padding-left: 12px !important;text-indent: 22px !important;height: 38px !important;border: 1px solid #eee !important;}
#identity_search::placeholder, #lead_search::placeholder {text-indent: 0 !important;color: #999;opacity: 1;}
.title-text {margin-right: 8px;}

/* Day Picker Styling */
.day-picker { display: flex; gap: 5px; }
.day-checkbox { cursor: pointer; margin: 0; }
.day-checkbox input { display: none; } /* Hide the actual checkbox */
.day-badge {display: inline-block;width: 28px;height: 28px;line-height: 28px;text-align: center;border-radius: 4px;font-size: 12px;font-weight: 700;background: #f0f0f0;color: #999;transition: all 0.2s;}
.day-checkbox input:checked + .day-badge {background: #d4edda; color: #155724; border: 1px solid #c3e6cb;}
.day-checkbox:hover .day-badge {transform: translateY(-2px);box-shadow: 0 2px 5px rgba(0,0,0,0.1);}

/* Time Picker styling */
input[list]::-webkit-calendar-picker-indicator {display: block !important;opacity: 0.5;cursor: pointer;}
input[list]:hover::-webkit-calendar-picker-indicator {opacity: 1;}
.grid-input[name*="time"] {cursor: pointer;}

/* Placeholder Tags Polish */
.placeholder-tag {background: #fff;border: 1px solid #052049 !important;color: #052049 !important;font-weight: 600;transition: all 0.2s ease;user-select: none;padding: 5px !important;}
.placeholder-tag:hover {background: #052049 !important;color: #fff !important;transform: translateY(-1px);box-shadow: 0 2px 4px rgba(0,0,0,0.1);}
.placeholder-tag i {margin-right: 4px;opacity: 0.7;}

/* Email Content Area */
#email_body {resize: vertical !important;padding: 15px !important;border-color: #ddd !important;line-height: 1.6 !important;background-color: #fafafa !important;height: auto !important;overflow-y: auto;min-height: 240px !important;}
#email_body:focus {background-color: #fff !important;border-color: #10b981 !important;}

/* Button UI Polish */
.btn-add-row, .btn-deploy {border-radius: 4px !important;font-weight: 600 !important;padding: 10px 20px !important;transition: 0.2s;}
.btn-add-row { background: #f0f0f0; border: 1px solid #ddd; color: #555; }
.btn-add-row:hover { background: #e0e0e0; }

/* =========================================================
   INBOX SETTINGS ALIGNMENT & POLISH
========================================================= */

.reply-item:hover { background: #f0f0f0 !important; }
.reply-item.active { background: #e3f2fd !important; }
.message-body-container::-webkit-scrollbar { width: 6px; }
.message-body-container::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }
#active-message-body p { margin: 0px 0 !important; }
.quoted-line {color: #888 !important; border-left: 3px solid #dcdcdc; padding-left: 12px; display: block; margin: 0 !important;line-height: 1.4;width: 100%;}
.delete-reply-btn:hover { color: #ff4d4d !important; }

/* =========================================================
   LEADS DATABASE ALIGNMENT & POLISH
========================================================= */
.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #777;
    margin-bottom: 5px;
}

/* Standard Text Inputs */
.form-control {
    height: 42px !important;
    border-radius: 4px;
    border: 1px solid #E3E3E3;
    box-shadow: none;
}

/* Force Select2 to obey the Bootstrap grid width */
.select2-container {
    width: 100% !important;
}

/* Restore the tall 80px box for the multiple selects */
.select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 4px !important;
    min-height: 80px !important; 
    padding: 5px !important;
}


/* Align the placeholder text inside the tall box */
.select2-container--default .select2-selection--multiple .select2-search__field {
    margin-left: 5px !important;
    color: #888 !important;
}

/* Style the blue selected tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #2563eb !important; /* Matched to your topbar dark blue */
    border: none !important;
    color: white !important;
    border-radius: 3px !important;
    padding: 4px 8px !important;
    margin-left: 5px !important;
    font-size: 12px;
    display: inline-flex !important;
    align-items: center;
}

/* The remove 'x' on the tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    margin-right: 6px !important;
    border: none !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: transparent !important;
    color: #a0cb5e !important; /* Matched to your green buttons */
}
/* Block global theme margins from bleeding into Select2 unordered lists */
.select2-container--default .select2-selection--multiple ul.select2-selection__rendered {
    margin: 0 !important;
    padding: 0 5px !important;
}

/* Fine-tune the placeholder text vertical alignment */
.select2-container--default .select2-selection--multiple .select2-search__field {
    margin-top: 0px !important; /* Adjust this number to move the text up or down */
    margin-left: 5px !important;
    margin-bottom: 40px !important;
}

/* --- PROJECT OBJECTIVE BADGES --- */
.project-type-badge { 
    display: inline-block; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 700; 
    color: #fff; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-type-badge.badge-blue { background: linear-gradient(to right, #3b82f6, #2563eb); }
.project-type-badge.badge-purple { background: linear-gradient(to right, #8b5cf6, #6d28d9); }
.project-type-badge.badge-amber { background: linear-gradient(to right, #f59e0b, #d97706); }
.project-type-badge.badge-emerald { background: linear-gradient(to right, #10b981, #059669); }

/* =========================================================
   SHARED AUTH / ONBOARD SHELL (from login.php)
   ========================================================= */

.rv-theme-isolate {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 80px);
    width: 100% !important;
    background-color: #f8fafc;
}

.auth-page-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Onboard is taller multi-step — pin content near top like before */
.auth-page-wrapper:has(.onboard-card) {
    align-items: flex-start;
    padding: 80px 20px 80px;
}

.rv-custom-footer {
    width: 100%;
    background: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
    flex-shrink: 0;
}

footer.site-footer,
#colophon {
    display: none !important;
}

/* =========================================================
   LOGIN BOX
   ========================================================= */

.clean-login-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.clean-login-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
    gap: 10px;
}

.btn-google:hover {
    background-color: #f9fafb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google img {
    width: 18px;
    margin-right: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider::before { margin-right: 10px; }
.auth-divider::after { margin-left: 10px; }

.clean-login-box input[type="text"],
.clean-login-box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    background-color: #f9fafb;
    transition: border-color 0.2s ease;
}

.clean-login-box input[type="text"]:focus,
.clean-login-box input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
}

.clean-login-box input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px !important;
}

.clean-login-box input[type="submit"]:hover {
    background: #1d4ed8;
}

/* =========================================================
   ONBOARD (4-step UI) — keep all of this
   ========================================================= */

.onboard-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
    border: 1px solid #e2e8f0;
    padding: 36px 36px 28px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.onboard-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.onboard-sub {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.step-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step-dot {
    height: 6px;
    flex: 1;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background .35s ease;
}

.step-dot.active { background: #2563eb; }
.step-dot.done { background: #10b981; }

.step-panel {
    display: none;
    animation: rvFade .45s ease;
}

.step-panel.active { display: block; }

@keyframes rvFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.spinner-ring {
    width: 64px;
    height: 64px;
    margin: 12px auto 20px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    animation: rvSpin .85s linear infinite;
}

@keyframes rvSpin {
    to { transform: rotate(360deg); }
}

.pulse-line {
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #e2e8f0 0%, #bfdbfe 40%, #e2e8f0 80%);
    background-size: 200% 100%;
    animation: rvShimmer 1.4s ease infinite;
    margin: 10px 0;
}

@keyframes rvShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.checklist li i {
    width: 22px;
    text-align: center;
    color: #94a3b8;
}

.checklist li.done i { color: #10b981; }
.checklist li.run i { color: #2563eb; }

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.progress-bar-bg {
    height: 10px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-bar-fg {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 99px;
    transition: width .5s ease;
}

.sample-list {
    margin-top: 16px;
    max-height: 180px;
    overflow: auto;
}

.sample-item {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    background: #f8fafc;
}

.sample-item .dom {
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
}

.btn-next,
.btn-primary {
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
    transition: background .2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-next:hover,
.btn-primary:hover {
    background: #1d4ed8;
}

.btn-next:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.onboard-card input[type=text],
.onboard-card input[type=email],
.onboard-card input[type=password] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    background: #f9fafb;
}

.onboard-card input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.alert-err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.lock-note {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-top: 14px;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 99px;
    margin-bottom: 12px;
}

footer.site-footer,
#colophon {
    display: none !important;
}

.kw-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
    max-height: 220px;
    overflow: auto;
}

.kw-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.kw-chip.is-in {
    animation: rvFade .35s ease both;
}

/* 7. Responsive Fix for Stats Row */
@media (max-width: 1200px) {
    .stat-card { border-right: none; border-bottom: 1px solid #e2e8f0; min-width: 50%; }
    .stat-card:last-child { border-bottom: none; }
}

/* --- RESPONSIVE MOBILE LAYOUT --- */
@media (max-width: 768px) {

  	/* 0. Replace boostrap */
  	.col-md-6 { 
        width: 100%; 
    }
  
  	/* 1. Auto-collapse the Sidebar */
    #saas-sidebar.saas-sidebar {
        width: 80px;
    }
    
    #saas-sidebar.saas-sidebar .menu-text {
        display: none;
    }
    
    #saas-sidebar.saas-sidebar .toggle-btn {
        text-align: center;
        padding: 10px 0;
    }

    /* 2. Adjust Main Content Area */
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
    
    /* 3. Tighten up the Topbar */
    .saas-topbar {
        padding: 0 15px; /* Less padding on small screens */
    }
    
    .brand-logo {
        font-size: 18px; /* Slightly smaller logo */
    }
    
    .topbar-actions {
        gap: 10px; /* Bring header links closer */
    }

    /* 4. Make Tables Scrollable (CRITICAL FOR MOBILE) */
    .card-body, #deploy-settings, #pasteContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .deployment-table, .list-table {
        min-width: 600px; /* Forces table to stay wide enough to read, enabling the scroll */
    }

    /* 5. Stack the Form Inputs gracefully */
    .mode-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .col-md-4, .col-md-8, .col-md-12 {
        width: 100%;
        margin-bottom: 15px;
    }

    /* 6. Clean up Action Buttons */
    .action-buttons { 
        flex-direction: column; 
    }
}

/* Add this to your existing @media (max-width: 768px) block at the bottom */
@media (max-width: 992px) {
    /* Stack into 2 columns on tablets */
    .project-stats .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    /* Stack into 1 column on phones */
    .project-stats .row {
        grid-template-columns: 1fr !important;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center !important;
    }
}