/* Top Control Bar - Desktop styles as default */
.top-control-bar {
    display: flex;
    flex-wrap: nowrap; /* Always no wrap */
    align-items: center;
    margin-bottom: 8px; /* 0.5rem - Reverted to original */
    gap: 8px; /* MODIFIED: Further reduced gap from 10px to 8px to prevent overflow */
    justify-content: space-between; /* MODIFIED: Changed to space-between to distribute items */
}
.top-control-bar label {
    font-size: 14px; /* 0.875rem */
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
}
.top-control-bar .form-control,
.top-control-bar .form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px; /* 0.375rem */
    padding: 8px 12px; /* 0.5rem 0.75rem */
    font-size: 14px; /* 0.875rem */
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Specific adjustments for input within flex */
/* This targets the middle group containing URL input, buttons, and progress bar */
.top-control-bar > div.d-flex:nth-child(2) {
    flex-grow: 1; /* Allow the middle group to grow */
    flex-shrink: 1; /* Allow the middle group to shrink */
    min-width: 0; /* Important for flex items to prevent overflow */
    gap: 8px; /* MODIFIED: Reduced gap within this group as well */
    overflow: visible; /* ADDED: Ensures content, like dropdowns, are not clipped by this flex container */
}
.top-control-bar > div.d-flex .form-control {
    flex-grow: 1;
    min-width: 0; /* Allow shrinking */
}

/* Specific styles for the section containing the Upload dropdown */
#linkListSection {
    overflow: visible; /* ADDED: Explicitly ensures dropdown is not clipped by this div */
}


/* MMSEO Title - Desktop styles as default */
.mmseo-title {
    /* Keep these for the container */
    display: block !important; /* Ensure desktop title is visible */
    flex-shrink: 1; /* Allow title to shrink if necessary */
    min-width: 0; /* Allow title to shrink if necessary */
    margin-right: 24px; /* 1.5rem */

    /* REMOVE or UNSET these if they were previously there for text */
    font-family: unset; /* Ensures no text font styles apply */
    font-size: unset;        /* Ensures no text font styles apply */
    font-weight: unset;      /* Ensures no text font styles apply */
    color: unset;            /* Ensures no text color applies */
    text-align: unset;       /* Ensures no text alignment applies */
    width: auto; /* Let the image define the width */
}

/* Add these styles specifically for the image inside .mmseo-title */
.mmseo-title img {
    display: block; /* Make the image a block element */
    max-width: 100%; /* Ensure the image scales down if too wide */
    height: auto;        /* Maintain the image's aspect ratio */
    height: 40px; /* Example: Adjust this to your logo's desired height */
    margin-left: 25px;
}


        /* NEW: Styles for Export Button (if it's a standalone button, not a dropdown) */
        #clearButton { /* Added #clearButton */
            background-color: #067a3a; /* MODIFIED */
            color: white; /* MODIFIED */
            border: 1px solid #067a3a; /* MODIFIED */
            border-radius: 6px; /* MODIFIED: Added 6px radius */
            font-weight: 500; /* MODIFIED */
            padding: 8px 25px;
            font-size: 14px;
            transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        #clearButton:hover { /* Added #clearButton */
            background-color: #067a3a; /* MODIFIED */
            color: white; /* MODIFIED */
            border-color: #067a3a; /* MODIFIED */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

/* Progress Bar Styles */
.progress {
    height: 40px; /* 2.5rem */
    background-color: #067d3c; /* red-500 */
    border: 1px solid #067d3c; /* red-600 */
    border-radius: 6px; /* MODIFIED: Reverted to 6px radius */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: relative; /* For absolute positioning of text */
    display: flex; /* To center content inside */
    align-items: center; /* To center content inside */
    justify-content: center; /* Keep text centered */
    overflow: hidden; /* Ensures the inner bar stays within bounds */
    width: auto; /* Allow auto width */
    min-width: 130px; /* Keep a minimum width */
    flex-shrink: 1; /* Allow progress bar to shrink */
    flex-grow: 0; /* Do not allow it to grow beyond its content */
}

.progress-bar {
    background-color: #067a3a; /* MODIFIED: Changed progress bar color */
    border-radius: 6px; /* MODIFIED: Reverted to 6px radius */
    transition: width 0.5s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}
