@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #4169ff;
    --primary-hover: #3557e6;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #1a1a1a;
    --border-light: #2a2a2a;
    --success: #00d26a;
    --danger: #ff4757;
    --warning: #ffa502;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.warning {
    background: rgba(255, 165, 2, 0.1);
    border: 1px solid rgba(255, 165, 2, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.login-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
}

button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.danger-btn {
    background: var(--danger);
}

.danger-btn:hover {
    background: #e63946;
}

.nuke-btn {
    background: var(--danger);
    font-size: 15px;
    padding: 14px 28px;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}

.warning-box {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.warning-box h2 {
    color: var(--danger);
    margin-bottom: 16px;
}

.warning-box ul {
    list-style: none;
    padding: 0;
}

.warning-box li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 500;
}

.avatar-container {
    text-align: center;
    margin-top: 20px;
}

#user-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--border-light);
}

.accept-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.accept-box label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
}

.accept-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

#dashboard-screen.active {
    display: block;
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

#dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
}

#dash-username {
    font-size: 14px;
    font-weight: 600;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
}

.logout-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    gap: 8px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: transparent;
    transform: none;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

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

.section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.section:hover {
    border-color: var(--border-light);
}

.nuke-section {
    border-color: rgba(255, 71, 87, 0.3);
}

.nuke-section:hover {
    border-color: rgba(255, 71, 87, 0.5);
}

.raid-warning {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.raid-warning h2 {
    color: var(--danger);
}

.info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.input-group input {
    flex: 1;
    min-width: 200px;
}

.input-group button {
    flex-shrink: 0;
}

.info-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-height: 200px;
}

.info-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.embed {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.embed-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.embed-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.embed-author-name {
    font-size: 14px;
    font-weight: 600;
}

.embed-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.embed-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.embed-field {
    margin-bottom: 12px;
}

.embed-field-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.embed-field-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.embed-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.embed-footer img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.embed-footer-text {
    font-size: 12px;
    color: var(--text-muted);
}

.embed-thumbnail {
    float: right;
    margin-left: 16px;
}

.embed-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    word-break: break-all;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.user-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
}

.user-card-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-card-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 2px 0;
}

.output {
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.8;
}

.output:empty {
    display: none;
}

.log-success { color: var(--success); }
.log-error { color: var(--danger); }
.log-info { color: var(--primary); }
.log-warning { color: var(--warning); }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

#modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#modal-body h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 8px;
}

#modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .tabs {
        padding: 0 20px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        width: 100%;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

::selection {
    background: var(--primary);
    color: white;
}
