/* ==========================================================================
   ECLIPSENET - MINIMALIST DARK THEME
   ========================================================================== */

:root {
    --bg-black: #050505;
    --bg-card: #0c0c0e;
    --bg-input: #050505;
    --border-color: #1a1a1e;
    --border-hover: #2d2d34;
    
    --text-white: #ffffff;
    --text-muted: #88888e;
    --text-hover: #cccccc;
    
    --accent-purple: #9061f2;
    --accent-red: #f05252;
    --accent-green: #0e9f6e;
    --discord-blue: #5865F2;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-hover);
    font-family: var(--font-body);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    color: var(--text-white);
    font-size: 0.95rem;
}

.nav-tabs {
    display: flex;
    gap: 4px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-tab:hover {
    color: var(--text-white);
    background: #111114;
}

.nav-tab.active {
    color: var(--text-white);
    background: #151518;
    border: 1px solid var(--border-color);
}

.nav-right {
    display: flex;
    align-items: center;
}

.discord-btn {
    background: #111114;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.discord-btn:hover {
    background: #18181f;
    border-color: var(--border-hover);
}

.discord-btn img {
    border-radius: 50%;
}

.download-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.download-btn:hover {
    color: var(--text-white);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}


/* Container & Layout */
.container {
    padding: 95px 30px 30px 30px;
    height: 100vh;
    overflow-y: auto;
}

.tab-content {
    display: none;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

#tab-home.active {
    min-height: calc(100vh - 145px);
    justify-content: space-between;
}

/* Tab 1: Home Page */
.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-white);
    line-height: 1;
}

.home-status {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

.bottom-content {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.description {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.bottom-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.bottom-links a:hover {
    color: var(--text-white);
}

.separator {
    color: #222;
}

/* Tab 2: Clown Database */
.clowns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clowns-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Search bar & simple filters */
.search-bar-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 10px 10px 40px;
    border-radius: 6px;
    color: var(--text-white);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--border-hover);
}

.filter-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.filter-dropdown:hover {
    border-color: var(--border-hover);
}

.filter-btn-group {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 6px;
}

.filter-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-tab-btn:hover {
    color: var(--text-white);
}

.filter-tab-btn.active {
    background: #1c1c22;
    color: var(--text-white);
}

/* Grid & Cards */
.clown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.clown-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.clown-card:hover {
    border-color: var(--border-hover);
}

.clown-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #151519;
}

.clown-profile-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clown-avatar-wrapper img {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #222;
}

.clown-info {
    display: flex;
    flex-direction: column;
}

.clown-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.clown-user {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.clown-badge-stack {
    display: flex;
    gap: 4px;
}

.clown-badge {
    background: #15151a;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.clown-badge.bot {
    color: var(--accent-purple);
}

.clown-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding-bottom: 4px;
    border-bottom: 1px solid #111115;
    cursor: pointer;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    color: var(--text-hover);
    font-family: monospace;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-row:hover .detail-val {
    color: var(--text-white);
}

.clown-notes {
    background: #08080a;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    border-left: 2px solid #222;
    margin-bottom: 12px;
}

.clown-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #111115;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--text-white);
    border-color: var(--border-hover);
}

.btn-icon.delete:hover {
    color: var(--accent-red);
    border-color: rgba(240, 82, 82, 0.4);
}

/* Tab 3: Admin Panel */
.admin-locked-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 30px;
}

.locked-icon {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.admin-locked-container h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.admin-locked-container p {
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.security-badge {
    background: #111114;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

/* Unlocked Panel */
.admin-unlocked-container {
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.system-status {
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.status-indicator-green {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.admin-card h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--text-white);
    font-weight: 700;
}

.card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.admin-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #111115;
    font-size: 0.8rem;
}

.admin-stat-row:last-child {
    border-bottom: none;
}

.admin-stat-row span {
    color: var(--text-muted);
}

.admin-stat-row strong {
    color: var(--text-white);
    font-family: monospace;
}

.admin-list {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #08080a;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-family: monospace;
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    color: var(--accent-red);
}

.admin-input-group {
    display: flex;
    gap: 6px;
}

.admin-input-group input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-white);
    font-size: 0.78rem;
    outline: none;
}

.admin-input-group input:focus {
    border-color: var(--border-hover);
}

.btn-small {
    background: #151518;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-small:hover {
    background: #222;
}

.admin-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn-admin-action {
    background: #111114;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-admin-action:hover {
    background: #1a1a24;
    border-color: var(--border-hover);
}

.btn-admin-action.danger {
    color: var(--accent-red);
}

.btn-admin-action.danger:hover {
    background: rgba(240, 82, 82, 0.05);
}

/* Logging console */
.log-card {
    margin-top: 20px;
}

.log-console {
    background: #020202;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
}

.log-entry {
    line-height: 1.35;
    text-align: left;
}

.log-time {
    color: #444;
    margin-right: 6px;
}

.log-tag {
    font-weight: 700;
    margin-right: 6px;
}

.log-tag.info { color: #5865F2; }
.log-tag.warn { color: var(--accent-red); }
.log-tag.success { color: var(--accent-green); }

.log-message {
    color: #aaa;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 440px;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-backdrop.open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal h3, .modal h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.auth-modal {
    max-width: 380px;
    text-align: center;
}

.auth-modal p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.modal-icon {
    font-size: 2.2rem;
    color: var(--discord-blue);
    margin-bottom: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(88, 101, 242, 0.1);
    border-top: 2px solid var(--discord-blue);
    border-radius: 50%;
    margin: 10px auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #08080a;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: left;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-profile h3 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.user-profile p {
    margin-bottom: 0;
    color: var(--accent-green);
    font-size: 0.75rem;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.form-group input, .form-group textarea, .form-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-white);
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--border-hover);
}

.submit-btn {
    width: 100%;
    background: var(--text-white);
    color: var(--bg-black);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.submit-btn:hover {
    background: var(--text-hover);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0c0c0e;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.scammer-evidence-btn {
    display: inline-block;
    padding: 2px 8px;
    background: #111114;
    border: 1px solid var(--border-color);
    color: var(--text-hover);
    border-radius: 4px;
    font-size: 0.72rem;
    text-decoration: none;
    transition: var(--transition);
}

.scammer-evidence-btn:hover {
    background: #1a1a22;
    color: var(--text-white);
    border-color: var(--border-hover);
}

.pending-report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #08080a;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.pending-report-item:last-child {
    margin-bottom: 0;
}

.pending-details-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pending-actions-block {
    display: flex;
    gap: 6px;
}

.btn-approve {
    background: rgba(14, 159, 110, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(14, 159, 110, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-approve:hover {
    background: var(--accent-green);
    color: #fff;
}

.btn-decline {
    background: rgba(240, 82, 82, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(240, 82, 82, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-decline:hover {
    background: var(--accent-red);
    color: #fff;
}


/* Responsiveness */
@media (max-width: 768px) {
    .brand-title { font-size: 2.2rem; }
    .container { padding: 85px 15px 15px 15px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .navbar { padding: 0 15px; }
    .nav-tab span { display: none; }
    .nav-tab { padding: 6px 8px; }
    .discord-btn span { display: none; }
    .discord-btn { padding: 8px; }
}
