/* Default: Light Mode (Blue Background) */

/* Top Navigation Panel */
.top-nav {
    background-color: #007bff; /* Light mode background: blue */
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 2px -2px gray;
    display: flex; /* Add Flexbox */
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out elements */
}

/* Navigation list */
.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-nav ul li {
    margin: 0 10px;
}

/* Hamal Time headline */
.nav-headline {
    font-weight: bold;
    font-size: 2em;
    flex-grow: 1; /* Take up remaining space */
    text-align: center;
    margin: 0; /* Remove margin */
    padding: 0; /* Remove padding */
    position: absolute; /* Absolutely position the headline */
    left: 50%; /* Position the left edge in the middle */
    transform: translateX(-50%); /* Shift it back by half its width */
    color: #fff; /* White text color */
}

.top-nav ul li a {
    color: #fff; /* Adjusted link color */
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s; /* Combined transition */
}

.top-nav ul li a:hover {
    background-color: #0056b3;
    color: #fff; /* Adjusted text color on hover */
}


/* Loading Spinner */
.spinner {
    width: 25px;
    height: 25px;
    border: 4px solid rgba(255, 255, 255, 0.3);  /* Light border for contrast */
    border-top: 4px solid #ffffff;  /* Color for the spinning part */
    position: fixed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 14px;
    left: 60px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Adjust for Dark Mode */
[data-theme="dark"] .spinner {
    border: 4px solid rgba(0, 0, 0, 0.3);
    border-top: 4px solid #ffffff;
}


/* Dark Mode: Teal Background */
[data-theme="dark"] .top-nav {
    background-color: #009a9a; /* Dark mode background: teal */
    color: #fff; /* White text */
}

[data-theme="dark"] .top-nav ul li a {
    color: #e1e1e1; /* White links in dark mode */
}

[data-theme="dark"] .top-nav ul li a:hover {
    background-color: #007b7b; /* Same hover color in dark mode */
    color: #fff; /* Adjusted text color on hover */
}
