/* --- Base Styling --- */
body {
    font-family: 'Inter', sans-serif; 
    background-color: #2e3a4c; /* Dark background color */
    color: #f8f9fa; /* Light text color */
    
}

.container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.header-section {
    text-align: center;
    padding: 40px 0;
    color: #fff; /* Default text color for header area */
}

/* --- Header Specific Styling with Animations --- */
.header-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff; /* Ensure the main heading color */
    /* Text Pulse/Glow Animation */
    animation: text-pulse-glow 3s ease-in-out infinite;
}

.header-section p {
    font-size: 1.1rem;
    color: #cccccc;
    /* Fade-In and Slide Up Animation */
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.5s; /* Start after the H1 animation */
    opacity: 0; /* Start hidden for the animation */
}


/* --- Navigation Styling --- */
.nav-buttons {
     display: flex;
    justify-content: center;
     gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  
    

}

.nav-buttons .btn {
    border-radius: 20px;
    flex-grow: 1; /* Buttons grow to fill space */
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease; /* Smooth transition for hover/active effects */
}

.nav-buttons .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.nav-buttons .btn-primary:hover {
     background-color: #0b5ed7;
     border-color: #0a58ca;
     color: #fff;
}

.nav-buttons .btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}
.nav-buttons .btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    color: #fff;
}

/* Style for active button */
.nav-buttons .btn-primary.active,
.nav-buttons .btn-success.active {
     background-color: #fff; /* White background for active */
     color: #212529; /* Dark text for active */
     border-color: #fff;
     box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Add a subtle glow to active */
}

/* --- Content Card Styling with Animation --- */
.content-card {
    background-color: #ffffff; /* White background for content card */
    color: #212529; /* Dark text for content */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Default shadow */
    margin-top: 20px;
    text-align: center; /* Default align content inside */

    /* Slide-In Entry Animation and Optional Pulse Animation */
    animation: slideInContent 1s ease-out forwards, box-shadow-pulse 4s ease-in-out infinite;
    animation-delay: 0.8s; /* Delay after header animations */
    opacity: 0; /* Start hidden for slideInContent */
}

/* Styles for content card headings */
.content-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #343a40; /* Darker heading color */
    position: relative;
    padding-bottom: 10px;
}

.content-card h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0d6efd; /* Underline color matching primary button */
    margin: 10px auto 0; /* Center underline */
}

