*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f4f6f9;
    color:#222;
}

.navbar{
    background:#1f2937;
    padding:15px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.navbar .logo{
    color:white;
    font-size:28px;
    font-weight:bold;
    text-decoration:none;
}

.nav-links a{
    color:white;
    text-decoration:none;
    margin-left:20px;
    font-weight:bold;
}

.container{
    width:95%;
    max-width:1600px;
    margin:30px auto;
}

.card{
    background:white;
    border-radius:12px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.card h2{
    margin-bottom:20px;
}

input{
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    width:100%;
}

select{
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    background:white;
}

button{
    padding:12px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.btn-primary{
    background:#2563eb;
    color:white;
}

.btn-danger{
    background:#dc2626;
    color:white;
}

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

.btn-success{
    background:#16a34a;
    color:white;
}

.table{
    width:100%;
    border-collapse:collapse;
}

.table th{
    background:#f3f4f6;
    text-align:left;
    padding:15px;
}

.table td{
    padding:15px;
    border-top:1px solid #eee;
}

.badge{
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
}

.badge-green{
    background:#dcfce7;
    color:#166534;
}

.badge-red{
    background:#fee2e2;
    color:#991b1b;
}

.flex{
    display:flex;
    gap:10px;
    align-items:center;
}

.hostname{
    font-weight:bold;
    color:#111827;
}

.token{
    font-family:monospace;
    font-size:13px;
    word-break:break-all;
}

.copy-btn{
    background:#374151;
    color:white;
}

.login-box{
    max-width:450px;
    margin:80px auto;
}

.login-box input{
    margin-bottom:15px;
}

.center{
    text-align:center;
}

.api-box{
    background:#111827;
    color:#10b981;
    padding:15px;
    border-radius:10px;
    font-family:monospace;
    overflow:auto;
}
.app-layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#111827;
    color:white;
    padding:25px;
    display:flex;
    flex-direction:column;
}

.sidebar-logo{
    font-size:28px;
    font-weight:bold;
    margin-bottom:40px;
}

.sidebar-links{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sidebar-links a{
    color:white;
    text-decoration:none;
    padding:12px;
    border-radius:10px;
    transition:0.2s;
}

.sidebar-links a:hover{
    background:#1f2937;
}

.main-content{
    flex:1;
    display:flex;
    flex-direction:column;
}

.topbar{
    background:white;
    padding:20px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

@media(max-width:900px){

    .sidebar{
        width:100px;
    }

    .sidebar-logo{
        font-size:18px;
    }

    .sidebar-links a{
        font-size:12px;
    }

}
.dark-mode{
    background:#0f172a;
    color:#e5e7eb;
}

.dark-mode .main-content{
    background:#0f172a;
}

.dark-mode .topbar{
    background:#111827;
    color:#e5e7eb;
}

.dark-mode .card{
    background:#1f2937;
    color:#e5e7eb;
    box-shadow:0 2px 10px rgba(0,0,0,0.4);
}

.dark-mode input{
    background:#111827;
    color:#e5e7eb;
    border:1px solid #374151;
}

.dark-mode select{
    background:#111827;
    color:#e5e7eb;
    border:1px solid #374151;
}

.dark-mode .table th{
    background:#111827;
    color:#e5e7eb;
}

.dark-mode .table td{
    border-top:1px solid #374151;
}

.dark-mode .hostname{
    color:#f9fafb;
}

.dark-mode .api-box{
    background:#020617;
    color:#22c55e;
}

.toast{
    position:fixed;
    right:25px;
    bottom:25px;
    background:#111827;
    color:white;
    padding:14px 20px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.25);
    opacity:0;
    transform:translateY(20px);
    transition:0.25s;
    z-index:9999;
}

.toast.show{
    opacity:1;
    transform:translateY(0);
}

.dark-mode .toast{
    background:#2563eb;
}
