@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Use the brick wall background with a dark overlay */
    background: #0a0a10 url('../img/white_brick_wall.png') repeat;
    /* background-size: 40px; */
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 16, 0.7) 0%, rgba(5, 5, 8, 0.95) 100%);
    z-index: 0;
}

.container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 900px;
    width: 90%;
    padding: 2.5rem;
    background: rgba(20, 20, 30, 0.6);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 219, 222, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 1;
}

.main-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-panel {
    background: rgba(10, 10, 15, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.logo {
    margin-bottom: 2rem;
    text-align: center;
}

.logo img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 219, 222, 0.4));
}

.content {
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    /* Neon text effect */
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #00dbde, 0 0 40px #00dbde;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #00dbde;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 219, 222, 0.2);
    padding-bottom: 0.5rem;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #00dbde;
    border-radius: 50%;
    animation: spin 1s linear infinite, neon-glow 2s alternate infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes neon-glow {
    0% { box-shadow: 0 0 5px rgba(0, 219, 222, 0.2); }
    100% { box-shadow: 0 0 20px rgba(0, 219, 222, 0.6); }
}

.status {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #a0a0c0;
    min-height: 1.5em;
}

.connection-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #a0a0c0;
}

.value {
    color: #fff;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Error State Styles */
.error-container {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-out;
}

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

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.error-title {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.error-desc {
    color: #ff9e9e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.error-action {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-retry, .btn-download {
    background: transparent;
    color: #fff;
    border: 1px solid #00dbde;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-retry:hover {
    background: rgba(0, 219, 222, 0.2);
    box-shadow: 0 0 15px rgba(0, 219, 222, 0.4);
}

.btn-download {
    width: 100%;
    text-align: center;
    border-color: #fc00ff;
    margin-top: auto;
}

.btn-download:hover {
    background: rgba(252, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(252, 0, 255, 0.4);
}

.patch-notes {
    list-style: none;
    font-size: 0.85rem;
    color: #a0a0c0;
}

.patch-notes li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.patch-notes strong {
    color: #fff;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.green { background: #00ff9d; box-shadow: 0 0 8px #00ff9d; }
.status-dot.yellow { background: #ffeaa7; box-shadow: 0 0 8px #ffeaa7; }

.download-section {
    margin-top: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

.footer {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
    color: #4a4a6a;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .footer {
        grid-column: 1;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
/* Top Navigation */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.lang-select {
    background: rgba(20, 20, 30, 0.8);
    color: #a0a0c0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.lang-select:focus {
    border-color: #00dbde;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Console Box */
.console-box {
    background: #05050a;
    border: 1px solid #1a1a24;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    height: 180px;
    overflow-y: auto;
    text-align: left;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a0a0c0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.console-box::-webkit-scrollbar {
    width: 6px;
}
.console-box::-webkit-scrollbar-thumb {
    background: #2a2a35;
    border-radius: 3px;
}

.log-line {
    margin-bottom: 4px;
    word-wrap: break-word;
}

/* Footer Links */
.footer-links {
    margin-top: 0.8rem;
}

.footer-links a {
    color: #00dbde;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: #101018;
    border: 1px solid rgba(0, 219, 222, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #a0a0c0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff6b6b;
}

.modal-body-text {
    margin-top: 1.5rem;
    color: #d0d0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-body-text p {
    margin-bottom: 1rem;
}
