/* Custom styles for the ad platform */

/* Global Animation Variables */
:root {
    --animation-speed-slow: 1.2s;
    --animation-speed-normal: 0.8s;
    --animation-speed-fast: 0.5s;
    --animation-speed-very-fast: 0.3s;
    --animation-curve-bounce: cubic-bezier(0.37, 0, 0.63, 1.4);
    --animation-curve-smooth: cubic-bezier(0.645, 0.045, 0.355, 1);
    --animation-curve-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-curve-gentle: cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Dark Theme Colors */
    --ad-card-border: rgba(255, 255, 255, 0.05);
    --ad-card-shadow: rgba(0, 0, 0, 0.3);
    --ad-status-approved: #2fbe4f;
    --ad-status-pending: #ffca2c;
    --ad-status-inactive: #8c98a4;
    --stat-pill-bg: #1e2a3a;
    --stat-pill-border: rgba(255, 255, 255, 0.05);

    /* New Card Colors - Dark Theme */
    --card-hover-shadow: rgba(0, 0, 0, 0.4);
    --section-title-color: #ffffff;
    --stat-card-bg: rgba(18, 25, 32, 0.8);
    --stat-value-color-primary: #5c9eff;
    --stat-value-color-success: #6ee7b7;
    --stat-value-color-info: #93c5fd;
    --stat-value-color-warning: #fcd34d;
}

body {
    background-color: #121920;
    color: #e9ecef;
}

