.card-header {
	background: #1DA1F2;
	background: -webkit-linear-gradient(to right, #1DA1F2, #0077B5, #1DA1F2);
	background: linear-gradient(to right, #1DA1F2, #0077B5, #1DA1F2);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-text {
    font-size: calc(20px + 1vw);
    color: white;
    margin: 0;
}

/* Navigation integrated into header */
.nav-brand {
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-brand img {
    filter: none !important;
    opacity: 1;
}

.nav-brand:hover {
    color: #f8f9fa !important;
    text-decoration: none;
}

.home-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.home-btn:hover {
    background: white;
    color: #1DA1F2 !important;
    text-decoration: none;
}

.home-btn-text {
    color: inherit !important;
}

.header-main-text {
    color: white !important;
}

/* Force header elements to stay white */
.card-header * {
    color: white !important;
}

/* Theme squares */
#square-light{
	width:50px;
	height:50px;
	background:#ffffff;
	border: 3px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 10px;
}
#square-dark{
	width:50px;
	height:50px;
	background:#15202B;
	border: 3px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 10px;
}
#square-blue{
	width:50px;
	height:50px;
	background:#1DA1F2;
	border: 3px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 10px;
}
#square-rainbow{
	width:50px;
	height:50px;
	background:linear-gradient(45deg, #1DA1F2, #657786, #1DA1F2, #AAB8C2);
	border: 3px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 10px;
}

/* Clean speed controls */
.speed-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.speed-option-group {
    position: relative;
}

.speed-option-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.speed-option {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    justify-content: center;
}

