/* ---------- GLOBAL ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #050507;
    color: #f5f5f5;
}

/* ---------- HEADER / BANNER ---------- */

.ft-header {
    background: #050507;
    color: #fff;
}

.ft-header__banner-wrap {
    position: relative;
    overflow: hidden;
}

.ft-header__banner {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.ft-header__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center,
        rgba(255, 120, 20, 0.5),
        rgba(0, 0, 0, 0.95));
    pointer-events: none;
}

/* ---------- TOP NAV ---------- */

.ft-header__topnav {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-start;
    z-index: 2;
    font-size: 14px;
}

.ft-header__topnav a {
    color: #ffd9b3;
    text-decoration: none;
    padding-bottom: 2px;
}

.ft-header__topnav a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ff6b0a;
}

.ft-header__toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.ft-toggle__switch {
    width: 32px;
    height: 16px;
    border-radius: 16px;
    background: #444;
    padding: 2px;
    display: inline-flex;
    align-items: center;
}

.ft-toggle__knob {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffb347;
}

/* ---------- USERBAR ---------- */

.ft-header__userbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    padding: 6px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    z-index: 2;
}

.ft-header__userbar--guest {
    justify-content: flex-end;
}

.ft-userbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-userbar__name {
    font-weight: bold;
    font-size: 14px;
}

.role-badge--user,
.role-badge--power,
.role-badge--vip,
.role-badge--mod,
.role-badge--admin,
.role-badge--sysop {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
}

.role-badge--user {
    background: #555;
}
.role-badge--power {
    background: #3b7fff;
}
.role-badge--vip {
    background: #8b3bff;
}
.role-badge--mod {
    background: #00b894;
}
.role-badge--admin {
    background: #ff6b0a;
}
.role-badge--sysop {
    background: #d63031;
}

.ft-userbar__center {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    opacity: 0.9;
}

.ft-userbar__center span strong {
    color: #ffd27f;
}

.ft-userbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-icon-btn {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.ft-icon-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ft-icon-btn--logout {
    background: #c0392b;
}

.ft-icon-btn--logout:hover {
    background: #e74c3c;
}

.ft-btn {
    padding: 4px 10px;
    border-radius: 4px;
    background: #ff6b0a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.ft-btn--outline {
    background: transparent;
    border: 1px solid #ff6b0a;
}

/* ---------- SECOND NAV ROW ---------- */

.ft-header__mainnav {
    background: #111;
    border-top: 1px solid #2b2b2b;
    border-bottom: 1px solid #2b2b2b;
    display: flex;
    justify-content: center;
    padding: 6px 20px;
    gap: 40px;
}

.ft-mainnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
    color: #ccc;
    padding: 4px 6px;
}

.ft-mainnav__item:hover {
    color: #ffffff;
}

.ft-mainnav__icon {
    font-size: 18px;
    margin-bottom: 2px;
}

/* ---------- PAGE CONTENT ---------- */

.content {
    width: 90%;
    margin: 20px auto;
    background: #18181b;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #262626;
}

/* ---------- TABLE (IPT-style) ---------- */

.ft-table {
    border-collapse: collapse;
    width: 100%;
    background: #141417;
    color: #eee;
}

.ft-table th {
    background: #202024;
    padding: 8px;
    border-bottom: 1px solid #333;
    text-align: left;
    font-weight: bold;
    color: #ff6b0a;
}

.ft-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #262626;
}

.ft-table tr:nth-child(even) {
    background: #18181b;
}

.ft-table tr:hover {
    background: #222227;
}

/* ---------- FOOTER ---------- */

.footer {
    text-align: center;
    padding: 15px;
    color: #777;
    font-size: 12px;
}

/* -------- IPT Style Panels -------- */

.ft-panel {
    background: #18181b;
    border: 1px solid #2a2a2d;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 25px;
}

.ft-panel--welcome h2 {
    margin-top: 0;
    color: #ff6b0a;
}

.ft-standard-text {
    color: #ccc;
}

/* -------- Stats Box -------- */

.ft-stats-box {
    margin-top: 14px;
    padding: 12px;
    background: #111112;
    border: 1px solid #252525;
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.ft-stats-box div strong {
    color: #ffb36b;
}

/* -------- Latest Torrents Table -------- */

.ft-table {
    width: 100%;
    border-collapse: collapse;
    background: #141416;
}

.ft-table th {
    background: #1b1b1e;
    padding: 8px;
    color: #ff6b0a;
    text-align: left;
    font-size: 14px;
}

.ft-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #2a2a2c;
}

.ft-table tr:hover {
    background: #202023;
}

.ft-table a {
    color: #ffb36b;
}

.ft-table a:hover {
    color: #fff;
}
/* ---------------- TOP NAV FIXED (IPT STYLE) ---------------- */

.ft-topnav {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;

    z-index: 200;
}

.ft-topnav ul {
    list-style: none;
    margin: 0;
    padding: 0 15px;

    display: flex;
    gap: 25px;

    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    padding: 6px 20px;
}

.ft-topnav ul li a {
    color: #ffd29a;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    transition: 0.15s ease;
}

.ft-topnav ul li a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ff6b0a;
}
/* ------------ IPTORRENTS ACCORDION STYLE ------------- */

.accordion-item {
    background:#1b1b1b;
    border-bottom:1px solid #333;
}

.accordion-header {
    width:100%;
    text-align:left;
    background:#2a2a2a;
    padding:12px 15px;
    color:#ccc;
    font-size:16px;
    border:none;
    outline:none;
    cursor:pointer;
    transition:0.2s ease;
}

.accordion-header:hover {
    background:#3b3b3b;
}

.accordion-content {
    display:none;
    padding:15px;
    background:#121212;
    color:#aaa;
}

