
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
        background: linear-gradient(to bottom right, white, #f8f3dd);
    color: #333;
}

h1, h2 {
    color: #1a202c; /* Darker heading color */
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

a { color: #3182ce; text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
    background-color: #eaeaea;
    border: 1px solid #ccc; 
    color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;    
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    padding: 1rem;
    margin-right: 1rem;
}

nav ul li a {
    display: inline;
    color: #333;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #bababa;
  }

.logo img{
    width:3rem;
    height:auto;
}

.logo a{
    text-decoration: none;
    color: #333;
}

.logo{
    margin-left: 5%;
    margin-top: 2.5px;
}

.logo_links{
    margin-left: 10%;
}

.logo_n_links{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:flex-start;     
}


/* --- Footer ------------------------------------------------------------------ */

footer {
    background-color: #090909;
    color: #e9e9e9;
    border: 1px solid #000; 
    padding: 1em;
    text-align: left;
    z-index: 5;
}

footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

footer ul li {
    display: inline;
    margin-right: 1em;
}

footer ul li a {
    color: #e9e9e9;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}


.foot_end{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:center; 
    margin-bottom: 0.8rem;
}

/* --- Container ------------------------------------------------------------------ */

.container{
    max-width: 1140px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

.index_container, .stats_container, .pricing_container, .buy_container, .terms_container, .privacy_container, .user_container{
    margin-top: 5rem;
    min-height: 100vh;
    margin-bottom: 1rem;
}

.index_container h1, .stats_container h1{
    margin-top: 7rem;
}

.hero_form{
    margin-top: 6rem;
    margin-bottom: 5rem;
}

.custom_short_link{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: 2px;
}

.custom_short_label{
    margin-top: 1.5rem;
}

.custom_short_link_alias{
    width: 50%;
}

form #submit {
    margin-top: 1rem;
}

.index_container .link_table{
    padding-bottom: 2rem;
    margin-bottom: 6rem;
}

.in_red{
    color: var(--bs-form-invalid-color);
}


/* Newsletter  ------------------------------ */

.newsletter{
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 2rem;

}

.alt_newsletter{
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;    
}

.newsletter #signup_email:focus {
    border-color:#c5c6bf; 
    background-color:#f9f5d1;
    background-image:none;
    color:#000;
  }

.newsletter .bluebutton{
    background-color:#333333;
    color:#FFF;
    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    padding:0.375rem 0.85rem 0.375rem 0.85rem;
    text-shadow: 1px 1px 1px #111111;      
}

.newsletter .signup_email{
    max-width: 200px;
    padding: .375rem .75rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;    
}



/* ------- No script ------------------------------ */
.javascript-required {
    background-color: #fdd; /* Light red background */
    color: #800; /* Dark red text */
    text-align: center;
    padding: 20px;
    margin: 2rem;
    margin-top: 7rem;
    border: 1px solid #800;
    border-radius: 5px;
    font-size: 1.2em;
}

/* ------- Hero ------------------------------ */

table { 
    border-collapse: collapse; 
    width: 100%; 
}
th, td { 
    border: 1px solid #ddd; 
    padding: 8px; 
    text-align: left; }
th { 
    background-color: #f2f2f2; 
}

.index_container h3{
    margin-top: 2.5rem;
}

.index_container h5{
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.consider_more{
    margin-top: 0.5rem;
}

/* --- Pricing Page -------------------------------------------------------------*/


.pricing_container .card-deck{
    display: flex;
    flex-direction: row;
    justify-content:center; 
    gap: 2rem;

    
}

.card-header{
    --bs-card-cap-bg: white;
}

.pricing_container .pricing-header{
    margin-top: 7rem;
    margin-bottom: 1.5rem;
}

.buy-button{
    min-width: 80%;
}

.pricing_note{
    text-align: center;
}

/* --- Buying Page -------------------------------------------------------------*/

.buy_container .buy_header{
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.buy_container .buy_package{
    margin-bottom: 2rem;
}


.buy_container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buy_form{
    margin-bottom: 4rem;
}

/* --- Stats Page -------------------------------------------------------------*/
.stats-card, .click-chart {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

 /* General Stats Card */
 .stats-card {
    background-color:  #e2e8f0; /* Dark background like the image */
    color:  #4a5568;/* Light text color */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.stats-card h2, .click-chart h2 {
    border-bottom: none;
}

.stats-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.05em;
}
.stats-item strong {
    /* color: #a0aec0;  Lighter gray for labels */
    min-width: 10rem; /* Align labels */
    display: inline-block;
}
.stats-item .value {
    background-color: #eef1f5; /* #2d3748;  Slightly darker badge background */
    color: #6ea7f3;
    padding: 4px 10px;
    border-radius: 12px; /* Pill shape */
    font-family: monospace;
    font-size: 0.95em;
    margin-left: 10px;
    display: inline-block; /* Needed for padding/border-radius */
}
.stats-item .value.url { /* Special style for URLs */
     font-family: inherit;
     word-break: break-all;
     background-color: #eef1f5; /* Different background for URLs */
}
 .stats-divider {
     height: 1px;
     background-color: #718096; /* Separator line */
     margin: 20px 0;
     border: none;
}

/* Chart Container */
.chart-container {
    width: 100%;
    margin: 30px auto 20px auto; /* Add some bottom margin */
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff; /* White background for chart */
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3182ce;
}

/* World map */

/* Styles for the new Countries card and heatmap */
.map-card {
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative; /* Needed for fullscreen button positioning */
}        

.map-card h2 {
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.7rem;
}

#heatmapContainer {
    width: 100%;
    height: auto;       /* Adjust height as needed */
    border-radius: 5px;
    overflow: hidden;   /* Hide parts of map extending beyond border */
}


/* Styling for the map div itself (Plotly might override some) */
#heatmapChart .svg-container {
    color: #000;
}
.js-plotly-plot .plotly, .js-plotly-plot .plotly svg {
  background-color: transparent !important;
}

/* Fullscreen Button Styling */
#fullscreen-btn {
    position: absolute;
    top: 80px; /* Adjust position */
    left: 15px;
    background-color: rgba(45, 55, 72, 0.8); /* Semi-transparent dark */
    color: #e2e8f0;
    border: 1px solid #718096;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 1.2em;   /* Make icon larger */
    z-index: 10;        /* Ensure it's above the map */
    line-height: 1;
}

