:root {
  --bs-primary: #6366f1; /* Indigo-500 */
  --bs-primary-rgb: 99, 102, 241;
  --bs-dark: #111827; /* Gray-900 */
  --bs-dark-rgb: 17, 24, 39;
  --bs-body-bg: #0f172a; /* Slate-900 */
  --bs-body-color: #d1d5db; /* Gray-300 */
  --card-bg-rgba: 31, 41, 55, 0.6; /* Gray-800 with opacity */
  --card-bg: rgba(var(--card-bg-rgba));
  --card-border-rgba: 255, 255, 255, 0.1;
  --card-border: rgba(var(--card-border-rgba));
  --glass-blur: 12px;
  --gradient-start: #1e1b4b; /* Indigo-950 */
  --gradient-mid: #172554; /* Blue-950 */
  --gradient-end: #0f172a; /* Slate-900 */
  --sidebar-bg: rgba(17, 24, 39, 0.7); /* Gray-900 with opacity */
  --sidebar-width: 260px;
}

/* --- GENERAL & TYPOGRAPHY --- */
body {
  padding-top: 56px; /* For fixed-top navbar */
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.app-body {
    padding-top: 56px;
    overflow-y: hidden; /* Prevent scrolling on body, app-main-content will scroll */
}

main {
  flex: 1;
}

.btn {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #4f46e5;
  --bs-btn-hover-border-color: #4f46e5;
  --bs-btn-active-bg: #4338ca;
  --bs-btn-active-border-color: #4338ca;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb), 0.5);
}

.btn-outline-light {
    font-weight: 600;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background-color: #fff;
    color: var(--bs-dark);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.btn-google {
    color: #1f2937;
    background-color: #ffffff;
    border-color: #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.btn-google:hover {
    background-color: #f9fafb;
    border-color: #ced4da;
    color: #111827;
}
.btn-google .bi-google { color: #DB4437; }

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--bs-primary); }

/* --- NAVIGATION & HEADER --- */
.navbar.fixed-top {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--card-border);
}
.navbar-nav .dropdown .profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}
.navbar-nav .dropdown-toggle::after { display: none; }
.navbar-nav .btn-primary { padding: 0.5rem 1rem; font-size: 0.9rem; }
.navbar-nav .dropdown-item i { width: 20px; text-align: center; }
.navbar-nav .nav-link { font-weight: 500; transition: color 0.2s; }
.navbar-nav .nav-link:hover { color: #fff; }
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 700;
}

/* --- LANDING PAGE --- */
.hero { padding: 8rem 0; position: relative; overflow: hidden; }
.hero-gradient { background: radial-gradient(circle, var(--gradient-mid) 0%, var(--bs-body-bg) 70%); }
.hero > * { position: relative; z-index: 1; }
.hero .display-3 { font-weight: 800; letter-spacing: -1px; }

/* Aurora Glow Effect */
.page-header {
    position: relative;
    z-index: 1;
}
.aurora-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.15) 0%, rgba(var(--bs-primary-rgb), 0) 60%);
    transform: translate(-50%, -50%);
    animation: aurora-spin 20s linear infinite;
    z-index: -1;
}
@keyframes aurora-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.card, .profile-page-card, .admin-stat-card, .accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Interactive Glow Border */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(var(--bs-primary-rgb), 0.3), transparent 40%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon { font-size: 2.5rem; color: var(--bs-primary); }
.pricing-card.popular-plan {
    border-width: 2px;
    border-color: var(--bs-primary);
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(var(--bs-primary-rgb), 0.3);
}
.popular-badge { font-weight: 600; padding: 0.4em 0.8em; }

/* --- APP PAGE LAYOUT --- */
.app-layout { display: flex; height: calc(100vh - 56px); }
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.app-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--card-border);
    padding: 1rem 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1040;
}
.app-sidebar .sidebar-heading {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}
.app-sidebar .nav-link {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.5rem;
    color: var(--bs-body-color); font-weight: 500; border-left: 4px solid transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}
