*{
    box-sizing:border-box;
}


body {
    margin: 0;
    color: #eee;
    font-family: Arial, sans-serif;

    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        url("/static/images/background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.container{

    width:90%;

    max-width:1200px;

    margin:auto;

}



.navbar{

    padding:20px;

    background:#10151d;

    border-bottom:1px solid #293241;

}


.navbar-brand{

    font-size:22px;

    font-weight:bold;

}



.header{

    display:flex;

    align-items:center;

    gap:25px;

    margin-bottom:35px;

}



.main-logo{

    width:120px;

    height:120px;

    object-fit:contain;

    border-radius:20px;

}



.header h1{

    font-size:38px;

    margin:0;

}



.subtitle{

    color:#9ca3af;

    margin-top:8px;

}




.dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    margin-top:30px;
}




.card{

    background:#111827;

    border:1px solid #1f2937;

    border-radius:18px;

    padding:25px;

    transition:.2s;

}

.card:hover{

    transform:translateY(-4px);

    border-color:#2563eb;

}

.card h3{

    margin-bottom:20px;

    font-size:22px;

}

.card p{

    margin:10px 0;

    font-size:17px;

}


.zomboid-card{

    border-color:#3b82f6;

}



.server-status{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:15px;

}




.status-led{

    width:14px;

    height:14px;

    background:#22c55e;

    border-radius:50%;

}



.status-led.offline{

    background:#ef4444;

}



.server-buttons{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}



button{

    border:none;

    padding:12px 18px;

    border-radius:10px;

    cursor:pointer;

    color:white;

}



.btn-start{

    background:#16a34a;

}



.btn-restart{

    background:#2563eb;

}



.btn-stop{

    background:#dc2626;

}




input{

    width:100%;

    padding:12px;

    border-radius:10px;

    border:none;

    margin:10px 0;

    background:#111827;

    color:white;

}



.service{

    display:flex;

    justify-content:space-between;

    padding:12px;

    border-bottom:

    1px solid rgba(255,255,255,.1);

}



footer{

    text-align:center;

    padding:30px;

    color:#777;

}

#announce-message + button{

    background:#2563eb;

    color:white;

    font-weight:bold;

    padding:12px 20px;

    border-radius:10px;

    border:none;

    cursor:pointer;

    transition:.2s;

}


#announce-message + button:hover{

    background:#3b82f6;

    transform:translateY(-2px);

}

.btn-announce{

    background:#2563eb !important;

    color:white !important;

    border:none;

    padding:12px 20px;

    border-radius:10px;

    font-weight:bold;

    cursor:pointer;

}


.btn-announce:hover{

    background:#3b82f6 !important;

}

/* ==========================
   ADMIN LAYOUT
========================== */

.admin-layout{

    display:flex;

    gap:30px;

    align-items:flex-start;

}


.sidebar{

    width:240px;

    min-height:80vh;

    background:#10151d;

    border:1px solid #293241;

    border-radius:18px;

    padding:20px;

    position:sticky;

    top:20px;

}


.sidebar-logo{

    width:90px;

    display:block;

    margin:0 auto 20px;

}


.sidebar h2{

    text-align:center;

    margin-bottom:25px;

}


.sidebar button{

    width:100%;

    margin-bottom:12px;

    background:#1f2937;

    color:white;

    padding:12px;

    border-radius:10px;

    border:none;

    cursor:pointer;

    transition:.2s;

}


.sidebar button:hover{

    background:#2563eb;

}


.main-content{

    flex:1;

}

.menu-btn{

    display:block;

    width:100%;

    text-decoration:none;

    color:white;

    background:#1b2433;

    padding:14px;

    border-radius:12px;

    margin-bottom:12px;

    transition:.2s;

}

.menu-btn:hover{

    background:#2563eb;

}

.card h1{

    font-size:48px;

    margin:15px 0 5px;

    font-weight:bold;

    color:#60a5fa;

}

.card small{

    color:#94a3b8;

    font-size:16px;

}

.card h3{

    font-size:18px;

    color:#cbd5e1;

    margin:0;

}

/* ===== LOGS ===== */

.logs-toolbar{

    display:flex;

    gap:10px;

    margin-bottom:20px;

}

.logs-btn{

    background:#2563eb;

    color:white;

    border:none;

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    font-weight:bold;

}

.logs-btn:hover{

    background:#3b82f6;

}

.logs-search{

    flex:1;

    background:#111827;

    color:white;

    border:1px solid #374151;

    border-radius:10px;

    padding:10px 14px;

    font-size:15px;

}

.logs-search:focus{

    outline:none;

    border-color:#2563eb;

}

.logs-check{

    display:flex;

    align-items:center;

    gap:8px;

    color:#cbd5e1;

    font-size:14px;

}

/* ===========================
   Logs
=========================== */

.logs-container{
    width:100%;
    max-width:100%;
    margin-top:20px;
    overflow-x:auto;
}

#server-logs{
    background:#050505;
    color:#00ff88;
    padding:20px;
    border-radius:12px;
    height:700px;
    margin:0;

    width:100%;
    max-width:100%;
    box-sizing:border-box;

    overflow:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;

    font-family:monospace;
}

/* ===========================
   Tarjetas del servidor
=========================== */

.server-dashboard .server-card{

    padding:16px;
    min-height:120px;

}

.server-dashboard .server-card h3{

    font-size:16px;
    margin-bottom:12px;

}

.server-dashboard .server-card h1{

    font-size:30px;
    margin:0;

}

.btn-warning{
    background:#f59e0b;
    color:white;
}

.btn-warning:hover{
    filter:brightness(1.1);
}

/* ===== WEB PÚBLICA ===== */

.public-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:90vh;
    padding:40px 20px;
}

.public-card{
    width:100%;
    max-width:1100px;

    padding:25px;

    background:rgba(15,20,30,.88);

    border-radius:20px;

    box-shadow:0 20px 50px rgba(0,0,0,.5);

    backdrop-filter:blur(8px);
}

.public-card h1{
    font-size:35px;
    margin:15px 0;
    color:white;
}

.hero{
    display:flex;
    align-items:center;
    gap:30px;
    margin-bottom:25px;
}

.main-logo{
    width:130px;
    height:130px;
    border-radius:50%;
    flex-shrink:0;
}

.info-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:20px;

    padding:18px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

    font-size:22px;
}

.info-item span{
    font-weight:600;
}

.info-item strong{
    color:white;
    font-weight:700;
}

.button{

    background:#c62828;

    color:white !important;

    text-decoration:none;

    padding:10px 18px;

    border-radius:8px;

    font-weight:bold;

    transition:.25s;

    display:inline-block;
}

.button:hover{

    background:#e53935;

    transform:translateY(-2px);
}