* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: #f9fafb;
}

/* LOGIN */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box,
.card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.login-box {
    max-width: 380px;
}

/* CONTENT */

.container {
    max-width: 1000px;
    margin: 24px auto;
    padding: 16px;
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: bold;
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

p {
    color: #9ca3af;
    line-height: 1.5;
}

/* DASHBOARD HEADER */

.dashboard-header {
    margin-bottom: 28px;
}

.dashboard-header h1 {
    margin-bottom: 8px;
}

.dashboard-header p {
    margin-top: 0;
    font-size: 15px;
}

/* INPUTS */

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 16px;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

/* BUTTONS */

button,
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: #38bdf8;
    color: #04111f;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

button:hover,
.btn:hover {
    opacity: 0.92;
}

.secondary {
    background: #374151;
    color: #f9fafb;
}

/* ALERTS */

.error {
    background: #7f1d1d;
    color: #fecaca;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.success {
    background: #14532d;
    color: #bbf7d0;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* LISTEN */

.empty {
    padding: 16px;
    background: #111827;
    border-radius: 12px;
    border: 1px solid #374151;
}

.plugin-list {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}

.plugin-list li {
    background: #111827;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #374151;
    font-size: 15px;
    transition: 0.2s;
}

.plugin-list li:hover {
    border-color: #38bdf8;
}

/* DASHBOARD */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.dashboard-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 18px;
    padding: 20px;
    transition: 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
}

.count {
    font-size: 48px;
    font-weight: bold;
    color: #38bdf8;
    margin: 14px 0;
}

/* NAVIGATION */

.topnav {
    background: #020617;
    border-bottom: 1px solid #1f2937;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    font-weight: bold;
    font-size: 18px;
}

.dropdown {
    position: relative;
}

.dropbtn {
    width: auto;
    margin: 0;
    padding: 10px 14px;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    background: #1f2937;
    min-width: 260px;
    border: 1px solid #374151;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a,
.dropdown-content strong {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
}

.dropdown-content strong {
    color: #38bdf8;
    background: #111827;
    font-size: 13px;
    font-weight: bold;
}

.dropdown-content a {
    color: #f9fafb;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: #374151;
}

.dropdown-content .logout {
    color: #fca5a5;
}

/* MOBILE */

@media (max-width: 700px) {

    .container {
        margin: 12px auto;
        padding: 12px;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    .topnav {
        padding: 12px;
    }

    .brand {
        font-size: 16px;
    }

    .dropdown-content {
        width: 240px;
        right: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .count {
        font-size: 38px;
    }

    input {
        font-size: 16px;
    }

    button,
    .btn {
        font-size: 15px;
    }
}