.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.page-header h1 {
    font-size: 2rem; /* Reduced font size */
}
.page-header .lead {
    font-size: 1rem; /* Reduced font size */
    color: white;
}

/* Header Styles */
.navbar {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1); /* Light border */
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-box {
    border: 2px solid #262626;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-size: 200% auto;
    animation: gradient-animation 1.5s linear infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.btn-instagram:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary:disabled {
    opacity: 0.5;
}
.table-responsive {
    max-width: 100%;
}
.card {
    border: 1px solid #dbdbdb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #ffffff; /* Solid white background */
    color: #212529; /* Ensure text inside cards is dark */
}
.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.table-rounded {
    border-radius: 0.5rem;
    overflow: hidden;
}
.table-dense td, .table-dense th {
    padding: 0.5rem;
}
.highlight-you {
    background-color: #ffe0e6; /* Light pink */
    border: 1px solid #ffc2d1;
    border-radius: 0.5rem;
    padding: 0.2rem 0.6rem;
}
.highlight-sanity {
    background-color: #e0f7fa; /* Light Blue */
    border: 1px solid #b2ebf2;
    border-radius: 0.5rem;
    padding: 0.2rem 0.6rem;
    color: #00796b; /* Darker teal text for contrast */
}
.highlight-subtitle {
    background-color: #e0f7fa; /* Light Blue */
    border: 1px solid #b2ebf2;
    border-radius: 0.5rem;
    padding: 0.1rem 0.5rem;
}
.fancy-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.75rem; /* Larger */
    color: #262626; 
}
h1.display-4 {
    font-size: 2.25rem; /* Smaller */
}
.running-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #262626;
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
}

.progress-meter {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-meter-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-size: 200% 100%;
    animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Google Sign-in Button */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1.5px solid #dfe1e5;
    border-radius: 20px;
    background-color: #ffffff;
    color: #3c4043;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.google-signin-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.google-signin-btn .google-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Google Sign-out Button */
.btn-google-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #dfe1e5;
    border-radius: 20px;
    background-color: #f8f9fa; /* Light grey background */
    color: #3c4043;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-google-signout:hover {
    background-color: #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google-signout .logout-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Platform Status Page Styles */
.platform-card .card-header {
    padding: 0.25rem 0.25rem; /* Reduced padding */
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.platform-card .card-body {
    padding: 1rem; /* Reduced padding */
}

.platform-card .bi-instagram {
    color: white;
}

.stat-card {
    border: 1px solid #e9ecef;
}

.distribution-chart .bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.distribution-chart .bar-label {
    width: 100px;
    font-size: 0.85rem;
    color: #6c757d;
}

.distribution-chart .progress {
    flex-grow: 1;
    height: 20px;
}

.progress-bar {
    width: 0;
    animation: animate-progress 1s ease-out forwards;
}

.bg-score-low { background-color: #198754; } /* Green */
.bg-score-mid { background-color: #ffc107; } /* Yellow */
.bg-score-high { background-color: #dc3545; } /* Red */

@keyframes animate-progress {
    from { width: 0; }
}

/* Platform Icon Styles */
.platform-icon {
    width: 32px;
    height: 32px;
}

/* Connect Link Styles */
.connect-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Connection Status Styles */
.connection-status {
    font-size: 1rem; /* Reduced font size */
    color: #343a40;
}

/* Responsive adjustments for platform status page */
@media (max-width: 768px) {
    .platform-card .border-end {
        border-right: none !important;
    }

    .platform-card .ps-lg-4 {
        padding-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .fancy-subtitle {
        font-size: 1.5rem;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    .running-text {
        font-size: 1.2rem;
    }

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

    .stat-card-compact .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .scanning-text {
        display: none;
    }
}

/* Compact Stat Card */
.stat-card-compact {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

.stat-card-compact .stat-value {
    font-size: 2rem;
    font-weight: 600;
}

.stat-card-compact .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Threshold Text Styles */
.threshold-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.flash-success {
    animation: flash-animation 1s ease;
}

@keyframes flash-animation {

    0% { background-color: #d1e7dd; } /* Light green */

    100% { background-color: #f8f9fa; }

}



.connected-indicator {

    width: 10px;

    height: 10px;

    background-color: #28a745;

    border-radius: 50%;

    margin-right: 10px;

    animation: pulse-green 2s infinite;

}



@keyframes pulse-green {

    0% {

        transform: scale(1);

        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);

    }

    70% {

        transform: scale(1);

        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);

    }

    100% {

        transform: scale(1);

        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);

    }

}