#progressText {
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 14px; /* 0.875rem */
    font-weight: 600;
    color: white;
    z-index: 1;
}

/* Modal Styles */
.modal-backdrop.show {
    backdrop-filter: blur(5px);
}
.modal-content {
    border-radius: 12px; /* 0.75rem */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}
.modal-body {
    padding-top: 0;
}
.modal-footer {
    border-top: none;
}

/* Google Sign-In Button Container */
#g_id_onload {
    display: flex;
    justify-content: center;
    margin-bottom: 16px; /* 1rem */
}

.message.alert {
    margin-top: 16px; /* 1rem */
    font-size: 14px; /* 0.875rem */
}


/* Container for the number boxes */
.numbers-boxes-container {
    display: flex;
    flex-wrap: nowrap; /* Ensure no wrapping for 8 boxes in one line */
    justify-content: center; /* Center boxes horizontally */
    gap: 15px; /* Space between boxes changed to 15px */
    padding: 0 24px; /* Match window-content padding */
    overflow-x: auto; /* Allow horizontal scrolling if content overflows */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.numbers-boxes-container::-webkit-scrollbar {
    display: none;
}



/* New style for circular icon-only buttons */
.icon-button-circle {
    width: 40px; /* Same as profile-icon-only-wrapper */
    height: 40px; /* Same as profile-icon-only-wrapper */
    border-radius: 50%; /* Make it circular */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Remove padding to center the icon */
    flex-shrink: 0; /* Prevent shrinking in flex container */
    font-size: 18px; /* Adjust icon size */
    color: white; /* MODIFIED: Text color for icon */
    background-color: #a8e349; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-weight: 500; /* MODIFIED */
}

.icon-button-circle:hover {
    background-color: #a8e349; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #a8e349; /* MODIFIED */
}

/* Specific styles for the crawler settings button */
#crawlerSettingsButton {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
    border-radius: 6px; /* MODIFIED: Added 6px radius */
    font-weight: 500; /* MODIFIED */
}

#crawlerSettingsButton:hover {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
}

/* Specific styles for the header's URL input group */
.header-input-group {
    flex-grow: 0.7; /* MODIFIED: Reduced flex-grow to make it less dominant */
    min-width: 0; /* Allow the input group to shrink */
    max-width: 750px; /* **UPDATED: Increased width for the header search bar** */
}

.header-input-group .form-control {
    border-right: none; /* Remove right border for input */
    border-radius: 6px 0 0 6px; /* Rounded left only, square right */
    background-color: #ffffff;
    color: #067a3c;
    border: 1px solid #067a3c; /* red-600 */
    flex-grow: 1;
    min-width: 0;
    width:300px;

}
/* Ensure the input's focus state also has the red border */
.header-input-group .form-control:focus {
    border-color: #067a3a; /* MODIFIED */

}

.header-input-group .input-group-text {
    background-color: #d4e300; /* MODIFIED */
    color: black; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    border-left: none; /* No left border for appended elements */
    border-radius: 6px; /* MODIFIED: Added 6px radius for 'X' button */
    padding: 8px 12px; /* Consistent padding */
    font-size: 14px; /* Consistent font size */
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0; /* Prevent buttons from shrinking too much */
    font-weight: 500; /* MODIFIED */
}
.header-input-group .input-group-text:hover {
    background-color: #d4e300; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
}


.header-input-group .input-group-text:last-child {
    border-radius: 0 6px 66px 0; /* MODIFIED: Right side rounded for "All Subdomains" if it's the last in a group with the input */
}

/* Style for the black crawl scope button */
.header-input-group .crawl-scope-button {
    background-color: #d8e300; /* MODIFIED */
    color:black; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    border-radius: 6px; /* MODIFIED: Added 6px radius for "All Subdomains" if standalone button */
    font-weight: 500; /* MODIFIED */
}

.header-input-group .crawl-scope-button:hover {
    background-color: #d4e300; /* MODIFIED */
    color: black; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
}

/* Adjust the dropdown menu position */
.header-input-group .dropdown-menu {
    margin-top: 0;
    border-radius: 6px !important; /* MODIFIED: Added 6px radius to dropdown menus */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #d4e300; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    width: auto;
    min-width: unset;
    max-width: 100%;
}