.speed-option:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.speed-option-group input[type="radio"]:checked + .speed-option {
    background: linear-gradient(45deg, #1DA1F2 0%, #0077B5 50%, #1DA1F2 100%);
    color: white;
    border-color: #1DA1F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.speed-option i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Search Cards */
.search-card {
    background: #192734;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    color: #ffffff;
    border: 1px solid #38444d;
}

.search-card h5 {
    color: #1DA1F2;
    font-weight: 600;
}

.input-group-text {
    background: linear-gradient(45deg, #1DA1F2 0%, #0077B5 50%, #1DA1F2 100%);
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 25px 0 0 25px;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.2);
    transition: all 0.3s ease;
}

.input-group-text:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

/* Twitter-themed buttons */
.twitter-btn {
    background: linear-gradient(45deg, #1DA1F2 0%, #0077B5 50%, #1DA1F2 100%);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 0 25px 25px 0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.twitter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Twitter-themed cards */
.twitter-card {
    background: #192734;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #38444d;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
    color: #ffffff;
}

.twitter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* View Cards */
.view-card {
    position: relative;
    text-align: center;
    min-height: 350px;
    padding-top: 20px;
}

.username1, .username2 {
    font-size: calc(14px + 0.3vw);
    margin: 10px 0;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5px;
}

.tweet-title {
    font-size: calc(13px + 0.2vw);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 4px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tweet-author {
    font-size: calc(11px + 0.1vw);
    color: #1DA1F2 !important;
    font-weight: 500;
    font-style: italic;
    margin-top: 2px;
}

.user-title {
    font-size: calc(15px + 0.3vw);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.user-name {
    font-size: calc(12px + 0.1vw);
    color: #657786 !important;
    font-weight: 400;
    margin-top: 2px;
}

/* Enhanced profile picture/media display */
.pfp {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid #1DA1F2;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.pfp:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(29, 161, 242, 0.3);
}

/* Media display styling */
.pfp[src*="pbs.twimg.com/media"] {
    border-radius: 15px !important;
    cursor: pointer;
}

.pfp[src*="pbs.twimg.com/profile_images"] {
    border-radius: 50% !important;
    cursor: default;
}

/* Enhanced media stacking container */
.media-stack-container {
    position: relative !important;
    display: block !important;
    margin: 15px auto !important;
}

.media-stack-container img {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #1DA1F2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.media-stack-container img:hover {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 999 !important;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4) !important;
}

/* Enhanced user badges with different colors for tweets vs users */
.user-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #1DA1F2 0%, #0077B5 50%, #1DA1F2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
    z-index: 10;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Tweet badge styling with different color - enhanced selector for better compatibility */
.user-badge:has-text("Tweet"),
.user-badge[data-content="tweet"] {
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a52 50%, #ff6b6b 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Backup style for browsers that don't support :has() */
.user-badge.tweet-badge {
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a52 50%, #ff6b6b 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Media container styles for single and multiple media */
.single-media-container {
    position: relative !important;
    width: 120px !important;
    height: 120px !important;
    margin: 15px auto !important;
}

.multi-media-container {
    position: relative !important;
    width: 140px !important;
    height: 140px !important;
    margin: 15px auto !important;
}

.single-media-container img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #1DA1F2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.multi-media-container img {
    position: absolute;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #1DA1F2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.single-media-container img:hover,
.multi-media-container img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(29, 161, 242, 0.3) !important;
}

/* Enhanced media stacking container */
.media-stack-container {
    position: relative !important;
    display: block !important;
}

/* Hide profile picture when media is active */
.view-card .pfp[style*="display: none"] {
    display: none !important;
}

/* Mobile responsive adjustments for media containers */
@media screen and (max-width: 768px) {
    .single-media-container {
        width: 100px !important;
        height: 100px !important;
    }
    
    .single-media-container img {
        width: 100px !important;
        height: 100px !important;
        border-width: 3px;
    }
    
    .multi-media-container {
        width: 120px !important;
        height: 120px !important;
    }
    
    .multi-media-container img {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
}

@media screen and (max-width: 480px) {
    .single-media-container {
        width: 90px !important;
        height: 90px !important;
    }
    
    .single-media-container img {
        width: 90px !important;
        height: 90px !important;
        border-width: 2px;
    }
    
    .multi-media-container {
        width: 110px !important;
        height: 110px !important;
    }
    
    .multi-media-container img {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
}

/* Enhanced view cards */
.view-card {
    position: relative;
    text-align: center;
    min-height: 380px;
    padding-top: 20px;
    transition: all 0.3s ease;
}

.view-card:hover {
    transform: translateY(-2px);
}

/* Media count indicator */
.media-count-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* VS Divider */
.vs-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.vs-card {
    background: #192734;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #38444d;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.vs-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1DA1F2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    line-height: 1;
}

.vs-icon {
    font-size: 1rem;
    color: #1DA1F2;
    margin-top: 5px;
    display: block;
}

/* VS connection lines */
.vs-divider::before,
.vs-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 2px;
    background: linear-gradient(45deg, #1DA1F2 0%, #0077B5 100%);
    z-index: 1;
}

.vs-divider::before {
    left: 0;
}

.vs-divider::after {
    right: 0;
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #1DA1F2;
    margin-bottom: 15px;
}

.feature-box h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-box p {
    color: #657786;
    font-size: 14px;
}

/* Theme Options */
.themes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.theme-option {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.theme-option:hover {
    transform: scale(1.1);
    border-color: #1DA1F2;
}

/* Main odometer */
.main-odo {
    font-size: calc(28px + 1.5vw);
    margin: 15px 0;
    font-weight: bold;
    color: #1DA1F2;
}

.username {
    font-size: calc(16px + 0.5vw);
    margin: 10px 0;
    color: #ffffff;
    font-weight: 600;
}

.pfp {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid #1DA1F2;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.pfp:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(29, 161, 242, 0.3);
}

.difference-odo {
    font-size: calc(22px + 1vw);
    font-weight: bold;
    color: #1DA1F2;
}

.difference-card {
    text-align: center;
    background: linear-gradient(135deg, #192734 0%, #15202B 100%);
}

/* Ad containers */
.ad-container {
    margin: 25px 0;
    padding: 20px 15px; /* Increased padding for better spacing */
    text-align: center;
    background: #15202B;
    border-radius: 10px;
    border: 1px solid #38444d;
    overflow: hidden;
    position: relative;
    min-height: 100px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for better distinction */
}

/* Add slight hover effect to ad containers */
.ad-container:hover {
    border-color: #1DA1F2;
    box-shadow: 0 8px 32px rgba(29, 161, 242, 0.1);
}

.ad-label {
    font-size: 12px;
    color: #657786;
    margin-bottom: 15px; /* Increased margin for better spacing */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    padding-left: 5px;
}

/* Ad separator to ensure adequate spacing */
.ad-separator {
    height: 30px;
    width: 100%;
    clear: both;
}

/* Responsive ad sizing with improved spacing */
@media screen and (max-width: 768px) {
    .ad-container {
        padding: 15px 10px;
        margin: 20px 0;
    }
    
    .ad-label {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    #stickyAd ins.adsbygoogle {
        height: 60px !important;
    }
    
    .ad-separator {
        height: 20px;
    }
}

/* Sticky ad styling with improved visuals */
#stickyAd .ad-container {
    border-radius: 0;
    margin: 0;
    padding: 10px 15px;
    background: rgba(21, 32, 43, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

#stickyAd .ad-label {
    margin-bottom: 5px;
}

/* Ad close button styling */
.ad-close-btn {
    background: none;
    border: none;
    color: #657786;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.ad-close-btn:hover {
    color: #1DA1F2;
}

/* Additional spacing between content sections */
.content-section {
    margin-bottom: 40px;
}

/* Extra spacing for sections near ads */
.ad-adjacent {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ...existing CSS continues... */
body {
    overflow-x: hidden;
    background-color: #15202B;
}

/* Default dark theme colors */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.search-title, .difference-title, .chart-title, .features-title, 
.customization-title, .theme-title, .speed-title, .about-title, 
.about-subtitle, .feature-title {
    color: #ffffff;
}

.about-text, .feature-text, .difference-subtitle {
    color: #657786;
}

.about-list {
    color: #ffffff;
}

/* Rainbow text animation */
.rainbow-text {
    background: linear-gradient(45deg, #1DA1F2, #657786, #1DA1F2, #AAB8C2, #1DA1F2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
}

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

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .card-head {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .nav-brand, .home-btn {
        margin: 3px 0;
        font-size: 14px;
    }
    
    .nav-brand-text, .home-btn-text {
        display: none;
    }
    
    .header-text {
        font-size: 16px;
        margin: 8px 0;
    }
    
    .header-main-text {
        font-size: 14px;
    }
    
    .vs-divider {
        margin: 10px 0;
    }
    
    .vs-card {
        padding: 10px 15px;
    }
    
    .vs-text {
        font-size: 1.5rem;
    }
    
    .vs-icon {
        font-size: 0.9rem;
    }
    
    .vs-divider::before,
    .vs-divider::after {
        width: calc(50% - 50px);
        height: 1px;
    }
    
    .main-odo {
        font-size: calc(22px + 2vw);
    }
    
    .view-card {
        min-height: 320px;
        padding-top: 15px;
    }
    
    .twitter-card {
        padding: 15px;
        margin: 10px 0;
    }
    
    .search-card {
        padding: 15px;
    }
    
    .btn-text {
        display: none;
    }
    
    .twitter-btn {
        padding: 12px;
    }
    
    .feature-box {
        margin-bottom: 20px;
        padding: 15px 10px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .speed-controls {
        gap: 10px;
    }
    
    .speed-option {
        padding: 10px 15px;
        min-width: 80px;
        font-size: 14px;
    }
    
    .speed-text {
        display: none;
    }
    
    .input-group-text {
        padding: 10px 12px;
        font-size: 14px;
        min-width: 45px;
    }
    
    .search-card .form-control {
        padding: 10px 12px;
        font-size: 14px;
        background: #15202B;
        color: #ffffff;
        border-color: #38444d;
    }
}

@media screen and (max-width: 480px) {
    .view-card {
        min-height: 300px;
        padding-top: 12px;
    }
    
    .pfp {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    
    .username1, .username2 {
        min-height: 80px;
        font-size: calc(11px + 0.7vw);
        padding: 10px 3px;
    }
    
    .tweet-title {
        font-size: calc(10px + 0.5vw);
        -webkit-line-clamp: 4;
    }
    
    .tweet-author, .user-name {
        font-size: calc(9px + 0.3vw);
    }
    
    .user-title {
        font-size: calc(12px + 0.7vw);
    }
    
    .user-badge {
        padding: 3px 10px;
        font-size: 9px;
        top: -6px;
        min-width: 60px;
    }
}

/* API Status Indicator */
.api-status-card {
    margin: 10px 0;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
    transition: all 0.3s ease;
}

.api-status-text {
    color: #657786;
    font-size: 12px;
    font-weight: 500;
}

.api-status-icon {
    color: #1DA1F2;
    margin-right: 5px;
    transition: color 0.3s ease;
}

.api-status-icon.connected {
    color: #28a745;
    animation: pulse 2s infinite;
}

.api-status-icon.error {
    color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Enhanced button states */
.twitter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.twitter-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Error state styling */
.error-badge {
    background: linear-gradient(45deg, #dc3545 0%, #c82333 50%, #dc3545 100%) !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

.error-title {
    font-size: calc(13px + 0.3vw);
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 4px;
}

.error-message {
    font-size: calc(11px + 0.1vw);
    color: #657786;
}

/* Like count specific styling */
.view-label .fa-heart {
    color: #e0245e;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* View label adjustments when showing likes */
.view-card[data-using-likes="true"] .main-odo {
    color: #e0245e;
}

/* Help section styling */
.help-text {
    line-height: 1.6;
}

.help-text strong {
    color: #1DA1F2;
}

/* API status enhancements */
.api-status-card.using-likes {
    background: rgba(224, 36, 94, 0.1);
    border: 1px solid rgba(224, 36, 94, 0.3);
}

.api-status-card.using-likes .api-status-icon.connected {
    color: #e0245e;
}

.api-status-card.using-views {
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
}

/* Chart color adjustments for likes mode */
.highcharts-series.likes-mode path.highcharts-graph {
    stroke: url(#likes-gradient) !important;
}

/* Error state enhancements */
.view-card.error-state {
    border: 1px solid rgba(220, 53, 69, 0.5);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.1);
}

.view-card.error-state .pfp {
    opacity: 0.5;
    filter: grayscale(100%);
    border-color: #dc3545;
}
/* Rainbow theme support */
.rainbow-text .tweet-title,
.rainbow-text .user-title,
.rainbow-text .tweet-author,
.rainbow-text .user-name {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd) !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: rainbowSlow 4s ease-in-out infinite !important;
}

/* Notification card for metric display */
.notification-card {
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
    padding: 12px 15px;
    margin: 15px 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.notification-card.using-likes {
    background: rgba(224, 36, 94, 0.1);
    border: 1px solid rgba(224, 36, 94, 0.3);
}

.notification-card.using-views {
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
}

.notification-icon {
    font-size: 24px;
    color: #1DA1F2;
    margin-right: 15px;
}

.notification-card.using-likes .notification-icon {
    color: #e0245e;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
}

.notification-text strong {
    font-weight: 600;
    color: #1DA1F2;
}

.notification-card.using-likes .notification-text strong {
    color: #e0245e;
}
.view-card.loading .media-stack-container {
    animation: pulse 1.5s infinite;
}

.view-card.loading .main-odo {
    animation: pulse 1.5s infinite;
}

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

/* Enhanced media container cleanup and uniqueness */
.media-stack-container {
    position: relative !important;
    display: block !important;
    margin: 15px auto !important;
}

/* Prevent duplicate containers with more specific selectors */
.view-card .media-stack-container.user-1-media,
.view-card .media-stack-container.user-2-media {
    position: relative !important;
    display: block !important;
    margin: 15px auto !important;
}

/* Ensure only one media container per user */
.view-card[data-media-processed-1="true"] .media-stack-container:not(.user-1-media),
.view-card[data-media-processed-2="true"] .media-stack-container:not(.user-2-media) {
    display: none !important;
}

/* Hide duplicate media containers that might slip through */
.view-card .media-stack-container + .media-stack-container {
    display: none !important;
}

/* Specific styling for single media containers */
.single-media-container {
    width: 120px !important;
    height: 120px !important;
}

.single-media-container .tweet-media-single {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #1DA1F2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: block !important;
}

/* Specific styling for multiple media containers */
.multi-media-container {
    width: 140px !important;
    height: 140px !important;
}

.multi-media-container .tweet-media-stack-item {
    position: absolute;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #1DA1F2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Media hover effects */
.single-media-container .tweet-media-single:hover,
.multi-media-container .tweet-media-stack-item:hover {
    transform: scale(1.05) !important;
    z-index: 999 !important;
    box-shadow: 0 12px 30px rgba(29, 161, 242, 0.3) !important;
}

/* Chart improvements for full number display */
.highcharts-yaxis-labels text {
    font-size: 12px !important;
    fill: #657786 !important;
}

.highcharts-tooltip {
    background: rgba(25, 39, 52, 0.95) !important;
    border: 1px solid #1DA1F2 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

.highcharts-tooltip table {
    color: #ffffff !important;
}

/* Force chart text to be readable */
#chart .highcharts-container {
    font-family: inherit !important;
}

#chart .highcharts-yaxis-labels text,
#chart .highcharts-xaxis-labels text {
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Fix for odometer centering - strengthened selectors */
.odometer, .main-odo, .secondary-odo, .odo1, .odo2, .difference-odo {
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Fix the internal elements of the odometer */
.odometer-inside {
    display: inline-flex !important;
    justify-content: center !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.odometer.odometer-auto-theme, .odometer.odometer-theme-default {
    display: inline-flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: auto !important;
}

/* Additional fix for view card spacing */
.view-card .odometer, 
.view-card .main-odo,
.profile-card .odometer,
.profile-card .main-odo,
.stat-card .odometer,
.stat-card .secondary-odo {
    justify-content: center !important;
    display: flex !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure proper alignment of odometer digits */
.odometer-digit {
    display: inline-block !important;
}

.odometer-inside {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}