/* Global Animation Classes */
.fade-in {
    animation: fadeIn var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.slide-up {
    animation: slideUp var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.slide-in-right {
    animation: slideInRight var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.slide-in-left {
    animation: slideInLeft var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.scale-in {
    animation: scaleIn var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

.bounce-in {
    animation: bounceIn var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

.pulse {
    animation: pulse var(--animation-speed-slow) var(--animation-curve-gentle) infinite;
}

/* Staggered animations for lists */
.stagger-fade-in > * {
    opacity: 0;
    animation: fadeIn var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade-in > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-fade-in > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-fade-in > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-fade-in > *:nth-child(8) { animation-delay: 0.8s; }

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Ad card styling with enhanced animations */
.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Modern stat cards styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(145deg, #1e2a3a, #121920);
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--animation-curve-spring);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e9ecef;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s var(--animation-curve-bounce), color 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 0.9);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.primary-gradient {
    background-image: linear-gradient(135deg, #3a8ffe, #0d6efd);
}

.success-gradient {
    background-image: linear-gradient(135deg, #2dce89, #28a745);
}

.info-gradient {
    background-image: linear-gradient(135deg, #11cdef, #0dcaf0);
}

.warning-gradient {
    background-image: linear-gradient(135deg, #fb6340, #fd7e14);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* For dark theme compatibility */
body.dark-theme .stat-card {
    background-color: var(--stat-card-bg);
    border-color: var(--ad-card-border);
}

body.dark-theme .stat-icon {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .stat-card:hover .stat-icon {
    color: var(--bs-info);
}

body.dark-theme .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .stat-card:hover .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Legacy stat pill styles for backward compatibility */
.stat-pill {
    background-color: #ffffff;
    border: 1px solid var(--bs-primary);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-pill .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-primary);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
}

.stat-pill .stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-dark);
    margin-top: 2px;
}

/* Ad manage card styles - enhanced styling with dark theme */
.card.ad-manage-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: linear-gradient(145deg, #1e2a3a, #121920) !important;
    color: #e9ecef;
}

.card.ad-manage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Ad status banner */
.ad-banner {
    padding: 8px 15px;
    color: white;
    text-align: right;
}

.ad-status-badge {
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Ad title section */
.ad-title-bar {
    padding: 15px 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(18, 25, 32, 0.9) !important;
    color: #e9ecef;
}

.ad-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.ad-date {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Ad image */
.ad-preview-image {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-preview-placeholder {
    width: 100%;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 42, 58, 0.8);
    color: #e9ecef;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Stats section */
.ad-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: rgba(18, 25, 32, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e9ecef;
}

.ad-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.ad-stat:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.ad-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Actions section */
.ad-actions {
    padding: 15px;
    background-color: rgba(18, 25, 32, 0.9) !important;
    color: #e9ecef;
}

.ad-action-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-action {
    flex: 1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-radius: 5px;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-view {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.btn-view:hover {
    background-color: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

.btn-analytics {
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.btn-analytics:hover {
    background-color: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.btn-edit {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.btn-edit:hover {
    background-color: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.btn-embed {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-embed:hover {
    background-color: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}
.ad-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    overflow: hidden;
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-spring), 
                box-shadow var(--animation-speed-very-fast) var(--animation-curve-gentle),
                border-color var(--animation-speed-very-fast) ease;
    position: relative;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.ad-image-container {
    width: 328px;
    height: 85px;
    overflow: hidden;
    background-color: var(--bs-secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.ad-card:hover .ad-image-container {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.ad-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--bs-primary-rgb), 0.1) 0%, 
        rgba(var(--bs-info-rgb), 0.1) 100%);
    opacity: 0;
    transition: opacity var(--animation-speed-very-fast) ease;
    z-index: 1;
}

.ad-card:hover .ad-image-container::before {
    opacity: 1;
}

.ad-image {
    width: 328px;
    height: 85px;
    object-fit: cover;
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.ad-card:hover .ad-image {
    transform: scale(1.05);
}

.ad-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-bounce),
                box-shadow var(--animation-speed-very-fast) var(--animation-curve-gentle);
    animation: bounceIn var(--animation-speed-fast) var(--animation-curve-bounce) forwards;
}

.ad-card:hover .ad-status {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ad-status-pending {
    background-color: var(--bs-warning);
    color: var(--bs-dark);
    position: relative;
    overflow: hidden;
}

.ad-status-pending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.ad-status-approved {
    background-color: var(--bs-success);
    color: var(--bs-white);
}

.ad-status-approved::after {
    content: '✓';
    margin-left: 2px;
    animation: pulse var(--animation-speed-slow) infinite;
    display: inline-block;
}

.ad-status-rejected {
    background-color: var(--bs-danger);
    color: var(--bs-white);
}

.ad-status-inactive {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
}

/* Embed code display with enhanced animations */
.embed-code-container {
    position: relative;
    background-color: var(--bs-dark);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
    border-left: 3px solid var(--bs-primary);
    overflow: hidden;
}

.embed-code-container:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.embed-code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    opacity: 0;
    transition: opacity var(--animation-speed-very-fast) ease;
}

.embed-code-container:hover::before {
    opacity: 1;
}

.embed-code {
    color: var(--bs-light);
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    transition: color var(--animation-speed-very-fast) ease;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0.7;
    transition: opacity var(--animation-speed-very-fast) ease,
                transform var(--animation-speed-very-fast) var(--animation-curve-bounce);
}

.embed-code-container:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    transform: scale(1.1);
}

/* Ad preview */
#image-preview {
    max-width: 328px;
    height: 85px;
    border: 1px solid var(--bs-border-color);
    margin-top: 0.5rem;
    display: none;
}

/* Ad embed styling with enhanced animations */
.ad-embed-container {
    width: 328px;
    height: 85px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.ad-embed-container:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ad-embed-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    opacity: 0;
    transition: opacity var(--animation-speed-very-fast) ease;
}

.ad-embed-container:hover::after {
    opacity: 1;
}

.ad-embed-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1030px;
    animation: fadeIn var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.ad-embed-item {
    width: 328px;
    height: 85px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all var(--animation-speed-very-fast) var(--animation-curve-spring);
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

.ad-embed-item:nth-child(1) { animation-delay: 0.1s; }
.ad-embed-item:nth-child(2) { animation-delay: 0.2s; }
.ad-embed-item:nth-child(3) { animation-delay: 0.3s; }

.ad-embed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-embed-item img {
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.ad-embed-item:hover img {
    transform: scale(1.03);
}

/* Dashboard chart bars styling */
.stats-graph {
    margin: 15px 0;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 5px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.chart-bar {
    width: 12%;
    background: linear-gradient(to top, var(--bs-primary), var(--bs-info));
    border-radius: 6px 6px 0 0;
    transition: height 0.5s var(--animation-curve-spring);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slideUp var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

.chart-bar:nth-child(1) { animation-delay: 100ms; }
.chart-bar:nth-child(2) { animation-delay: 150ms; }
.chart-bar:nth-child(3) { animation-delay: 200ms; }
.chart-bar:nth-child(4) { animation-delay: 250ms; }
.chart-bar:nth-child(5) { animation-delay: 300ms; }
.chart-bar:nth-child(6) { animation-delay: 350ms; }
.chart-bar:nth-child(7) { animation-delay: 400ms; }

.chart-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px 3px 0 0;
}

/* Placeholder styling */
.ad-placeholder {
    background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 328px;
    height: 85px;
    border-radius: 4px;
    font-weight: 500;
    color: var(--bs-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

.ad-placeholder:nth-child(1) { animation-delay: 0.1s; }
.ad-placeholder:nth-child(2) { animation-delay: 0.2s; }
.ad-placeholder:nth-child(3) { animation-delay: 0.3s; }

.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.5) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2.5s infinite;
}

.ad-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
}

/* Dashboard stats with enhanced animations */
.stat-card {
    border-left: 4px solid var(--bs-primary);
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-spring),
                box-shadow var(--animation-speed-very-fast) var(--animation-curve-gentle);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #ffffff, #f1f5ff);
}

.stat-card:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s ease-out;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.3;
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-bounce),
                opacity var(--animation-speed-very-fast) ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
    opacity: 0.5;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    transition: color var(--animation-speed-very-fast) ease;
}

.stat-card:hover .stat-value {
    color: var(--bs-primary);
}

/* Admin table styling */
.table-ads img {
    max-width: 164px;
    max-height: 42px;
}

/* Authentication Forms Styling */
.auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all var(--animation-speed-normal) var(--animation-curve-gentle);
    animation: scaleIn var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-card .card-header {
    position: relative;
    background: linear-gradient(145deg, var(--bs-primary), var(--bs-info));
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: none;
    overflow: hidden;
}

.auth-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    z-index: 1;
}

.auth-card .card-header h3 {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-card .card-body {
    padding: 2.5rem 2rem;
}

.auth-card .form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
    border: 2px solid var(--bs-secondary-bg);
}

.auth-card .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    transform: translateY(-2px);
}

.auth-card .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    animation: pulse var(--animation-speed-fast) var(--animation-curve-bounce);
}

.auth-card .btn-primary {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(145deg, var(--bs-primary), var(--bs-info));
    border: none;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-spring);
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.4);
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

.auth-card .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    transition: all 0.8s ease;
}

.auth-card .btn-primary:active::after {
    opacity: 1;
    transform: scale(20);
    transition: all 0s;
}

.auth-card .card-footer {
    background: transparent;
    border-top: none;
    padding: 1.5rem 2rem;
}

.auth-card .card-footer a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--animation-speed-very-fast) ease;
    position: relative;
}

.auth-card .card-footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-spring);
}

.auth-card .card-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.form-floating label {
    padding: 0.75rem 1.25rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.8) translateY(-0.5rem) translateX(0.25rem);
    color: var(--bs-primary);
    opacity: 1;
}

/* Alerts and messages with enhanced animations */
.alert {
    border-radius: 0.375rem;
    animation: scaleIn var(--animation-speed-fast) var(--animation-curve-bounce) forwards;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.alert-success {
    border-left: 4px solid var(--bs-success);
}

.alert-danger {
    border-left: 4px solid var(--bs-danger);
}

.alert-warning {
    border-left: 4px solid var(--bs-warning);
}

.alert-info {
    border-left: 4px solid var(--bs-info);
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn:active {
    transform: scale(0.97);
}

/* Badge animations */
.badge {
    transition: all var(--animation-speed-very-fast) ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Form controls animations */
.form-control:focus {
    animation: pulse 1s var(--animation-curve-gentle);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--bs-secondary);
    opacity: 0.7;
}

.empty-state h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state .lead {
    margin-bottom: 1.5rem;
    color: var(--bs-secondary);
}

/* Chart animations */
.chart-container {
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-body-bg);
    z-index: 1;
    animation: slideUp var(--animation-speed-normal) var(--animation-curve-gentle) forwards;
}

/* Nav tabs animations */
.nav-tabs .nav-link {
    transition: all var(--animation-speed-very-fast) var(--animation-curve-smooth);
    position: relative;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    transform: translateX(-50%);
    transition: width var(--animation-speed-very-fast) var(--animation-curve-spring);
}

.nav-tabs .nav-link:hover::after {
    width: 80%;
}

.nav-tabs .nav-link.active::after {
    width: 100%;
}

/* Table animations */
.table-hover tbody tr {
    transition: all var(--animation-speed-very-fast) ease;
}

.table-hover tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1;
    position: relative;
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform var(--animation-speed-normal) var(--animation-curve-bounce);
}

.modal.fade .modal-content {
    animation: scaleIn var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
}

/* Card animations */
.card {
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
    background: linear-gradient(145deg, #1e2a3a, #121920);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
    color: #e9ecef;
}

.card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    border-color: rgba(13, 110, 253, 0.3);
}

.card-header {
    font-weight: 600;
    background: linear-gradient(145deg, #1a2430, #0f1620);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Loading indicator */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--bs-primary);
    animation: spin 1s linear infinite;
}

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

/* Utility classes with enhanced animations */
.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.shadow-hover {
    transition: box-shadow var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hover-scale {
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-spring),
                box-shadow var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/*** Enhanced Styling for Modern Design ***/

/* Modern Hero Section */
.hero-modern {
    background: radial-gradient(circle at 30% 107%, var(--bs-primary) 0%, var(--bs-dark) 90%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E") repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero-modern .container {
    position: relative;
    z-index: 1;
}

/* Dashboard Preview and Enhanced Dashboard */
.dashboard-preview {
    background: linear-gradient(145deg, #1e2a3a, #121920);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
    animation: slideInRight var(--animation-speed-normal) var(--animation-curve-bounce) forwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0);
}

.dashboard-header {
    background: linear-gradient(90deg, var(--bs-dark), var(--bs-primary-rgb), 0.1);
    color: var(--bs-light);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

.dashboard-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-pill {
    background: linear-gradient(145deg, #0d6efd, #0c5dd3);
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    width: 30%;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transition: all var(--animation-speed-very-fast) var(--animation-curve-spring);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stat-pill::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity var(--animation-speed-very-fast) ease;
}

.stat-pill:hover::after {
    opacity: 1;
}

.stat-value {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--bs-light);
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.stat-pill:hover .stat-value {
    transform: scale(1.1);
    color: var(--bs-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    transition: all var(--animation-speed-very-fast) ease;
    font-weight: 600;
}

.stat-pill:hover .stat-label {
    color: var(--bs-light);
}

.stats-graph {
    height: 100px;
    margin: 1rem 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
}

.stats-graph::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding-bottom: 5px;
}

.chart-bar {
    width: 12%;
    background: linear-gradient(to top, var(--bs-primary), var(--bs-info));
    border-radius: 4px 4px 0 0;
    transition: all 0.5s var(--animation-curve-bounce);
    position: relative;
    transform-origin: bottom;
}

.chart-bar:hover {
    transform: scaleY(1.1);
    box-shadow: 0 0 10px rgba(var(--bs-info-rgb), 0.5);
}

/* Dashboard main content enhancements */
.dashboard-container {
    animation: fadeIn var(--animation-speed-normal) var(--animation-curve-smooth) forwards;
}

.dashboard-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
    transition: all var(--animation-speed-very-fast) var(--animation-curve-spring);
    height: 100%;
    position: relative;
    background: linear-gradient(145deg, #1e2a3a, #121920);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(43, 140, 253, 0.2);
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--animation-speed-very-fast) var(--animation-curve-spring);
}

.dashboard-card:hover::after {
    transform: scaleX(1);
}

.dashboard-card .card-header {
    background: linear-gradient(90deg, #2c3e50, #0f4c81);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dashboard-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a2533, #0f1520);
    color: #6585a4;
    border-radius: 0 0 0.75rem 0.75rem;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(145deg, rgba(30, 42, 58, 0.4), rgba(18, 25, 32, 0.4));
    border-radius: 0.5rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    animation: pulse 3s infinite;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state h4 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-table {
    color: #e9ecef;
}

.dashboard-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #8ba2b9;
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-table thead th {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-table td {
    border-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.dashboard-table tbody tr {
    transition: all 0.2s ease;
}

.dashboard-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dashboard-pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.dashboard-pagination .page-item.active .page-link {
    background: linear-gradient(145deg, var(--bs-primary), var(--bs-info));
    border-color: transparent;
}

/* Feature Cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.feature-icon i {
    font-size: 1.5rem;
}

/* How It Works Section */
.how-it-works-image {
    background-color: var(--bs-dark);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specs-badge {
    bottom: -20px;
    right: 20px;
    font-size: 0.85rem;
}

.specs-item {
    color: var(--bs-light);
    margin-bottom: 0.5rem;
}

.steps-timeline {
    position: relative;
    padding-left: 2rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: var(--bs-primary);
    opacity: 0.3;
}

.step-item {
    position: relative;
}

.step-number {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-content {
    margin-left: 0.5rem;
}

/* CTA Section */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
}

/* Error Page Styling */
.error-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bs-danger);
    opacity: 0.8;
    animation: pulse 2s var(--animation-curve-gentle) infinite;
    box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.7);
}

@keyframes errorPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--bs-danger-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0); }
}

code {
    background-color: var(--bs-gray-200);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 85%;
}

.code-block {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
}

.error-container {
    position: relative;
}

.error-status-code {
    font-size: 10rem;
    font-weight: 900;
    color: rgba(var(--bs-danger-rgb), 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    user-select: none;
}

.error-details {
    position: relative;
    z-index: 1;
}

::selection {
  background: #d8b4f8; /* light purple */
  color: black; /* optional: change text color inside selection */
}

/* Firefox specific */
::-moz-selection {
  background: #d8b4f8;
  color: black;
}

.trace-id {
    font-family: monospace;
    background-color: var(--bs-gray-200);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 85%;
}


/* Enhanced Ad Card Styling */
.ad-card.hover-shadow {
    transition: all 0.3s ease;
    border-color: var(--ad-card-border);
}

.ad-card.hover-shadow:hover {
    box-shadow: 0 8px 16px var(--card-hover-shadow) !important;
    transform: translateY(-5px);
    border-color: var(--bs-primary);
}

.section-title {
    color: var(--section-title-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.stat-card {
    border-radius: 8px;
    background-color: var(--stat-card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background-color: #4d4d4d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card .stat-value.text-primary {
    color: var(--stat-value-color-primary) !important;
}

.stat-card .stat-value.text-success {
    color: var(--stat-value-color-success) !important;
}

.stat-card .stat-value.text-info {
    color: var(--stat-value-color-info) !important;
}

.stat-card .stat-value.text-warning {
    color: var(--stat-value-color-warning) !important;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--bs-secondary);
}

/* Debug info */
.alert.alert-warning {
    display: none; /* Hide debug info in production */
}

/* Hexagon Stat Cards - New Design */
.stats-hexagon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-hex-card {
    position: relative;
    height: 110px;
    background: linear-gradient(145deg, #0f161f, #1c2533);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
                inset 0 2px 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s var(--animation-curve-spring);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpGlow 0.6s var(--animation-curve-bounce) forwards;
}

.stat-hex-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0));
    z-index: 2;
}

.hex-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    padding: 12px 5px 5px;
}

.stat-icon-glow {
    position: relative;
    margin-bottom: 5px;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatIcon 3s ease-in-out infinite;
}

.stat-icon-glow i {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px currentColor;
    animation: pulseIcon 2s infinite alternate;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.4);
    opacity: 0.6;
    z-index: 1;
    animation: rotateRing 8s linear infinite;
}

.icon-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    animation: pulseRing 3s ease-out infinite;
}

.stat-value-neo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff, #a0a8b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 3px;
    letter-spacing: 0.5px;
    animation: shimmerText 4s ease infinite;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label-neo {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    animation: fadeInOut 3s ease infinite alternate;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hex-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    box-shadow: 0 0 10px var(--bs-primary);
}

.pulse-glow {
    position: relative;
}

.pulse-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(var(--bs-primary-rgb), 0.15), transparent 70%);
    opacity: 0;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes pulseGlow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes slideUpGlow {
    0% { 
        transform: translateY(30px); 
        opacity: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    70% { 
        transform: translateY(-5px);
    }
    100% { 
        transform: translateY(0);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                    inset 0 2px 10px rgba(255, 255, 255, 0.1);
    }
}

/* Stats Graph Styling */
.stats-graph-container {
    background: linear-gradient(145deg, #121920, #1e2a3a);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stats-graph-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
    padding: 0 5px;
}

.chart-bars {
    position: relative;
    height: 80px;
}

.chart-bar {
    position: relative;
    background: linear-gradient(to top, rgba(13, 110, 253, 0.7), rgba(13, 202, 240, 0.7));
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
    animation: slideUpNeon 0.5s var(--animation-curve-bounce) forwards;
    opacity: 0;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.chart-bar-highlight {
    background: linear-gradient(to top, rgba(13, 202, 240, 0.8), rgba(102, 16, 242, 0.8));
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
    animation: pulseHighlight 2s infinite alternate !important;
    transform-origin: bottom !important;
}

.chart-bar-highlight::after {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(255, 255, 255, 1);
}

@keyframes pulseHighlight {
    0% { transform: scaleY(1); filter: brightness(1); }
    100% { transform: scaleY(1.05); filter: brightness(1.3); }
}

.current-campaign {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.15), rgba(0, 0, 0, 0));
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.current-campaign:hover {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.2), rgba(0, 0, 0, 0));
    transform: translateY(-2px);
}

.campaign-icon-glow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
    animation: pulseIcon 2s infinite alternate, floatIcon 3s infinite ease-in-out;
}

.campaign-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(13, 110, 253, 0.3);
    animation: rotateRing 10s linear infinite;
}

.neo-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.neo-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.neo-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(13, 110, 253, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.neo-glow:hover::after {
    opacity: 1;
}

.progress-value {
    position: relative;
    display: inline-block;
    animation: shimmerText 3s ease infinite;
}

.badge-glow {
    position: relative;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.4);
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

.progress-bar-neo {
    position: relative;
    overflow: hidden;
}

.progress-bar-neo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes slideUpNeon {
    0% {
        transform: scaleY(0);
        opacity: 0;
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
        transform-origin: bottom;
    }
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

@keyframes rotateRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes shimmerText {
    0% { filter: brightness(1); text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3); }
    50% { filter: brightness(1.3); text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5); }
    100% { filter: brightness(1); text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3); }
}

@keyframes fadeInOut {
    0% { opacity: 0.5; }
    100% { opacity: 0.9; }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Animated background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.4;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(0deg, rgba(10, 16, 22, 0.8) 0%, rgba(10, 16, 22, 0.8) 100%), 
                radial-gradient(circle at 50% 0%, rgba(13, 110, 253, 0.1), transparent 70%);
    animation: rotateGradient 30s linear infinite;
    z-index: -1;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230d6efd' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: -2;
    opacity: 0.3;
    animation: floatBg 120s linear infinite;
}

.hero-modern {
    position: relative;
    overflow: hidden;
    background: #050a10;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeSlideUp 1s ease-out forwards;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #a0a8b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.text-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateX(-100%);
    animation: shimmerText 3s infinite;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.7);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-glow:hover::after {
    opacity: 0.5;
}

.dashboard-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1620;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeSlideUp 1s var(--animation-curve-spring) forwards;
    animation-delay: 0.5s;
}

