body {
    font-family: 'Inter', sans-serif;
}

/* Calendar input styling */
.calendar-input {
    position: relative;
    cursor: pointer;
}

.calendar-input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

/* Custom gradient */
.gradient-bg {
    background-image: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
}

/* Simple pulse animation for the title */
.pulse-text {
    animation: pulse-color 5s infinite;
}

@keyframes pulse-color {
    0% { color: #fff; }
    50% { color: #e0e7ff; }
    100% { color: #fff; }
}

/* Numeric display improvements for stat tiles */
.bg-gray-700 .font-bold,
.bg-gray-700 .text-2xl,
.bg-gray-700 .text-3xl {
    /* Prefer tabular numbers for stable alignment */
    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum" 1;
    font-feature-settings: "tnum";
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Social Media Buttons --- */
.social-media-bar {
    max-width: 600px;
    margin: 0 auto;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    min-width: 130px;
    justify-content: center;
    gap: 8px;
}

.social-btn i {
    font-size: 1.2em;
}

.social-btn span {
    font-size: 0.9em;
}

/* Individual social button styles */
.social-btn.twitter {
    background-color: #1DA1F2;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.reddit {
    background-color: #FF4500;
}

.social-btn.whatsapp {
    background-color: #25D366;
}

.social-btn.copy-link {
    background-color: #6366f1;
}

/* Hover effects */
.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(110%);
}

.social-btn:active {
    transform: translateY(0);
}

/* Copy success animation */
@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

#copySuccess {
    animation: fadeOut 2s forwards;
}

/* --- Stats Animation --- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bg-gray-700 {
    animation: fadeInScale 0.4s ease-out forwards;
}

/* Stagger the animations for each stat tile */
.grid > .bg-gray-700 {
    opacity: 0;
}

.grid > .bg-gray-700:nth-child(1) { animation-delay: 0s; }
.grid > .bg-gray-700:nth-child(2) { animation-delay: 0.1s; }
.grid > .bg-gray-700:nth-child(3) { animation-delay: 0.2s; }
.grid > .bg-gray-700:nth-child(4) { animation-delay: 0.3s; }
/* Add more if needed for your grid layout */

/* Apply tabular-nums for smooth number transitions */
.bg-gray-700 [id^="stat-"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* --- New Styles for Header Animation --- */

/* Blinking cursor effect */
.blinking-cursor {
    display: inline-block;
    width: 10px;
    height: 1em;
    background-color: #818cf8; /* indigo-300 */
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -9px;
    animation: blink 1s step-end infinite;
}

/* Typing container */
.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid transparent; /* Placeholder for cursor */
}

/* Typing animation */
.typing-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(var(--typing-steps, 22), end) 1; /* Run animation once */
    width: var(--typing-width, 220px);
}

@keyframes typing {
    from { width: 0; }
    to { width: var(--typing-width, 220px); }
}

@keyframes blink {
    0% { background-color: #818cf8; }
    49% { background-color: #818cf8; }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100% { background-color: #818cf8; }
}

/* --- New Stat Tile Styles --- */
.stat-tile {
    /* Glassmorphism effect */
    background-color: rgba(31, 41, 55, 0.5); /* bg-gray-800 with 50% opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */

    /* Subtle border */
    border: 1px solid rgba(75, 85, 99, 0.7); /* border-gray-600 with 70% opacity */
    
    /* Smooth transitions for hover effects */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-tile:hover {
    transform: translateY(-4px);
    border-color: #6366f1; /* indigo-500 */
    /* A subtle glow effect using the theme color */
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Alternating Section Backgrounds --- */
.stat-section {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.stat-section:nth-child(odd) {
    background-color: rgba(31, 41, 55, 0.3); /* bg-gray-800 with 30% opacity */
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.stat-section:nth-child(even) {
    background-color: transparent;
    border: 1px solid transparent;
}
}