/* Base Template Styles - Navigation, Breadcrumb, Inputs, Hints */

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #2a2a3a;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fc3;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: inline;
    color: #fc3;
}

.breadcrumb li:not(:last-child)::after {
    content: " / ";
    margin: 0 10px;
    color: #888;
}

.breadcrumb a {
    color: #fc3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .active {
    color: #fff;
}

/* Main Navigation */
.newui-nav {
    background-color: #1a1a2a;
    padding: 15px 20px;
    border-bottom: 2px solid #fc3;
}

.newui-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.newui-nav li {
    display: inline;
}

.newui-nav a {
    color: #fc3;
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.newui-nav a:hover {
    background-color: #3a3a4a;
}

.newui-nav .logo {
    margin-right: 20px;
}

.newui-nav .logo img {
    height: 40px;
}

/* PWA Menu Dropdown */
.newui-nav .pwa-menu {
    position: relative;
}

.newui-nav .pwa-menu-toggle {
    cursor: pointer;
}

.newui-nav .pwa-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a3a;
    border: 2px solid #fc3;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 5px;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.newui-nav .pwa-menu:hover .pwa-submenu,
.newui-nav .pwa-menu.active .pwa-submenu {
    display: flex;
}

.newui-nav .pwa-submenu li {
    display: block;
    width: 100%;
}

.newui-nav .pwa-submenu a {
    display: block;
    padding: 10px 20px;
    color: #fc3;
    text-decoration: none;
    font-size: 1em;
    border-radius: 0;
    transition: background-color 0.2s;
}

.newui-nav .pwa-submenu a:hover {
    background-color: #3a3a4a;
    color: #fff;
}

.newui-nav .pwa-menu-toggle .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s;
}

.newui-nav .pwa-menu:hover .pwa-menu-toggle .fa-chevron-down,
.newui-nav .pwa-menu.active .pwa-menu-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile responsiveness for PWA menu */
@media (max-width: 768px) {
    .newui-nav .pwa-submenu {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

.newui-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Input Field Styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    border: 3px solid #fc3;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: #fc3;
    color: #0a0a23;
    font-size: 1em;
    font-weight: 500;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 204, 51, 0.4);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: #555;
    opacity: 0.8;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #ffd700;
    background-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 204, 51, 0.6), 0 0 0 3px rgba(255, 204, 51, 0.3);
}

/* Hint Button and Modal */
.hint-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fc3;
    color: #0a0a23;
    border: 3px solid #0a0a23;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s;
}

.hint-button:hover {
    background-color: #ffd700;
    transform: scale(1.1);
}

.hint-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.hint-modal.active {
    display: flex;
}

.hint-content {
    background-color: #2a2a3a;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #fc3;
    position: relative;
}

.hint-content h2 {
    color: #fc3;
    margin-top: 0;
}

.hint-content p {
    color: #fff;
    line-height: 1.6;
}

.hint-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fc3;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-close:hover {
    color: #ffd700;
}

/* Version Footer */
.version-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 42, 0.95) 0%, rgba(26, 26, 42, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 204, 51, 0.2);
    padding: 8px 20px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.version-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: #888;
}

.version-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background-color: rgba(42, 42, 58, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(255, 204, 51, 0.2);
    transition: all 0.3s ease;
}

.version-info span:hover {
    background-color: rgba(42, 42, 58, 0.9);
    border-color: rgba(255, 204, 51, 0.4);
    color: #fc3;
    transform: translateY(-2px);
}

.version-info i {
    font-size: 0.9em;
    color: #fc3;
}

.version-branch {
    color: #88c0d0;
}

.version-date {
    color: #a3be8c;
}

.version-hash {
    color: #ebcb8b;
    font-family: 'Courier New', monospace;
}

/* Adjust hint button to not overlap with footer */
.hint-button {
    bottom: 60px; /* Moved up to avoid footer */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .version-info {
        font-size: 0.75em;
        gap: 10px;
        padding: 0;
    }
    
    .version-info span {
        padding: 3px 8px;
    }
    
    .version-footer {
        padding: 6px 10px;
    }
    
    .hint-button {
        bottom: 55px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Ensure content doesn't get hidden behind footer */
.newui-content {
    padding-bottom: 60px; /* Add padding to prevent content from being hidden by fixed footer */
}