/* ===================================================
   DARCOM AI Cyber Lab Controller
   Version 1.0
=================================================== */

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

body{
    background:#f4f7fb;
    font-family:Arial, Helvetica, sans-serif;
    color:#222;
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
    padding:20px;
}

/* ---------- Header ---------- */

header{
    background:#1e3a8a;
    color:white;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
}

header h1{
    font-size:32px;
}

header p{
    margin-top:8px;
    color:#dbeafe;
}

/* ---------- Cards ---------- */

.card{

    background:white;

    border-radius:10px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:0 2px 10px rgba(0,0,0,.1);

}

/* ---------- Buttons ---------- */

button{

    padding:12px 20px;

    border:none;

    border-radius:6px;

    cursor:pointer;

    font-size:16px;

    margin:5px;

    transition:.3s;

}

.btn-green{

    background:#16a34a;

    color:white;

}

.btn-green:hover{

    background:#15803d;

}

.btn-red{

    background:#dc2626;

    color:white;

}

.btn-red:hover{

    background:#b91c1c;

}

.btn-blue{

    background:#2563eb;

    color:white;

}

.btn-blue:hover{

    background:#1d4ed8;

}

/* ---------- Table ---------- */

table{

    width:100%;

    border-collapse:collapse;

}

th{

    background:#1e3a8a;

    color:white;

    padding:12px;

}

td{

    padding:12px;

    border-bottom:1px solid #ddd;

    text-align:center;

}

tr:hover{

    background:#f8fafc;

}

/* ---------- Status ---------- */

.running{

    color:#16a34a;

    font-weight:bold;

}

.stopped{

    color:#dc2626;

    font-weight:bold;

}

.pending{

    color:#d97706;

    font-weight:bold;

}

/* ---------- Footer ---------- */

footer{

    margin-top:40px;

    text-align:center;

    color:#666;

    font-size:14px;

}

/* ===========================
   HEADER
=========================== */

header{

    background:#1f2937;

    color:white;

    padding:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-radius:10px;

    margin-bottom:25px;

}

.logo h1{

    margin:0;

    font-size:30px;

}

.logo span{

    color:#9ca3af;

    font-size:14px;

}

nav ul{

    list-style:none;

    display:flex;

    gap:25px;

}

nav a{

    color:white;

    text-decoration:none;

    font-weight:bold;

}

nav a:hover{

    color:#60a5fa;

}

/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:40px;

    background:#1f2937;

    color:#d1d5db;

    padding:20px;

    text-align:center;

    border-radius:10px;

    line-height:1.8;

}
.login-card {
    max-width: 420px;
    margin: 60px auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    font-weight: bold;
}

.login-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.error-box {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
}
.login-wrapper {
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.login-card h2 {
    font-size: 30px;
    margin-bottom: 8px;
    color: #111827;
}

.login-subtitle {
    margin-bottom: 24px;
    color: #4b5563;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: bold;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.login-button {
    width: 100%;
    margin-top: 8px;
}

.error-box {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: bold;
}
/* =========================================
   Buttons
========================================= */

.btn-green,
.btn-red,
.btn-blue {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.btn-green {
    background: #16a34a;
}

.btn-green:hover:not(:disabled) {
    background: #15803d;
}

.btn-red {
    background: #dc2626;
}

.btn-red:hover:not(:disabled) {
    background: #b91c1c;
}

.btn-blue {
    background: #2563eb;
}

.btn-blue:hover:not(:disabled) {
    background: #1d4ed8;
}


/* =========================================
   Disabled Buttons
========================================= */

button:disabled,
.btn-green:disabled,
.btn-red:disabled,
.btn-blue:disabled {

    background: #cbd5e1 !important;
    color: #6b7280 !important;

    cursor: not-allowed;
    opacity: 0.55;

    box-shadow: none;
    transform: none;
}


/* =========================================
   Server Status
========================================= */

.running {
    color: #16a34a;
    font-weight: bold;
}

.stopped {
    color: #dc2626;
    font-weight: bold;
}

.pending {
    color: #f59e0b;
    font-weight: bold;
}
