.epochs-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between this section and the next */
}

.epochs-container button {
    background-color: #fff;
    color: #2c3e50; /* Subtle color */
    border: 1px solid #2c3e50;
    padding: 7px 7px;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.epochs-container button:hover {
    background-color: #2c3e50;
    color: white;
}

.epochs-container select {
    background-color: #fff;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 6px 8px;
    border-radius: 4px;
    margin: 2px;
    cursor: pointer;
    font-size: 14px;
}

.epochs-container select:focus {
    border-color: #af65d9;
    outline: none;
}

.epochs-container input[type="text"] {
    border: 1px solid #2c3e50;
    padding: 6px 8px;
    border-radius: 4px;
    margin: 2px;
}

.epochs-container input[type="text"]:focus {
    border-color: #af65d9;
    outline: none;
}

.epo-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between the input and the results */
}

.epo-container button {
    background-color: #fff;
    color: #2c3e50; /* Subtle color */
    border: 1px solid #2c3e50;
    padding: 7px 7px;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.epo-container button:hover {
    background-color: #2c3e50;
    color: white;
}

.epo-container input[type="number"] {
    border: 1px solid #2c3e50;
    padding: 6px 8px;
    border-radius: 4px;
    margin: 2px;
}

.epo-container input[type="number"]:focus {
    border-color: #af65d9;
    outline: none;
}

.results {
    display: flex;
    align-items: center;
    gap: 5px; /* Add some space between each result item */
    margin-top: 2px; /* Space above the results */
    margin-left: 5px; /* Consistent spacing */
    font-size: 14px;
    color: #2c3e50;
}

/* Day difference indicator styles for epoch converter */
.day-diff {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
}

.day-diff.yesterday {
    background: #fff3cd;
    color: #856404;
}

.day-diff.tomorrow {
    background: #d4edda;
    color: #155724;
}

/* Dark mode support for day-diff */
html[data-theme="dark"] .day-diff.yesterday {
    background: #665200;
    color: #ffc107;
}

html[data-theme="dark"] .day-diff.tomorrow {
    background: #0d4023;
    color: #28a745;
}

#result {
    margin-left: 10px;
    color: #2c3e50; /* Subtle color */
    font-size: 14px;
}

#countDisplay,
#withoutSpaceCountDisplay,
#wordCountDisplay,
#betweenCountDisplay {
    margin-left: 10px;
    color: #2c3e50; /* Subtle color */
    font-size: 14px;
    font-weight: normal;
}

.btn-container {
    margin-left: 10px;
}

#epochTime {
    width: 20ch;
}

.dropdown-container {
    margin-left: 3px;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 150px;
    background-color: #d3d3d3;
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1500px) {
    .sql-container .container, .hex-container .container{
        margin-bottom: 3px;
    }
    .sql-container, .hex-container, .converter-container{
        margin-top: 0px;
    }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    input[type="text"] {
        width: 100%;
    }

    .sql-container,
    .hex-container {
        width: 95%;
        margin: 10px auto;
    }
    
    /* Adjust theme toggle position for mobile to avoid overlap with home icon */
    .theme-toggle-container {
        top: 55px !important;
        right: 15px !important;
    }
}

/* Error Message Styles */
.error-message {
    color: #ff0000;
    font-size: 0.9em;
    margin-top: 10px;
}

/* General error class for validation messages - only show red when there's content */
.error {
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 15px; /* Minimal extra space to prevent footer overlap */
    padding: 5px;
    min-height: 0;
}

/* Only show red styling when error class has content */
.error:not(:empty) {
    color: #ff0000;
    border: 1px solid #ff0000;
    background-color: #ffe6e6;
    border-radius: 4px;
}

/* Specific error message styling for XML and JSON converters */
#errorMsg, #jsonErrorMsg {
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 20px; /* Just enough space for footer clearance */
    padding: 5px;
    display: block;
    min-height: 15px; /* Minimal space when empty */
}

/* Only show error styling when error class is applied AND content exists */
#errorMsg.error, #jsonErrorMsg.error {
    color: #ff0000;
    border: 1px solid #ff0000;
    background-color: #ffe6e6;
    border-radius: 4px;
    font-weight: bold;
}

/* Success styling for validation messages */
#errorMsg.success, #jsonErrorMsg.success {
    color: #008000;
    border: 1px solid #008000;
    background-color: #e6ffe6;
    border-radius: 4px;
    font-weight: bold;
}

/* Upload button styling for Content Comparer */
.upload-btn {
    background: lightslategray;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-btn:hover {
    background: #607080;
}

button {
    background-color: #fff;
    color: #2c3e50; /* Subtle color */
    border: 1px solid #2c3e50;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:focus {
    outline: none;
}

/* Container for the form inputs to display them in a single line */
        .hf-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px; /* Controls the spacing between groups */
        align-items: flex-end; /* Align items to the bottom for consistent button/input height */
    }

       .input-group {
        display: flex;
        flex-direction: column;
    }

    .input-group label {
        margin-bottom: 2px; /* Reduces gap between label and input box */
        font-size: 14px; /* Optional: Adjust label font size if needed */
        color: #2c3e50;
        font-weight: normal;
    }

    .input-group input[type="number"] {
        border: 1px solid #2c3e50;
        padding: 6px 8px;
        border-radius: 4px;
        margin: 2px 0;
        width: 65px;
        font-size: 14px;
    }

    .input-group input[type="number"]:focus {
        border-color: #af65d9;
        outline: none;
    }

    .input-group select {
        border: 1px solid #2c3e50;
        padding: 6px 8px;
        border-radius: 4px;
        margin: 2px 0;
        background-color: #fff;
        color: #2c3e50;
        cursor: pointer;
        font-size: 14px;
    }

    .input-group select:focus {
        border-color: #af65d9;
        outline: none;
    }

    #hf button {
        background-color: #fff;
        color: #2c3e50;
        border: 1px solid #2c3e50;
        padding: 7px 7px;
        border-radius: 4px;
        margin: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 14px;
        height: fit-content;
    }

    #hf button:hover {
        background-color: #2c3e50;
        color: white;
    }

    .result-container {
        margin-left: 15px;         /* Space between button and result display */
        align-self: flex-end;      /* Align with button at bottom */
        margin-bottom: 5px;        /* Match button margin */
        font-size: 14px;
        color: #2c3e50;
        display: flex;
        align-items: center;
        min-height: 33px;          /* Match button height for proper alignment */
    }

 /* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container for the main content */