.accordion-content ul {
    padding-left:20px;
    line-height:1.8;
}

/* Active state */
.accordion-header.active {
    background:#3b3b3b;
}

/* ---------- IPT Style Rules Sections ---------- */

.rule-section {
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2b2b2b;
    background: #111;
}

.rule-header {
    background:#ff9b00;
    padding:12px;
    color:#000;
    font-size:18px;
    font-weight:bold;
    text-align:center;
    border-bottom:1px solid #000;
}

.rule-body {
    background:#0f0f0f;
    padding:20px;
    color:#ddd;
}

.rule-body ul {
    padding-left:20px;
    line-height:1.8;
}

.staff-menu li a {
    display:block;
    padding:10px;
    background:#222;
    border:1px solid #333;
    margin-bottom:10px;
    border-radius:5px;
    color:#ffa340;
}

.staff-menu li a:hover {
    background:#333;
}

.staff-badge {
    background: red;
    padding: 2px 5px;
    border-radius: 5px;
    color: #fff;
    font-size: 0.75em;
}

.badge {
    margin-left: 4px;
    color: gold;
}

.preview {
    border: 1px solid #444;
    width: fit-content;
    margin-top: 10px;
    padding: 5px 10px;
    background: #222;
}

.user-block {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.username {
    font-weight: 600;
}

.username--staff {
    color: #ff8800;
}

.custom-title {
    font-size: 0.85em;
    opacity: 0.95;
}

.staff-badge {
    background: #ff3333;
    color: #fff;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.7em;
    text-transform: uppercase;
}

.badge {
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    color: #000;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.title-preview {
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #111;
    display: inline-block;
}

.notice {
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.notice-success {
    background: #123c12;
    color: #bdf0bd;
}

.notice-error {
    background: #3c1212;
    color: #f0bdbd;
}

.health-ok {
    color: #4caf50;
    font-weight: bold;
}

.health-warning {
    color: #ff9800;
    font-weight: bold;
}

.health-dead {
    color: #f44336;
    font-weight: bold;
}

/* ===== Owner Dashboard ===== */

.owner-dashboard {
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.owner-title {
    font-size: 28px;
    margin: 20px 0 5px 0;
    color: #ff6a00;
}

.owner-subtitle {
    margin-bottom: 20px;
    color: #aaa;
}

.owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.owner-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.owner-card {
    background: #1a1a1d;
    border-radius: 10px;
    padding: 15px 18px;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    border: 1px solid #262626;
}

.owner-card-ok {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46,204,113,0.4);
}

.owner-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 8px;
}

.owner-card-value {
    font-size: 22px;
    font-weight: bold;
    color: #f5f5f5;
    margin-bottom: 6px;
}

.owner-card-foot {
    font-size: 12px;
    color: #aaa;
}

.owner-panel {
    background: #17171a;
    border-radius: 10px;
    padding: 15px 18px;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    border: 1px solid #262626;
}

.owner-panel h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Compacte tabel voor dashboard */
.ft-table.compact th,
.ft-table.compact td {
    padding: 4px 6px;
    font-size: 12px;
}

/* Role Badge */
.user-badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1c1c1c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #ffd000;
    text-transform: uppercase;
    box-shadow: 0 0 4px rgba(255, 208, 0, 0.4);
}

.user-badge-icon i {
    font-style: normal;
    color: #ffd000;
    font-size: 12px;
}

/* ===== Role Badge (Stijl C) ===== */

.user-badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 6px;
    background: #222;
    border: 1px solid transparent;
}

/* ===========================
   ROLE BADGES
   =========================== */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    margin-left: 6px;
}

.user-badge__icon {
    font-size: 13px;
    line-height: 1;
}

/* ===== ROLE COLORS FOR USERNAME ===== */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.05);
    color: #fff;              /* <- dit maakt alles wit */
}

.user-block.owner .username {
    color: #ffb400 !important;
}

.user-block.admin .username {
    color: #ff4444 !important;
}

.user-block.mod .username,
.user-block.moderator .username {
    color: #4da6ff !important;
}

.user-block.vip .username {
    color: #b36bff !important;
}

.user-block.poweruser .username {
    color: #7dff7d !important;
}



/* ================================
   USERNAME COLORS
   ================================ */

.username {
    font-weight: bold;
}

.username[style*="ffb400"] { text-shadow: 0 0 8px #ffcc00; } /* Owner gold glow */
.username[style*="ff4444"] { text-shadow: 0 0 6px #ff4444; } /* Admin */
.username[style*="4da6ff"] { text-shadow: 0 0 6px #4da6ff; } /* Moderator */
.username[style*="b36bff"] { text-shadow: 0 0 6px #b36bff; } /* VIP */
.username[style*="7dff7d"] { text-shadow: 0 0 6px #7dff7d; } /* PowerUser */

/* ================================
   CUSTOM TITLES
   ================================ */

.custom-title {
    font-size: 11px;
    font-style: italic;
    margin-left: 6px;
    opacity: 0.85;
}

.custom-title:hover {
    opacity: 1;
    text-shadow: 0 0 6px currentColor;
}

/* ================================
   ACHIEVEMENT BADGES
   ================================ */

.user-achievement {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 6px;
    font-size: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
}

.user-achievement:hover {
    background: rgba(255,255,255,0.2);
}

.user-block.owner .username {
    text-shadow:
        0 0 4px #ff6600,
        0 0 8px #ff3300,
        0 0 12px #ff2200;
    animation: owner-glow 1.5s infinite alternate ease-in-out;
}

@keyframes owner-glow {
    from { text-shadow: 0 0 4px #ff6600; }
    to   { text-shadow: 0 0 18px #ff2200; }
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.05);
    color: #fff;              /* alles standaard wit */
}