/* Style for dropdown items within the header input group */
.header-input-group .dropdown-menu .dropdown-item {
    color: black; /* MODIFIED */
    background-color: #d4e300; /* MODIFIED */
    border-radius: 6px !important; /* MODIFIED: Added 6px radius to dropdown items */
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500; /* MODIFIED */
}

.header-input-group .dropdown-menu .dropdown-item:hover,
.dropdown-menu[aria-labelledby="filterDropdown"] .dropdown-item:focus {
    background-color: #d4e300; /* MODIFIED */
    color: black; /* MODIFIED */
}

/* NEW: Styles for Crawl/Stop buttons (added here for precedence) */
#crawlButton.btn-mac-primary {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow */
    font-weight: 500; /* MODIFIED */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px; /* MODIFIED: Added 6px radius */
}
#crawlButton.btn-mac-primary:hover {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

#stopButton.btn-mac-danger {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px; /* MODIFIED: Added 6px radius */
    font-weight: 500; /* MODIFIED */
}
#stopButton.btn-mac-danger:hover {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    box-shadow: 0 4 exquisite 8px rgba(0, 0, 0, 0.15);
}
/* Ensure disabled stop button remains vibrant red and remove opacity */
#stopButton.btn-mac-danger:disabled {
    background-color: #067a3a; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

/* NEW: Styles for the Mode Dropdown Button (This is your "Spider" button) */
#modeDropdown {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    border-radius: 6px; /* MODIFIED: Added 6px radius */
    font-weight: 500; /* MODIFIED */
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

#modeDropdown:hover {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* NEW: Styles for the Mode Dropdown Menu */
.dropdown-menu[aria-labelledby="modeDropdown"] {
    margin-top: 0;
    border-radius: 6px !important; /* MODIFIED: Added 6px radius to dropdown menus */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #067a3a; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    width: auto;
    min-width: unset;
    max-width: 100%;
}

/* NEW: Styles for dropdown items within the Mode dropdown menu */
.dropdown-menu[aria-labelledby="modeDropdown"] .dropdown-item {
    color: white; /* MODIFIED */
    background-color: #067a3a; /* MODIFIED */
    border-radius: 6px !important; /* MODIFIED: Added 6px radius to dropdown items */
    margin: 0px 0px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500; /* MODIFIED */
}

.dropdown-menu[aria-labelledby="modeDropdown"] .dropdown-item:hover,
.dropdown-menu[aria-labelledby="modeDropdown"] .dropdown-item:focus {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
}

/* NEW: Styles for Upload Button (assuming it's a dropdown toggle) */
#uploadDropdown {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    border-radius: 6px; /* MODIFIED: Added 6px radius */
    font-weight: 500; /* MODIFIED */
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#uploadDropdown:hover {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* NEW: Styles for the Upload Dropdown Menu */
.dropdown-menu[aria-labelledby="uploadDropdown"] {
    margin-top: 0;
    border-radius: 6px !important; /* MODIFIED: Added 6px radius to dropdown menus */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #067a3a; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    width: auto;
    min-width: unset;
    max-width: 100%;
    z-index: 1060;
}

/* NEW: Styles for dropdown items within the Upload dropdown menu */
.dropdown-menu[aria-labelledby="uploadDropdown"] .dropdown-item {
    color: white; /* MODIFIED */
    background-color: #067a3a; /* MODIFIED */
    border-radius: 6px !important; /* MODIFIED: Added 6px radius to dropdown items */
    margin: 0px 0px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500; /* MODIFIED */
}

.dropdown-menu[aria-labelledby="uploadDropdown"] .dropdown-item:hover,
.dropdown-menu[aria-labelledby="uploadDropdown"] .dropdown-item:focus {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
}

/* NEW: Styles for Export Button (if it's a standalone button, not a dropdown) */
#exportButton, .export-button {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border: 1px solid #067a3a; /* MODIFIED */
    border-radius: 6px; /* MODIFIED: Added 6px radius */
    font-weight: 500; /* MODIFIED */
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#exportButton:hover, .export-button:hover {
    background-color: #067a3a; /* MODIFIED */
    color: white; /* MODIFIED */
    border-color: #067a3a; /* MODIFIED */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* NEW: Hidden section class to control visibility */
.hidden-section {
    display: none !important;
}