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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #f9fafb;
    padding: 20px;
}

.container { max-width: 960px; margin: 0 auto; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.tab {
    padding: 10px 20px;
    background: #1f2937;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.tab:hover { background: #374151; }
.tab.active { background: #3b82f6; color: #fff; }

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    background: #3b82f6;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover { background: #2563eb; }
.btn-small { padding: 6px 12px; font-size: 13px; }

.controls { margin-top: 20px; }

#svg-container {
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
}

#svg-container svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.modal.active { display: flex; align-items: center; justify-content: center; }

.modal-content {
    background: #1f2937;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 { font-size: 20px; }

.close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
}

table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid #374151; }
th { color: #9ca3af; font-weight: 600; font-size: 13px; }

input {
    background: #111827;
    border: 1px solid #374151;
    color: #f9fafb;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
}

input:focus { outline: none; border-color: #3b82f6; }

.actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #1f2937;
    border-radius: 12px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.error {
    margin-top: 15px;
    color: #ef4444;
    font-size: 14px;
    text-align: center;
}