header {
    background-color: #1a3a52;
    border-bottom: 3px solid black;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

html {
    height: 100%;
    scrollbar-width: none !important;
}

html::-webkit-scrollbar {
    display: none !important;
}

body {
    background-image: url('../main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    scrollbar-width: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

header {
    background-color: #1a3a52;
    border-bottom: 3px solid black;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #2c8b13;
}

.nav-brand-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.nav-brand-link:hover {
    color: #f3ede1;
    text-shadow: 0 0 10px rgba(243, 237, 225, 0.5);
}

nav {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    padding: 16px 24px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

nav a:last-child {
    border-right: none;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffeb3b;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: left;
}

nav a:hover {
    color: #ffeb3b;
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

nav a:hover::before {
    transform: scaleX(1);
}

.admin-link {
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.1) !important;
}

.admin-link:hover {
    color: #b91c1c !important;
    background-color: rgba(185, 28, 28, 0.2) !important;
}

.admin-link::before {
    background-color: #dc2626;
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.modal-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #A0826D;
    margin: 2% auto;
    padding: 12px;
    border: 2px solid black;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 380px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content .blk-title-outer {
    margin-bottom: 12px;
    margin-top: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.modal-content .blk-title-bar {
    background-color: #fbfbfa;
    border: 2px solid black;
    padding: 12px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.close {
    color: #666;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.modal-content .blk-title-bar h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-form-container {
    background-color: #f3ede1;
    border: 2px solid black;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    padding: 12px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 0;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 1px #8B4513;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #4ade80;
    color: #ffffff;
    border: 2px solid #16a34a;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.auth-btn:hover {
    background-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.auth-links {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.auth-links p {
    color: #666;
    margin: 0 0 8px 0;
    font-size: 0.85rem;
}

.auth-links a {
    color: #8B4513;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #654321;
    text-decoration: underline;
}

#loginMessage {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

#loginMessage.error {
    background-color: #fee;
    color: #c33;
    border-color: #c33;
}

#loginMessage.success {
    background-color: #efe;
    color: #363;
    border-color: #363;
}

#serverModal .modal-content {
    max-width: 380px;
}

/* Server Modal Styles */
.server-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.server-info-section {
    padding: 12px;
    background-color: #fbfbfa;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.server-info-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a3a52;
    font-size: 14px;
}

.server-info-section p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.server-info-section ol,
.server-info-section ul {
    margin: 12px 0;
    padding-left: 20px;
    color: #333;
    font-size: 14px;
}

.server-info-section li {
    margin: 12px 0;
}

.server-status-online {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: default;
    line-height: 1;
    vertical-align: middle;
}

.copy-ip-btn {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    height: auto;
    min-width: auto;
    font-family: inherit;
}

.copy-ip-btn:hover {
    background-color: #1976D2;
}

.copy-ip-btn.copied {
    background-color: #4CAF50;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        max-width: 95%;
    }

    .modal-content .blk-title-bar h2 {
        font-size: 1.3rem;
    }
}

/* Auth message styling */
.auth-message {
    display: none;
}

.auth-message.show {
    display: block;
}

/* Server status line styling */
.server-status-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Footer disclaimer styling */
.footer-disclaimer {
    font-size: 11px;
    color: #808080;
    margin-top: 10px;
}

/* CoreProtect stats visibility */
#coreprotect-stats {
    display: none;
}

#coreprotect-stats.visible {
    display: block;
}

/* Hidden elements */
.hidden-heading {
    display: none;
}