/* LINE BPM Web Admin */
:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --accent: #0f3460;
    --primary: #e94560;
    --text: #eaeaea;
    --muted: #a0a0a0;
}

* { box-sizing: border-box; }
body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    line-height: 1.5;
}

.header {
    background: var(--surface);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
}
.header h1 { margin: 0; font-size: 1.25rem; }
.header nav { display: flex; gap: 1.5rem; align-items: center; }
.header a { color: var(--text); text-decoration: none; }
.header a:hover { color: var(--primary); }
.header .user { color: var(--muted); font-size: 0.9rem; }

.main { padding: 2rem; max-width: 1200px; margin: 0 auto; }
.main h2 { margin-top: 0; }

.login-container {
    max-width: 360px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--accent);
}
.login-container h1 { text-align: center; margin-top: 0; }
.login-container .subtitle { color: var(--muted); text-align: center; margin-bottom: 1.5rem; }
.login-container .error { color: var(--primary); margin-bottom: 1rem; }
.login-form label { display: block; margin-bottom: 1rem; }
.login-form label span { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.9rem; }
.login-form input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--text);
}
.login-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}
.login-form button:hover { opacity: 0.9; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
}
.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--accent);
}
.table th { background: var(--accent); font-weight: 600; }
.table tr:hover { background: rgba(255,255,255,0.02); }
.table .webhook-url { font-size: 0.8rem; word-break: break-all; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.badge-active { background: #2e7d32; color: white; }
.badge-trial { background: #1565c0; color: white; }
.badge-expired { background: #c62828; color: white; }
.badge-disabled { background: var(--muted); color: var(--bg); }

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.9; }
.btn { background: var(--accent); color: var(--text); }
.btn:hover { background: #1a3a5c; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.85rem; }
.mb-1 { margin-bottom: 1rem; }

.form { max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 4rem; }
.form-group .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-label input { width: auto; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 1rem; }
.form-divider { border: none; border-top: 1px solid var(--accent); margin: 1.5rem 0; }
.form-divider + h3 { margin-top: 0; }
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-success { background: rgba(46, 125, 50, 0.2); color: #81c784; }
.alert-error { background: rgba(198, 40, 40, 0.2); color: #e57373; }
