/* Nyx AI Studio - Refined Luxury Theme */

:root {
    /* Refined Color Palette */
    --nyx-primary: #7C3AED;      /* 深い紫 */
    --nyx-secondary: #EC4899;    /* ピンクアクセント */
    --nyx-accent: #F59E0B;       /* ゴールドアクセント */
    --nyx-success: #10B981;
    --nyx-danger: #EF4444;
    
    /* Background - より落ち着いた色 */
    --nyx-bg-base: #050505;
    --nyx-bg-primary: #0F0F0F;
    --nyx-bg-secondary: #1A1A1A;
    --nyx-bg-elevated: #252525;
    
    /* Text - より読みやすく */
    --nyx-text-primary: #F3F4F6;
    --nyx-text-secondary: #9CA3AF;
    --nyx-text-muted: #6B7280;
    
    /* Borders */
    --nyx-border: rgba(255, 255, 255, 0.08);
    --nyx-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Effects */
    --nyx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --nyx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --nyx-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --nyx-glow: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* Override main theme */
body {
    background: var(--nyx-bg-base);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

/* Refined Glass Cards */
.glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--nyx-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--nyx-shadow-md);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(124, 58, 237, 0.5) 50%, 
        transparent 100%);
}

/* Elegant Buttons */
.nyx-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.nyx-btn-primary {
    background: linear-gradient(135deg, var(--nyx-primary) 0%, rgba(124, 58, 237, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.nyx-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.nyx-btn-secondary {
    background: transparent;
    color: var(--nyx-text-primary);
    border: 1px solid var(--nyx-border);
}

.nyx-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--nyx-border-hover);
}

/* Form Inputs - More Elegant */
.nyx-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--nyx-border);
    border-radius: 8px;
    color: var(--nyx-text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nyx-form-control:focus {
    outline: none;
    border-color: var(--nyx-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Refined Stats */
.nyx-stat-card {
    background: var(--nyx-bg-elevated);
    border: 1px solid var(--nyx-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.nyx-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--nyx-primary);
    box-shadow: var(--nyx-shadow-md);
}

.nyx-stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--nyx-primary) 0%, var(--nyx-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

/* Refined Sidebar */
.nyx-sidebar {
    background: var(--nyx-bg-secondary);
    border-right: 1px solid var(--nyx-border);
}

.nyx-nav-item {
    color: var(--nyx-text-secondary);
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nyx-nav-item:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--nyx-primary);
}

.nyx-nav-item.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--nyx-primary);
    font-weight: 500;
}

/* Typography Refinement */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nyx-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--nyx-text-primary) 0%, var(--nyx-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtle Animations */
@keyframes float-subtle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Loading States */
.nyx-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top-color: var(--nyx-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Tables */
.nyx-table {
    width: 100%;
    border-collapse: collapse;
}

.nyx-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--nyx-text-secondary);
    border-bottom: 1px solid var(--nyx-border);
}

.nyx-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--nyx-border);
}

.nyx-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Alerts - More Subtle */
.nyx-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nyx-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--nyx-success);
}

.nyx-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--nyx-danger);
}

/* Progress Bars */
.nyx-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.nyx-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--nyx-primary) 0%, var(--nyx-secondary) 100%);
    transition: width 0.3s ease;
}

/* Tooltips */
.nyx-tooltip {
    position: absolute;
    background: var(--nyx-bg-elevated);
    color: var(--nyx-text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    box-shadow: var(--nyx-shadow-lg);
    border: 1px solid var(--nyx-border);
    z-index: 9999;
    pointer-events: none;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--nyx-primary);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--nyx-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .nyx-title {
        font-size: 1.5rem;
    }
    
    .nyx-stat-value {
        font-size: 1.5rem;
    }
}