.dashboard-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.6), transparent);
    opacity: 0.7;
}

.dashboard-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-weight: 500;
    color: #e9ecef;
}

.dashboard-body {
    position: relative;
    padding: 15px;
    background: linear-gradient(145deg, #0f161f, #121920);
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.6);
    box-shadow: 0 0 10px 2px rgba(13, 110, 253, 0.2);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: floatParticle 15s ease-in-out infinite, fadeInOut 4s ease-in-out infinite alternate;
}

/* Animated cards */
.hover-card {
    transition: all 0.5s var(--animation-curve-spring);
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.8s var(--animation-curve-spring) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(13, 110, 253, 0.2) !important;
}

.hover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.6), transparent);
    transform: translateX(-100%);
    animation: shimmerLine 3s infinite;
}

.hover-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hover-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hover-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Animated timeline */
.steps-timeline {
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(13, 110, 253, 0.3) 0%,
        rgba(13, 110, 253, 0.8) 50%,
        rgba(13, 110, 253, 0.3) 100%);
    z-index: 0;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.3);
    animation: pulseLine 4s ease-in-out infinite;
}

.step-item {
    position: relative;
    padding-left: 45px;
    z-index: 1;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeSlideRight 0.6s ease-out forwards;
}

.step-item:nth-child(1) {
    animation-delay: 0.2s;
}