.app-sidebar .nav-link i { font-size: 1.2rem; width: 20px; flex-shrink: 0; text-align: center; }
.app-sidebar .nav-link .lock-icon { margin-left: auto; color: #6b7280; display: none; }
.app-sidebar .nav-link:hover { background-color: rgba(var(--bs-primary-rgb), 0.1); color: #fff; }
.app-sidebar .nav-link.active {
    color: #fff; font-weight: 600; border-left-color: var(--bs-primary);
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.2) 0%, rgba(var(--bs-primary-rgb), 0.0) 100%);
}
.app-sidebar .nav-link.disabled { color: #6b7280; cursor: not-allowed; }
.app-sidebar .nav-link.disabled:hover { color: #6b7280; background: transparent; }
.badge.pro-badge { background-color: rgba(var(--bs-primary-rgb), 0.8); }
.badge.enterprise-badge {
    font-size: 0.65rem; padding: 0.2em 0.5em; background-color: #16a34a;
    color: #fff; border-radius: 4px; font-weight: bold;
}
.app-main-content {
    flex-grow: 1; padding: 2rem; overflow-y: auto;
    display: flex; flex-direction: column;
}
.app-content-header {
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}
.app-content-header h2 { font-weight: 700; }

.tool-panes-container { position: relative; flex-grow: 1; }
.app-main-content .tab-pane {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    opacity: 0; transform: translateY(10px); display: none;
    position: absolute; width: 100%;
}
.app-main-content .tab-pane.active { display: block; }
.app-main-content .tab-pane.show { opacity: 1; transform: translateY(0); }
.app-card { max-width: 1000px; margin: 0 auto; width: 100%; }
.app-card.unified-card { display: flex; flex-direction: column; height: 100%; }
.app-card.unified-card .card-body { padding: 2rem; }
.tool-columns {
    display: flex; gap: 2rem;
}
.tool-input-col { flex: 3; min-width: 0; }
.tool-example-col {
    flex: 2; min-width: 0; background-color: var(--bs-body-bg); padding: 1.5rem;
    border-radius: 0.5rem; border: 1px solid var(--card-border);
}
.tool-example-col h6 {
    font-weight: 600; color: var(--bs-primary); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.tool-example-col blockquote {
    font-size: 0.9rem; color: #9ca3af; border-left: 3px solid var(--bs-primary);
    padding-left: 1rem; margin: 0; font-style: italic;
}

/* --- RESULTS AREA --- */
.app-card.unified-card .results-area-wrapper {
    display: flex; flex-direction: column; background-color: rgba(var(--bs-dark-rgb), 0.5);
    border-top: 1px solid var(--card-border);
    border-radius: 0 0 0.75rem 0.75rem; padding: 0; flex-grow: 1;
    min-height: 0;
}
.results-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 2rem; border-bottom: 1px solid var(--card-border); flex-shrink: 0;
}
.results-header.d-none { display: none !important; }
.results-header h5 { color: #9ca3af; font-size: 1rem; font-weight: 500; }
.results-actions { display: flex; gap: 0.75rem; }
.results-actions .btn { font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.8rem; }
.results-actions .btn .bi { vertical-align: text-bottom; }
.results-area { padding: 2rem; flex-grow: 1; overflow-y: auto; }
.results-area .result-card {
    background-color: transparent; border: none; box-shadow: none;
    backdrop-filter: none; animation: card-fade-in 0.5s ease-out forwards; opacity: 0;
}
.results-area .result-card:not(:last-child) { margin-bottom: 1.5rem; }
.results-area .result-card .card-body {
    position: relative; padding: 1.5rem; background: var(--card-bg);
    border-radius: 0.5rem; border: 1px solid var(--card-border);
}
.source-list a { color: var(--bs-body-color); text-decoration: none; }
.source-list a:hover { color: var(--bs-primary); }

/* --- SHARED COMPONENTS --- */
.form-control, .form-select {
    background-color: #1f2937; border-color: #4b5563; color: var(--bs-body-color);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-control:focus, .form-select:focus {
    background-color: #1f2937; color: var(--bs-body-color); border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25), 0 0 10px rgba(var(--bs-primary-rgb), 0.2);
}
.form-control::placeholder { color: #9ca3af; }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label, .form-floating > .form-select ~ label { color: #9ca3af; }
.form-floating > .form-control:focus ~ label { color: var(--bs-primary); }
.accordion-button { background-color: #1f2937; color: #e5e7eb; font-weight: 600; }
.accordion-button:not(.collapsed) { background-color: rgba(var(--bs-primary-rgb), 0.3); color: #fff; }
.accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25); }
.accordion-item { background-color: transparent; border-color: var(--card-border); }
.accordion-body { background-color: #1f2937; }
.timeline { list-style-type: none; position: relative; padding-left: 1.5rem; }
.timeline:before {
    content: ' '; background: var(--card-border); display: inline-block;
    position: absolute; left: 10px; width: 2px; height: 100%; z-index: 0;
}
.timeline-item { margin: 20px 0; position: relative; }
.timeline-item:before {
    content: ' '; background: var(--bs-primary); border: 2px solid var(--bs-dark);
    display: inline-block; position: absolute; border-radius: 50%;
    left: -20px; width: 12px; height: 12px; z-index: 1;
}
.site-footer { border-top: 1px solid var(--card-border); }

/* --- ADMIN & PROFILE PAGES --- */
.admin-login-body {
    display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px;
    background: radial-gradient(circle, var(--gradient-mid) 0%, var(--bs-body-bg) 70%);
}
.admin-login-card { max-width: 420px; margin: auto; }
.profile-page-card { border-radius: 0.75rem; }
.profile-pic-lg { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card-border); }
.admin-stat-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.5rem; border-radius: 0.75rem;
}
.admin-stat-card .stat-icon {
    font-size: 1.75rem; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background-color: var(--bs-primary);
}
.admin-stat-card .stat-icon.revenue { background-color: #16a34a; }
.admin-stat-card .stat-icon.subs { background-color: #0ea5e9; }
.admin-stat-card .stat-icon.pro { background-color: #f97316; }
.admin-stat-card .stat-icon.generations { background-color: #8b5cf6; }
.admin-stat-card .stat-icon.tool { background-color: #ec4899; }
.admin-stat-card .stat-title { font-size: 0.9rem; color: #9ca3af; }
.admin-stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }
.table > :not(caption) > * > * { background-color: transparent; }
.table-hover > tbody > tr:hover > * { color: var(--bs-body-color); background-color: rgba(var(--bs-primary-rgb), 0.1); }
.table .profile-pic { width: 40px; height: 40px; border-radius: 50%; }
.table td { vertical-align: middle; }
.table td > div { display: inline-block; vertical-align: middle; }
.user-status-banned {
    color: #fecaca;
    background-color: #991b1b;
}

/* --- CHAT WIDGET REDESIGN --- */
@keyframes chat-bubble-breathing {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(var(--bs-primary-rgb), 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2); }
}
@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
#chat-widget-container { position: fixed; bottom: 20px; right: 20px; z-index: 1050; }
#chat-bubble {
    width: 60px; height: 60px; background-color: var(--bs-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; cursor: pointer;
    transition: all 0.3s ease;
    animation: chat-bubble-breathing 2.5s infinite ease-in-out;
}
#chat-bubble .bi { transition: transform 0.3s ease; }
#chat-bubble.chat-bubble-open .bi-chat-dots-fill { transform: rotate(180deg); }
#chat-bubble.chat-bubble-open .bi-chat-dots-fill::before { content: "\f61a"; /* Bootstrap icon for 'x' */ }
#chat-window {
    width: 350px; height: 500px; background-color: var(--bs-dark);
    border: 1px solid var(--card-border); border-radius: 1rem;
    position: absolute; bottom: 80px; right: 0; display: flex; flex-direction: column;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transform-origin: bottom right;
    animation: chat-window-pop-in 0.3s ease-out;
}
.chat-header {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem;
    background-color: #1f2937; border-bottom: 1px solid var(--card-border);
    border-radius: 1rem 1rem 0 0;
}
.chat-status-indicator {
    width: 10px; height: 10px; background-color: #22c55e;
    border-radius: 50%; border: 2px solid var(--bs-dark);
    animation: status-pulse 2s infinite;
}
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.chat-input-area { padding: 1rem; border-top: 1px solid var(--card-border); }
.chat-input-area form { display: flex; }
.chat-input-area .form-control:focus { box-shadow: 0 0 10px rgba(var(--bs-primary-rgb), 0.2); }
.message { margin-bottom: 1rem; max-width: 85%; }
.message-bubble {
    padding: 0.6rem 1rem;
    position: relative;
    word-wrap: break-word;
}
.message-sender { font-size: 0.75rem; font-weight: 600; margin-bottom: 0.25rem; color: #9ca3af; }
.message-time { font-size: 0.7rem; color: #9ca3af; text-align: right; margin-top: 0.25rem; }
.user-message { align-self: flex-end; }
.user-message .message-bubble {
    background-color: var(--bs-primary); color: white;
    border-radius: 1.2rem 1.2rem 0.25rem 1.2rem;
}
.admin-message { align-self: flex-start; }
.admin-message .message-bubble {
    background-color: #374151; color: #e5e7eb;
    border-radius: 1.2rem 1.2rem 1.2rem 0.25rem;
}
/* Message bubble tails */
.message-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}
.user-message .message-bubble::after {
    right: -8px;
    border-left-color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
}
.admin-message .message-bubble::after {
    left: -8px;
    border-right-color: #374151;
    border-bottom-color: #374151;
}
#chat-unread-indicator { top: 0; right: 0; }

/* --- OTHER PAGES (AFFILIATE, COMMUNITY, ADS) --- */
.affiliate-benefit-card { padding: 2rem; background: var(--card-bg); border-radius: 0.75rem; height: 100%; }
.affiliate-benefit-card i { font-size: 3rem; color: var(--bs-primary); margin-bottom: 1rem; display: block; }
.question-card { cursor: pointer; }
.upvote-btn { display: flex; flex-direction: column; align-items: center; padding: 0.5rem; }
.upvote-btn .upvote-count { font-weight: bold; font-size: 1rem; }
.upvote-btn.active, .upvote-btn.active:hover { background-color: var(--bs-primary); color: white; border-color: var(--bs-primary); }
.ad-public-card, .ad-admin-card { overflow: hidden; }
.ad-public-card img, .ad-admin-card img { height: 200px; object-fit: cover; }
.ad-raw-html-container img { max-width: 100%; height: auto; }

/* --- ANIMATIONS & LOADERS --- */
@keyframes card-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes chat-window-pop-in {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.skeleton-loader .skeleton-line {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite linear;
    border-radius: 0.25rem; height: 1em; margin-bottom: 0.75rem;
}
.skeleton-loader .skeleton-line.title { height: 1.5em; width: 40%; margin-bottom: 1.5rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Map Styling */
.map-responsive-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.map-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed; top: 56px; left: 0; bottom: 0;
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    .app-sidebar.show { transform: translateX(0); }
    .tool-columns { flex-direction: column; }
    .table-responsive {
        border: 1px solid var(--card-border);
        border-radius: .5rem;
    }
}

@media (max-width: 767.98px) {
    .app-main-content { padding: 1.5rem; }
    .hero { padding: 4rem 0; }
    .hero .display-3 { font-size: 2.5rem; }
    
    /* Responsive Chat Widget */
    #chat-widget-container {
        right: 15px;
        bottom: 15px;
    }
    #chat-bubble {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    #chat-window {
        width: calc(100vw - 30px); /* Full width with margins */
        max-width: 380px;
        height: 70vh; /* Use viewport height */
        max-height: 550px; /* But not too tall */
        right: 0;
        bottom: 75px; /* Position above the bubble */
    }
}

/* Cookie banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 1060;
    border-top: 1px solid var(--card-border);
    color: #e5e7eb;
}
.cookie-consent-banner .btn-link { color: #9ca3af; }
.cookie-consent-banner .btn-link:hover { color: #fff; }

@media (max-width: 576px) {
    .cookie-consent-banner .container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}


/* Feature Card Badges */
.feature-card .card-body {
    position: relative;
}

.pro-badge-feature, .enterprise-badge-feature {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    line-height: 1;
}

.pro-badge-feature {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
}

.enterprise-badge-feature {
    background-color: rgba(22, 163, 74, 0.2); /* bg-success with opacity */
    color: #16a34a; /* text-success */
}

/* Admin Dashboard Chart */
.admin-chart-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.chart-grid {
    position: relative;
    height: 250px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 0 1rem;
}

.chart-bar {
    width: 30px;
    background-color: rgba(var(--bs-primary-rgb), 0.5);
    border-top: 2px solid var(--bs-primary);
    position: relative;
    transition: background-color 0.3s ease;
    animation: bar-grow 1s ease-out forwards;
    transform-origin: bottom;
}
.chart-bar:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.8);
}

@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.chart-bar .tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bs-dark);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.chart-bar:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.chart-labels {
    display: flex;
    justify-content: space-around;
    padding: 0 1rem;
    margin-top: 0.5rem;
}
.chart-labels span {
    width: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* --- NEW STYLES --- */

/* Body Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(var(--bs-primary-rgb), 0.05), transparent 40%);
    animation: subtle-pulse 15s infinite alternate ease-in-out;
    z-index: -1;
    pointer-events: none;
}

@keyframes subtle-pulse {
    from { transform: scale(1); opacity: 0.5; }
    to { transform: scale(1.5); opacity: 1; }
}


/* Enhanced Button Shine Effect */
.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}
.btn:hover::after {
    animation: ripple 1s ease-out;
}
@keyframes ripple {
    0% { transform: scale(0, 0) translate(-50%, -50%); opacity: 1; }
    100% { transform: scale(150, 150) translate(-50%, -50%); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bs-dark);
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
    border: 2px solid var(--bs-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Modal Styling */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.modal-header {
    border-bottom-color: var(--card-border);
}
.modal-footer {
    border-top-color: var(--card-border);
}

/* Enhanced Table Styles */
.table td, .table th {
    border-color: var(--card-border);
}
.table-hover > tbody > tr {
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.table-hover > tbody > tr:hover {
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
}

/* App: Social Platform Checkboxes */
.platform-selection-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.platform-selection-group .form-check {
    padding-left: 0;
}
.platform-selection-group .form-check-input {
    display: none;
}
.platform-selection-group .form-check-label {
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}
.platform-selection-group .form-check-input:checked + .form-check-label {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.3);
}
.platform-selection-group .form-check-label:hover {
    border-color: var(--bs-primary);
    color: #fff;
}
