/* ==============================
   🌎 GLOBAL STYLES (RESET & BODY)
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    position: relative; /* ensure modals can float over everything */
}

/* General Body Style */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark gray text */
    line-height: 1.6;
    overflow-x: hidden;
}

.main-content, .content-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ==============================
   🌍 HEADER (NAVIGATION BAR)
================================= */
header, footer {
    display: flex;
    justify-content: space-between; /* Title on the left, links on the right */
    align-items: center;
    background-color: white;
    color: #1E2761;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}

header {
    border-bottom: 3px solid #1E2761;
}

/* LOGO CONTAINER */
.logo-container {
    display: flex;  /* Ensures proper alignment */
    align-items: center;
    justify-content: flex-start;
    width: 300px;  /* 🔥 Fixed width */
    height: 60px;  /* 🔥 Fixed height */
    overflow: hidden; /* Prevents spillover */
}

/* LOGO IMAGE - Ensures full visibility */
.logo-container img {
    display: block;
    width: auto;   /* Ensures correct aspect ratio */
    height: 100%;  /* 🔥 Makes it fully fill the height */
    object-fit: contain; /* ✅ Ensures the entire logo fits without cropping */
}

/* ==============================
   ⚡ FOOTER (SAME STYLE AS HEADER)
================================= */
footer {
    text-align: center;
    padding: 15px 0;
    border-top: 3px solid #1E2761;
    display: block; /* ✅ Ensures proper line breaks */
}

footer a {
    color: #1E2761;
    text-decoration: none;
}

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

footer p {
    display: block;
    margin-bottom: 5px; /* ✅ Adds spacing */
}

/* ==============================
   🌐 NAVIGATION BAR
================================= */
nav {
    display: flex; /* Horizontal alignment for links */
    align-items: center; /* Vertically centers all items */
    gap: 20px; /* Adds space between each navigation item */
}

nav a {
    color: #1E2761;
    text-decoration: none; /* No underline */
    font-size: 18px;
    padding: 11px 10px;
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth hover transition */
    border-radius: 10px; /* ✅ Ensures the rounded effect remains */
    height: 40px;  /* ✅ Ensures exact same height */
    line-height: 1; /* ✅ Removes extra height caused by text */
    white-space: nowrap; /* ✅ Prevent text from wrapping */
}

/* Hover effect for navigation links */
nav a:hover {
    color: #2C9EFF;
    background-color: rgba(200, 200, 200, 0.2); /* ✅ Very faint grey */
    border-radius: 10px;
    height: 40px;  /* ✅ Ensures exact same height */
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button styling */
.dropbtn {
    width: 180px; /* 🔹 Ensures button width matches dropdown */
}

/* My Account button should be smaller */
.user-menu {
    background-color: transparent; /* ✅ No background on wrapper */
    width: 115px /* 🔹 Forces My Account button to be smaller */
}

/* My Account dropdown should match its button size */
.user-menu .dropdown-content {
    width: 115px /* 🔹 Ensure dropdown width matches My Account button */
}

/* Dropdown button styling */
.dropbtn, .user-menu {
    background-color: #1E2761;
    transition: background-color 0.3s ease;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;  /* ✅ Ensures exact same height */
    line-height: 1; /* ✅ Removes extra height caused by text */
    white-space: nowrap; /* ✅ Prevent text from wrapping */
}

.dropbtn:hover {
    background-color: #2C9EFF;
    color: white;
}

/* ==============================
   🔽 DROPDOWN MENUS (MATCHING STYLES)
================================= */
/* Fix positioning of the dropdown so it appears below My Account */
.dropdown-content {
    position: absolute;
    left: 0;
    top: 100%; /* Moves dropdown below the button */
    width: 180px; /* Default width for other dropdowns */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: none; /* Hide by default */
    z-index: 1000; /* Ensure dropdown appears above other elements */
}

.user-dropdown {
    width: auto;
    top: calc(100% - 20px); /* ✅ Removes extra gap */
    padding: 0; /* ✅ Removes extra padding */
    margin: 0; /* ✅ Ensures no unwanted margin */
}

/* Links inside the dropdown */
.dropdown-content a, .dropdown-content button {
    color: #1E2761;
    padding: 10px; /* Keep same padding as other links */
    text-align: center; /* Center the text */
    display: block;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s ease;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content, .user-menu:hover .user-dropdown {
    display: block;
}

/* Hover effect for dropdown links and Logout button */
.dropdown-content a:hover, .dropdown-content button:hover {
    background-color: #2C9EFF; /* Light blue background */
    color: white;
}

.coming-soon {
  background-color: #fff4db;         /* 🟠 Soft orange background */
  color: firebrick;                    /* 🧡 Darker orange text */
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 2px 2px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid #ffd699;
  vertical-align: super;
}



/* ==============================
   🔵 LOGIN / SIGNUP BUTTONS
================================= */
.btn, .signup-btn {
    background-color: #1E2761;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.btn:hover, .signup-btn:hover {
    background-color: #2C9EFF;
    color: white; /* 🔹 Force text color to stay white */
}

/* ==============================
   📌 MAIN CONTENT AREA
================================= */
.main-content, .content-wrapper, main {
    background-color: white;
    max-width: 100%;
    width: 100%;
    align-items: flex-start; /* ✅ Aligns content to the top */
}

/* Headings */

.main-content h1 {
    color: #1E2761;
    font-size: 2em;
    font-weight: bold;
}

.main-content h2 {
    color: #1E2761;
    font-size: 1.6em;
    font-weight: bold;
}

.main-content h3 {
    color: #1E2761;
    font-size: 1.3em;
    font-weight: bold;
}

.main-content h4 {
    color: #1E2761;
    font-size: 1em;
    font-weight: bold;
}

.main-content p {
    color: black;
    font-size: 1em;
}

.messages {
    list-style: none;
}

.messages li {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
    border-left: 5px solid #155724;
    border-radius: 10px;
}

ul.messages {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

ul.messages li {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
}

ul.messages li.success {
    background-color: #d4edda;
    color: #155724;
}

ul.messages li.error {
    background-color: #f8d7da;
    color: #721c24;
}

ul.messages li.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ==============================
   📱 RESPONSIVE DESIGN
================================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: 10px;
    }

    .nav a {
        display: block;
        margin: 5px 0;
    }

    .main-content {
        padding: 15px;
    }
}


/* Styled Downloads Left Indicator */
/* Ensure "Downloads Left" indicator is visible */
#downloads-left {
    position: relative;  /* ✅ Ensures tooltip is positioned relative to this */
    display: inline-block; /* ✅ Prevents it from being hidden */
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}


/* Tooltip (hidden by default) */
#downloads-left::after {
    content: "Downloads left for this month";
    position: absolute;
    top: 120%; /* Position above the indicator */
    left: 50%;
    transform: translateX(-50%);
    background-color: lightgrey;
    color: white;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, top 0.3s ease;
    white-space: nowrap;
}

/* Show tooltip on hover */
#downloads-left:hover::after {
    opacity: 1;
}

/* Add a slight bounce effect when updating */
#downloads-left.updated {
    transform: scale(1.1);
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 10px;
}

.step {
    flex: 1 1 200px;
    background-color: white;
    border: 1px solid #dce3f0;
    padding: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-10px);
}

.step h3 {
    color: #1E2761;
    margin-bottom: 10px;
}

.step-badge {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
