/* LiteBans Manager — admin.css Version: 1.0.0 Author: M_Viper */ /* ---------------------------------------- Grundlayout / Wrapper ---------------------------------------- */ .litebans-wrapper { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1d2327; margin: 0; padding: 0; box-sizing: border-box; } .litebans-card { background: #fff; border: 1px solid #e1e4e8; border-radius: 6px; padding: 18px; box-shadow: 0 1px 0 rgba(0,0,0,0.02); } .litebans-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .litebans-title { margin: 0; font-size: 20px; font-weight: 600; color: #111827; } .litebans-controls { display: flex; gap: 8px; align-items: center; } /* Theme Toggle Button (klein) */ .litebans-theme-toggle { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #d1d5db; background: #fafafa; cursor: pointer; transition: all .15s ease; } .litebans-theme-toggle:hover { transform: translateY(-1px); } /* ---------------------------------------- Admin Tab Navigation (WP-Admin kompatibel) ---------------------------------------- */ .lb-admin-tabs, .litebans-tabs { display: flex; list-style: none; margin: 20px 0 8px 0; padding: 0; gap: 6px; } .lb-admin-tab, .litebans-tab-btn { margin: 0; padding: 0; } .lb-admin-tab a, .litebans-tab-btn { display: inline-block; text-decoration: none; font-size: 13px; line-height: 1.6; color: #475569; background: #f3f4f6; border: 1px solid #d1d5db; border-top-width: 2px; border-bottom-width: 0; padding: 6px 12px; margin: 0 0 -1px 0; border-radius: 4px 4px 0 0; transition: all .12s ease; cursor: pointer; } .lb-admin-tab a:hover, .litebans-tab-btn:hover { background: #f8fafc; color: #0f172a; } .lb-admin-tab.active a, .litebans-tab-btn.active { background: #fff; color: #0b1220; border-bottom: 1px solid #fff; font-weight: 700; } /* Fallback: Button-style für frontend tabs */ .litebans-tab-content { display: none; padding-top: 12px; } .litebans-tab-content.active { display: block; } /* ---------------------------------------- Unban Request Ticket Styles ---------------------------------------- */ .lb-ticket-container { max-width: 980px; margin: 20px 0; background: #fff; border: 1px solid #e6e9ec; border-radius: 8px; overflow: hidden; } .lb-ticket-header { background: #f8fafb; padding: 18px; border-bottom: 1px solid #e6e9ec; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; } .lb-player-badge { display: flex; align-items: center; gap: 14px; } .lb-avatar-large { width: 48px; height: 48px; border-radius: 6px; background: #f3f4f6; object-fit: cover; border: 1px solid #e6e9ec; } .lb-player-badge h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 700; } .lb-date-label { font-size: 13px; color: #6b7280; } /* Status Select Wrapper */ .lb-status-select-wrapper { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; } .lb-status-select { border: none; background: transparent; font-weight: 600; outline: none; cursor: pointer; } /* Ticket Body / Cards */ .lb-ticket-body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .lb-card { border: 1px solid #eef2f7; border-radius: 6px; padding: 14px; background: #fafafa; } .lb-card-ban { background: #fff8f8; border-color: #fee2e2; } .lb-card-msg { background: #f6fbff; border-color: #dbeafe; grid-column: span 2; } .lb-card-title { font-size: 11px; text-transform: uppercase; color: #6b7280; font-weight: 800; margin-bottom: 8px; letter-spacing: .6px; } .lb-card-content { font-size: 14px; color: #0b1220; white-space: pre-wrap; } /* Ticket Footer */ .lb-ticket-footer { background: #f6f7f8; padding: 14px 18px; border-top: 1px solid #e6e9ec; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; } .lb-admin-note-area label { display: block; font-weight: 700; margin-bottom: 6px; color:#111827; } .lb-textarea { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 14px; } /* ---------------------------------------- WP Backend Table Anpassungen ---------------------------------------- */ .wp-list-table.litebans-table td, .wp-list-table.litebans-table th, .litebans-table td, .litebans-table th { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid #eef2f7; } .litebans-table { width: 100%; border-collapse: collapse; margin-top: 8px; } .litebans-avatar-wrapper { display: flex; align-items: center; gap: 10px; } .litebans-avatar { width: 32px; height: 32px; border-radius: 4px; border: 1px solid #e6e9ec; object-fit: cover; } /* player name in table */ .litebans-player-name { font-weight: 600; color: #0b1220; } /* small action link */ .litebans-unban-link { background: #0ea5a4; color: #fff; padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: 13px; display:inline-block; } /* ---------------------------------------- Status Badges (Frontend & Backend) ---------------------------------------- */ .litebans-badge { display: inline-block; padding: 5px 8px; border-radius: 12px; font-weight: 700; font-size: 12px; text-transform: none; } .litebans-badge.expired { background:#fff1f2; color:#9f1239; border:1px solid #fecaca; } .litebans-badge.permanent { background:#eef2ff; color:#3730a3; border:1px solid #c7d2fe; } .litebans-badge.muted { background:#f0fdf4; color:#065f46; border:1px solid #bbf7d0; } .litebans-badge.active { background:#ecfeff; color:#0f766e; border:1px solid #a7f3d0; } /* Warn / Kick specific */ .litebans-badge.warn { background:#fff7ed; color:#92400e; border:1px solid #fde68a; } .litebans-badge.kick { background:#f8fafc; color:#111827; border:1px solid #e6e9ef; } /* Backend status small labels (CPT) */ .lb-status { display:inline-block; padding: 4px 8px; border-radius: 12px; font-weight: 700; font-size: 12px; } .lb-status.label-active { background:#d1fae5; color:#065f46; border:1px solid #a7f3d0; } .lb-status.label-inactive { background:#f3f4f6; color:#6b7280; border:1px solid #e6e9ec; } .lb-status.label-warning { background:#fff3cd; color:#856404; border:1px solid #ffeeba; } .lb-status.label-kick { background:#e2e3e5; color:#383d41; border:1px solid #d6d8db; } /* CPT list labels (unban requests) */ .lb-status-label { padding: 4px 10px; border-radius: 12px; font-weight: 700; font-size: 12px; } .lb-status-pending { background: #fff3cd; color: #856404; } .lb-status-approved { background: #d4edda; color: #155724; } .lb-status-rejected { background: #f8d7da; color: #721c24; } /* ---------------------------------------- Buttons & small utilities ---------------------------------------- */ .litebans-btn { background: #0ea5a4; color: #fff; padding: 8px 14px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; } .litebans-backlink { color: #6b7280; text-decoration: none; font-size: 13px; } /* subtle helper */ .litebans-empty { padding: 18px; color: #6b7280; background: #fafafa; border-radius: 6px; border: 1px dashed #e6e9ec; } /* ---------------------------------------- Responsive adjustments ---------------------------------------- */ @media (max-width: 860px) { .lb-ticket-body { grid-template-columns: 1fr; } .lb-ticket-footer { flex-direction: column-reverse; align-items: stretch; gap: 8px; } .lb-player-badge h3 { font-size: 15px; } } /* Small print / accessibility */ .litebans-player-name, .lb-date-label { word-break: break-word; }