:root {
    --bg-color: #0f1014;
    --card-bg: #1a1c23;
    --primary: #e50914;
    --primary-hover: #b20710;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --border: #333;
    --input-bg: #2a2d37;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.header p {
    color: var(--text-muted);
}

.card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

input, select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.toggle-btn {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    background: var(--input-bg);
    padding: 0.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.toggle-btn button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn button.active {
    background: var(--card-bg);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#search-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

#search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

#search-btn:active {
    transform: translateY(0);
}

.result-area {
    margin-top: 2rem;
    padding: 1rem;
    background: #000;
    border-radius: 0.75rem;
    display: none;
    word-break: break-all;
    border: 1px dashed var(--primary);
    text-align: center;
}

.result-area h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-area .content {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ade80;
}

.loading {
    display: none;
    margin-top: 1rem;
    text-align: center;
    color: var(--primary);
}

/* Admin Styles */
.admin-container {
    max-width: 800px;
    width: 90%;
}

.account-list {
    margin-top: 2rem;
}

.account-item {
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.account-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-delete { background: #ef4444; color: white; }
.btn-edit { background: #3b82f6; color: white; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}