.step-item:nth-child(2) {
    animation-delay: 0.4s;
}

.step-item:nth-child(3) {
    animation-delay: 0.6s;
}

.step-item:nth-child(4) {
    animation-delay: 0.8s;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
    animation: pulseGlow 2.5s infinite alternate;
}

/* Enhanced section transitions */
.py-5 {
    position: relative;
    overflow: hidden;
}

.py-5 > .container {
    position: relative;
    z-index: 1;
}

.bg-dark {
    background: linear-gradient(to bottom, #050a10, #0d1620) !important;
}

.bg-dark-subtle {
    background: linear-gradient(to bottom, #0d1620, #121e2c) !important;
}

/* Animated gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
    animation: rotatePulse 10s linear infinite;
    z-index: 0;
}

.bg-gradient-primary > * {
    position: relative;
    z-index: 1;
}

/* Enhanced CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #0954c3, #0dcaf0) !important;
}

.cta-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.5;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatShape 10s ease-in-out infinite alternate;
}

.shape-circle {
    border-radius: 50%;
}

.shape-square {
    border-radius: 4px;
    animation: floatShape 8s ease-in-out infinite alternate, rotateShape 10s linear infinite;
}

.shape-triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    animation: floatShape 12s ease-in-out infinite alternate, rotateShape 15s linear infinite;
}

.shape-plus {
    background: transparent;
    box-shadow: none;
    position: relative;
}

.shape-plus::before,
.shape-plus::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.shape-plus::before {
    width: 100%;
    height: 30%;
    top: 35%;
    left: 0;
}

.shape-plus::after {
    height: 100%;
    width: 30%;
    left: 35%;
    top: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    animation: fadeSlideUp 1s ease-out forwards;
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glowText 2s ease-in-out infinite alternate;
}

.btn-outline-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulseGlow 2s infinite alternate;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

@keyframes floatShape {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 15px); }
}

@keyframes rotateShape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowText {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3); }
}

/* Additional animations */
@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

@keyframes floatParticle {
    0% { transform: translate(0, 0); }
    25% { transform: translate(50px, -50px); }
    50% { transform: translate(100px, 0); }
    75% { transform: translate(50px, 50px); }
    100% { transform: translate(0, 0); }
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideRight {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes shimmerLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulseLine {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes rotatePulse {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ad card header tweaks */
.card-header.bg-light {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Dark theme for specific padding elements */
.dark-padding,
.p-4,
div.p-4,
.card .p-4,
.container .p-4 {
    background-color: rgba(18, 25, 32, 0.9) !important;
    color: #e9ecef;
}

/* Dark theme for common elements that might have white backgrounds */
.bg-white {
    background-color: rgba(18, 25, 32, 0.9) !important;
    color: #e9ecef;
}

.bg-light {
    background-color: rgba(30, 42, 58, 0.8) !important;
    color: #e9ecef;
}

/* Dark theme for all column elements and card containers */
[class*="col-"] {
    background-color: transparent !important; /* Remove any background */
}

.card-container, 
.container [class*="col-"] > .card,
.container [class*="col-"] > div > .card,
.container [class*="col-"] > .ad-card,
.container [class*="col-"] > div > .ad-card,
[class*="col-"] .p-4 {
    background-color: rgba(18, 25, 32, 0.9) !important;
    color: #e9ecef;
}

/* Dark theme for stat cards */
.stat-card .p-4 {
    background-color: rgba(18, 25, 32, 0.9) !important;
    color: #e9ecef;
}

/* Dark theme for specific bootstrap components */
.modal-content, 
.dropdown-menu, 
.popover {
    background-color: #1e2a3a !important;
    color: #e9ecef;
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-header, 
.modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: #e9ecef;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Feature icon animations */
.feature-icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    position: relative;
    z-index: 3;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(var(--bs-primary-rgb), 0.3);
    animation: floatIcon 3s ease-in-out infinite;
}

.icon-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.3);
    --pulse-color: var(--bs-primary);
    z-index: 2;
    opacity: 0.6;
    animation: pulseRing 3s ease-out infinite;
}

.icon-pulse-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--pulse-color, rgba(var(--bs-primary-rgb), 0.2));
    opacity: 0.4;
    animation: pulseRingOuter 3s ease-out infinite;
}

@keyframes pulseRingOuter {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.1; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

/* Dark theme for lists */
.list-group-item {
    background-color: rgba(18, 25, 32, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.05);
    color: #e9ecef;
    transition: all var(--animation-speed-very-fast) var(--animation-curve-gentle);
}

.list-group-item:hover {
    background-color: rgba(30, 42, 58, 0.9) !important;
}

.list-group-flush .list-group-item {
    border-right: 0;
    border-left: 0;
    border-color: rgba(255, 255, 255, 0.05);
}

.list-group-item .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.list-group-item h6 {
    color: #ffffff;
    font-weight: 600;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8e44ad, #6a1b9a);
    border-radius: 10px;
    border: 2px solid #1e1e1e;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #8e44ad #1e1e1e;
}

/* Custom purple navbar */
.custom-purple-navbar {
    background: linear-gradient(135deg, #8e44ad, #6a1b9a); /* Purple gradiant */
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.2);
}

.custom-purple-navbar .navbar-brand {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.custom-purple-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.custom-purple-navbar .nav-link:hover,
.custom-purple-navbar .nav-link:focus {
    color: #ffffff;
    transform: translateY(-2px);
}

.custom-purple-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-purple-navbar .dropdown-menu {
    background-color: #7d3c98;
    border: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.custom-purple-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.custom-purple-navbar .dropdown-item:hover,
.custom-purple-navbar .dropdown-item:focus {
    background-color: #6a1b9a;
    color: #ffffff;
}

/* Dark theme for select dropdowns */
.form-select {
    background-color: #2a2d31;
    color: #fff;
    border-color: #495057;
}

.form-select:focus {
    background-color: #3a3d41;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-select option {
    background-color: #2a2d31;
    color: #fff;
}
