/* ===============================
   BASE STYLE
=============================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    display: flex;
}

/* ===============================
   SIDEBAR
=============================== */

.sidebar {
    width: 230px;
    background: #161b22;
    height: 100vh;
    padding: 20px;
    border-right: 1px solid #30363d;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar h2 {
    margin-top: 0;
    color: #58a6ff;
}

.sidebar button {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: 0.15s;
}

.sidebar button:hover {
    background: #30363d;
}

.sidebar button.active {
    background: #58a6ff;
    color: #0d1117;
    font-weight: bold;
}

.logout-btn {
    background: #da3633 !important;
    color: white !important;
}

/* ===============================
   CONTENT
=============================== */

.content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
}

/* ===============================
   PAGE TITLE
=============================== */

.page-title h2 {
    margin: 0;
    color: #58a6ff;
}

.page-title p {
    margin-top: 5px;
    color: #8b949e;
}

/* ===============================
   BOX
=============================== */

.box {
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #30363d;
    margin-bottom: 20px;
}

/* ===============================
   INPUT & BUTTONS
=============================== */

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
}

button {
    cursor: pointer;
    background: #21262d;
    border: 1px solid #30363d;
    padding: 10px 14px;
    border-radius: 6px;
    color: #c9d1d9;
    transition: 0.15s;
    font-size: 14px;
}

button:hover {
    background: #30363d;
    transform: translateY(-1px);
}

.btn-save {
    background: #238636;
    border-color: #2ea043;
    color: white;
}

.btn-save:hover {
    background: #2ea043;
}

/* ===============================
   TABLES (LOGS, LINKGUARD)
=============================== */

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

table th {
    background: #21262d;
    color: #58a6ff;
    padding: 10px;
    font-size: 14px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #30363d;
}

table tr:nth-child(even) {
    background: #161b22;
}

table tr:hover {
    background: #1f242c;
}

/* ===============================
   SERVER SELECTOR
=============================== */

.server-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #161b22;
    border-radius: 10px;
    border: 1px solid #30363d;
}

.server-selector label {
    font-weight: bold;
    color: #58a6ff;
    font-size: 14px;
}

.server-selector select {
    margin-top: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
}

/* ===============================
   BOT INFO BOX (HOME PAGE)
=============================== */

.bot-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #161b22;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #30363d;
    margin-bottom: 20px;
}

.bot-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #30363d;
    object-fit: cover;
    background: #0d1117;
    box-shadow: 0 0 10px #00000055;
}

/* ===============================
   LINKGUARD
=============================== */

.lg-container {
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #30363d;
}

.lg-add-box {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.lg-add-box input {
    flex: 1;
}

.lg-add-box button {
    width: 120px;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 900px) {
    .sidebar {
        width: 180px;
    }
    .content {
        margin-left: 200px;
    }
}

@media (max-width: 700px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .content {
        margin-left: 0;
    }
}
