/* Theme Toggle Button */
.theme-toggle-container {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1000;
}

.theme-toggle-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 18px;
}

.theme-toggle-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-accent);
    transform: scale(1.05);
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    padding-bottom: 70px; /* Just enough space for the original footer */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Universal Theme Styles */
input, select, button {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--text-accent);
    outline: none;
}

button {
    background-color: var(--button-bg);
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: var(--button-hover);
}

/* Labels and Text Elements */
label, span, p, div {
    color: var(--text-primary);
}

/* Specific label styling for forms */
label {
    color: var(--text-primary) !important;
    font-weight: bold;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

/* Select dropdowns specific styling */
select {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--input-border) !important;
}

/* Container for Epoch Clock and Tools */
.epoch-container {
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.inline {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.ecclock {
    margin-left: 5px;
    font-weight: bold;
    color: var(--text-accent);
}

/* Navigation Styling */
nav {
    display: flex;
    justify-content: center;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-accent);
    text-decoration: underline;
}

/* Copy Button Styles */
.copy-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.copy-button:hover {
    background-color: var(--text-accent);
    color: white;
    border-color: var(--text-accent);
}

