:root {
    --primary: #bc13fe;
    --secondary: #00d2ff;
    --accent: #ff0055;
    --bg-dark: #0a0a12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-dim: #a0a0b8;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(188, 19, 254, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 210, 255, 0.15) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar */
nav {
    width: 280px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links li:hover, .nav-links li.active {
    background: var(--card-bg);
    color: var(--text-main);
}

.nav-links li.active {
    border-left: 4px solid var(--primary);
}

/* Main Content */
main {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--secondary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Dashboard Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(188, 19, 254, 0.4);
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

input, select, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--primary), #8a2be2);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    filter: brightness(1.2);
    box-shadow: 0 5px 20px rgba(188, 19, 254, 0.4);
}

/* Output Area */
.output-area {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px dashed var(--border);
    white-space: pre-wrap;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary);
    font-size: 10px;
    margin-right: 5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content {
    animation: fadeIn 0.5s ease-out;
}

.hidden { display: none; }