/* --- Dashboard Specific Styling with Animation --- */
.dashboard-balance {
    font-size: 3rem;
    font-weight: bold;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    /* Gradient background */
    background: linear-gradient(to right, #28a745, #218838); /* Green gradient */
    color: #fff; /* White text for balance */
     /* Box Shadow Pulse Animation */
    animation: box-shadow-pulse 3s ease-in-out infinite;
    /* Added border for visual pairing with the pulsing shadow */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- Tasks Specific Styling with Hover Animation --- */
.task-item {
    text-align: left; /* Align task content left */
}

.task-item .card {
    /* Added transition for smooth hover effect */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.task-item .card:hover {
    transform: translateY(-5px); /* Lift slightly on hover */
    /* Add more prominent shadow and a blue glow on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px rgba(13, 110, 253, 0.4);
}

.task-item .btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
}


/* --- Ad View Specific Styling --- */
.ad-placeholder {
    width: 100%;
    height: 250px; /* Or dynamic height */
    background-color: #e9ecef; /* Light gray placeholder */
    display: flex;
    flex-direction: column; /* Stack text and example url */
    justify-content: center;
    align-items: center;
    color: #6c757d;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    position: relative; /* For positioning example URL */
    overflow: hidden; /* Hide potential overflow */
}
.ad-placeholder div { /* Style for the example URL container */
    font-size: 0.8em;
    color: #a0a0a0;
    margin-top: 5px; /* Space between title and example URL */
}

.timer-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545; /* Red for timer */
    margin-bottom: 20px;
}


/* --- Referral Specific Styling --- */
.referral-link-box {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    word-break: break-all; /* Break long links */
    margin: 20px 0;
    color: #212529; /* Ensure link text is readable */
    text-align: center; /* Center the link box content */
}

.referral-link-box code {
     background: none; /* Remove default code block background */
     color: inherit; /* Inherit color from parent */
     font-weight: bold; /* Make link stand out a bit */
}

.referral-info {
    text-align: left; /* Align referral list left */
    margin-top: 20px;
}

.referral-info ul {
    list-style: disc;
    padding-left: 20px;
}
.referral-info li {
    margin-bottom: 10px;
}


/* --- Withdrawal/Policy Styling --- */
.simple-text-content {
    text-align: left;
}

/* --- Floating Notifications Styling --- */
.floating-notification {
    position: fixed;
    left: 10px;
    bottom: -60px; /* Start off-screen */
    background-color: #000; /* Black background */
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    min-width: 200px;
    max-width: 90%; /* Max width on small screens */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0; /* Start hidden */
    visibility: hidden;
    transition: bottom 0.5s ease-out, opacity 0.5s ease-out, visibility 0s linear 0.5s; /* Slide up and fade in */
    z-index: 1000; /* Above other content */
}

.floating-notification.show {
    bottom: 10px; /* Slide onto screen */
    opacity: 1; /* Fade in */
    visibility: visible;
    transition: bottom 0.5s ease-out, opacity 0.5s ease-out; /* Slide up and fade in */
}


/* --- Keyframe Animations Definitions --- */

/* Subtle Text Pulse/Glow for Headings */
@keyframes text-pulse-glow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3), /* Subtle white glow */
                 0 0 10px rgba(255, 193, 7, 0.3);  /* Subtle golden glow */
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), /* Brighter white glow */
                 0 0 20px rgba(255, 193, 7, 0.6),  /* Brighter golden glow */
                 0 0 30px rgba(255, 193, 7, 0.3);
  }
}

/* Simple Fade-In (Not directly used in this final combiation, but available) */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade-In and Slide Up Entry Animation */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Box Shadow Pulse Animation */
@keyframes box-shadow-pulse {
  0% {
    box-shadow: 0 0 0 rgba(13, 110, 253, 0.2); /* Start/End with subtle shadow */
  }
  50% {
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.4), /* Wider, more intense pulse */
                0 0 20px rgba(13, 110, 253, 0.2);
  }
   100% {
     box-shadow: 0 0 0 rgba(13, 110, 253, 0.2); /* Return to subtle */
  }
}

/* Slide-In Content Block Entry Animation */
@keyframes slideInContent {
  0% {
    opacity: 0;
    transform: translateY(30px); /* Start further down */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }

/* --- New Styles for the Chatbox Trigger Button --- */
#chatboxTrigger {
    position: fixed; /* Stay on screen during scroll */
    bottom: 20px; /* Distance from bottom */
    right: 20px; /* Distance from right */
    width: 55px; /* Make it circular */
    height: 55px; /* Make it circular */
    border-radius: 50%; /* Perfect circle */
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: #fff; /* White text/icon color */
    font-size: 1.8rem; /* Adjust size of the emoji/text */
    border: none; /* Remove default button border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(13, 110, 253, 0.4); /* Shadow for depth and slight glow */
    cursor: pointer; /* Indicate it's clickable */
    display: flex; /* Use flexbox to center icon */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 1000; /* Ensure it's above content */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; /* Smooth transitions for hover */
}

#chatboxTrigger:hover {
    background-color: #0b5ed7; /* Slightly darker blue on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(13, 110, 253, 0.6); /* More prominent shadow/glow */
    transform: scale(1.05); /* Slightly larger on hover */
}

#chatboxTrigger:active {
     transform: scale(0.98); /* Slightly smaller when clicked */
     background-color: #0a58ca; /* Even darker blue on click */
}

/* Optional: Adjust for smaller screens if it's too big or awkwardly placed */
@media (max-width: 576px) {
    #chatboxTrigger {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
}