* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c")
        no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.overlay {
    min-height: 100vh;
    background: linear-gradient(
        rgba(15,23,42,0.85),
        rgba(2,6,23,0.9)
    );
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

.brand {
    display: block;
    text-align: center;
    color: #00e5ff;
    margin-bottom: 30px;
}

.login-box {
    background: rgba(0,0,0,0.65);
    padding: 30px;
    border-radius: 12px;
    width: 360px;
    margin: auto;
    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: #00c853;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.add-form,
.clean-all {
    text-align: center;
    margin-bottom: 15px;
}

.add-form input {
    padding: 10px;
    width: 300px;
    border-radius: 6px;
    border: none;
}

.add-form button {
    padding: 10px 18px;
    margin-left: 5px;
    background: #00c853;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.clean-all button {
    background: #d32f2f;
    border: none;
    padding: 10px 18px;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.domains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    padding: 20px;
}

.card h3 {
    margin-top: 0;
}

.link-box {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.link-box input {
    flex: 1;
    padding: 6px;
    border-radius: 4px;
    border: none;
}

.link-box button {
    background: #00c853;
    border: none;
    padding: 6px 10px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.actions button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.actions .clean {
    background: #0288d1;
    color: #fff;
}

.actions .delete {
    background: #d32f2f;
    color: #fff;
}

.logout {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #fff;
}
.top-links {
    margin-top: 10px;
    text-align: center;
}

.admin-link {
    color: #c084fc;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.admin-link:hover {
    text-decoration: underline;
}

.center-box.small {
    max-width: 500px;
    margin: 80px auto;
}

/* ===== UI IMPROVEMENTS ===== */

.header {
    text-align: center;
    margin-bottom: 20px;
}

.role {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
}

.role.admin { background: #c084fc; }
.role.user { background: #4ade80; color: #000; }

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat {
    background: rgba(255,255,255,0.15);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owner-badge {
    font-size: 12px;
    background: rgba(0,0,0,0.4);
    padding: 4px 8px;
    border-radius: 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin: 10px 0;
}

.status.ok { color: #00e676; }
.status.idle { color: #ffb300; }

button.copied {
    background: #0288d1 !important;
}

.empty-box {
    text-align: center;
    margin-top: 40px;
    opacity: 0.85;
}
button.toggle {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

button.toggle.enabled {
    background: #2ecc71;
    color: #fff;
}

button.toggle.disabled {
    background: #e74c3c;
    color: #fff;
}