#fullscreen-btn:hover {
    background-color: rgba(74, 85, 104, 0.9);
}


/* Styles for when the map container is fullscreen */
#map-card-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* 100% of viewport width */
    height: 100vh; /* 100% of viewport height */
    background-color: #4a5568;
    z-index: 1000; /* Ensure it's above everything */
    padding: 20px; /* Add some padding */
    box-sizing: border-box; /* Include padding in width/height */
    display: flex; /* Use flexbox for centering */
    flex-direction: column;
}
 
#map-card-fullscreen h2 { 
    margin: 0 0 15px 0;
    color: #bababa;
}

#map-card-fullscreen #heatmapContainer{
    height: 90vh; /* Explicitly set height, e.g., 85% of viewport height */
    width: 100%; /* Ensure it takes full width within padding */
    overflow: hidden; /* Hide internal overflows */
}

#heatmapChart{
    width: 100%;
    max-height: 70vh;
}

#map-card-fullscreen #heatmapChart {
    width: 100%;
    height: 100vh;
}

#map-card-fullscreen #fullscreen-btn {
    /* Adjust position/style for fullscreen */
    top: 5rem;
    left: 25px;
    font-size: 1.5em;
}

.modebar-group {
    padding-bottom: 10px !important;
}


/* ----------- Tops countries table ----------- */
.top_countries{
    margin-top: 3rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top_countries_table{
    width: 70%;
}

.top_countries_table table {
    width: 100%; /* Makes the table span the full width of its container */
    border-collapse: collapse;
    margin: 20px auto;
}

.top_countries_table th, .top_countries_table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.top_countries_table th:first-child, .top_countries_table td:first-child {
    text-align: left;
}

.top_countries_table th:nth-child(2), .top_countries_table td:nth-child(2) {
    text-align: center;
}

.top_countries_table th {
    background-color: #f4f4f4;
}

/* --- User Dashboard ------------------------------------------------------------------ */
.user_container{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.user_container h1{
    margin-top: 4rem;
    text-align: center;

}

.user_container .card_stack{
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the two cards */
    width: 100%;
    max-width: 500px; /* Adjust as needed */
}

.user_container .card{
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px; /* Increased padding */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user_container .card h2 {
    font-size: 1.5em; /* Adjusted to match "Your Activity" / "Your Service Package" */
    margin-top: 0;
    margin-bottom: 20px;
}

/* Activity Section Specifics */
.user_container .activity-content {
    text-align: center; /* Center align content within this div */
}

.user_container .activity-label {
    font-size: 1.2em; /* Matches "Number of Short Links used" */
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.user_container .activity-count {
    font-size: 1.1em; /* Matches "20 of 100" */
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.progress-bar-container {
    width: 100%;
    background-color: #e9ecef; /* Light grey background for the track */
    border-radius: 4px;
    height: 10px; /* Height of the progress bar track */
    overflow: hidden; /* Ensures inner bar stays within rounded corners */
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #8BC34A; /* A pleasant green, similar to the image */
    border-radius: 4px; /* Match container for smooth look */
    transition: width 0.5s ease-in-out; /* Smooth transition for width changes */
}

/* Service Package Section Specifics */
.package-content {
    text-align: center; /* Center align content within this div */
}

.package-name {
    font-size: 1.3em; /* Matches "Lifetime" */
    font-weight: bold;
    color: #E53935; /* Red color as in the image */
    margin-bottom: 10px;
}

.package-description {
    font-size: 1.1em; /* Matches "Premium service..." */
    color: #333;
    line-height: 1.4; /* For better readability if text wraps */
}

.have_questions{
    text-align: center;
}

/* --- Auth ------------------------------------------------------------------ */

.outer_space{
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth{
    max-width: 500px;
    padding: 20px;
}

.auth_space{
    min-height: 100vh;
}

.login_menu{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 8rem;
}


.login_google a, .login_email a{
    width: 100%;
    padding: 0.7rem 0;
    font-size: larger;
    font-weight: 500;
    text-decoration: none;

    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    text-shadow: 1px 1px 1px #111111;  
}

/* --- Errors ------------------------------------------------------------------ */
.errors_space{
    min-height: 100vh;
}

.errors_container{
    max-width: 500px;
    padding: 20px;
    text-align: center;
}

/* Terms */
.terms_container, .privacy_container{
    margin-top: 7rem;
    margin-bottom: 4rem;
}

/* ------- Media ------------------------------ */

@media (max-width: 768px) {
   
    .hero_in_h5_2{
        max-width: 80%;
    }

    #heatmapChart{
        width: 100%;
        height: 30vh;
    }

    .pricing_container .card-deck{
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    nav ul li {
        padding: 0;
        margin-right: 0;
    }   

    .logo{
        margin-left: 1rem;
    }

    .logo_links{
        margin-left: 1rem;
    }

}
