/* ==== Global ==== */
body {
    margin: 0;
    padding: 0;
    background: #121212;
    font-family: "Poppins", sans-serif;
    color: #e6e6e6;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: 1px;
}

a {
    color: #00aaff;
    text-decoration: none;
}
a:hover {
    color: #33c4ff;
}

/* ==== Layout ==== */
.wrapper {
    display: flex;
}

/* ==== Sidebar ==== */
.sidebar {
    width: 240px;
    background: #1e1e1e;
    height: 100vh;
    padding-top: 20px;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid #333;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #00aaff;
    font-size: 22px;
}

.sidebar a {
    display: block;
    padding: 14px 25px;
    font-size: 16px;
    border-bottom: 1px solid #2a2a2a;
    color: #cfcfcf;
    transition: 0.3s;
}

.sidebar a:hover {
    background: #272727;
    color: #00aaff;
}

/* ==== Main Content ==== */
.main {
    margin-left: 240px;
    padding: 30px;
}

/* ==== Table ==== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #222;
    padding: 12px;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #333;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #333;
}

table tr:hover {
    background: #262626;
    transition: 0.2s;
}

/* ==== Form ==== */
form {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 10px;
    width: 400px;
    border: 1px solid #333;
}

form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 18px 0;
    border: none;
    border-radius: 5px;
    background: #262626;
    color: #e6e6e6;
    font-size: 15px;
}

form input:focus {
    outline: 2px solid #00aaff;
}

button {
    width: 100%;
    padding: 12px;
    background: #00aaff;
    border: none;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #33c4ff;
}

/* ==== Login Page ==== */
.login-container {
    width: 460px;
    margin: 120px auto;
    background: #1c1c1c;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* ==== Logs box ==== */
.logs-box {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #333;
}

.logs-box p {
    border-bottom: 1px solid #333;
    padding: 8px 0;
}

/* ==== Buttons Inline (Edit/Delete/Logs) ==== */
.action-btns a {
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 5px;
    margin-right: 6px;
    display: inline-block;
    color: #00aaff;
}

.action-btns a:hover {
    background: #333;
}

/* ==== Dashboard Cards ==== */
.stats-container {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.stats-card {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    width: 220px;
    text-align: center;
    transition: 0.3s;
}

.stats-card:hover {
    background: #222;
    transform: translateY(-5px);
}

.stats-card h3 {
    font-size: 18px;
    color: #00aaff;
    margin-bottom: 10px;
}

.stats-number {
    font-size: 36px;
    font-weight: bold;
    color: #e6e6e6;
}

/* ==== Settings Page Enhancements ==== */

.settings-container {
    max-width: 600px;
    margin-top: 20px;
}

.settings-form {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
}

.section-title {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #00aaff;
    font-size: 18px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #262626;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.toggle-row label {
    font-size: 15px;
}

select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 18px 0;
    border: none;
    border-radius: 5px;
    background: #262626;
    color: #e6e6e6;
    font-size: 15px;
}

select:focus {
    outline: 2px solid #00aaff;
}
