/* CSS Design System for Autobot Lo-Fi Beat - SaaS 15 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #05040a;
    --bg-card: rgba(13, 10, 24, 0.7);
    --border-color: rgba(244, 114, 182, 0.2);
    --border-glow: rgba(244, 114, 182, 0.08);
    --primary-pink: #f472b6;
    --primary-purple: #818cf8;
    --primary-cyan: #38bdf8;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --neon-shadow: 0 0 25px rgba(244, 114, 182, 0.35);
    --neon-shadow-blue: 0 0 25px rgba(129, 140, 248, 0.35);
    --glass-blur: blur(18px);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(244, 114, 182, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Outfit', 'Noto Sans Thai', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Container & Header */
.app-container {
    max-width: 1550px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(244, 114, 182, 0.2);
}

.logo-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

.status-badge {
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid var(--primary-pink);
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.15);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-pink);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(244, 114, 182, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 114, 182, 0); }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), var(--border-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.glass-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(244, 114, 182, 0.15);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 4px solid var(--primary-pink);
    padding-left: 0.8rem;
}

/* Forms & inputs */
.config-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.field-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-box label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
}

select, input[type="text"], input[type="range"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

select:focus, input[type="text"]:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
}

/* range input styling */
input[type="range"] {
    padding: 0.5rem;
    cursor: pointer;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-pink);
    box-shadow: 0 0 8px var(--primary-pink);
}

/* Premium Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 1.8rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    box-shadow: var(--neon-shadow);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.5);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    margin-top: 0.8rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    transform: none;
}

/* Synth Console / Layout */
.synth-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
}

/* Piano Keys */
.piano-keyboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.synth-key {
    background: rgba(255, 255, 255, 0.9);
    color: #0b071a;
    border-radius: 6px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0.8rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s ease;
    border: none;
}

.synth-key:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.synth-key.active {
    background: var(--primary-pink);
    color: white;
    box-shadow: 0 0 20px var(--primary-pink);
    transform: scale(0.96) translateY(4px);
}

.synth-key span {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.2rem;
}

/* Drum Grid */
.drum-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.drum-pad {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s ease;
}

.drum-pad:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-purple);
}

.drum-pad.active {
    background: var(--primary-purple);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px var(--primary-purple);
    transform: scale(0.94);
}

.drum-pad span {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.2rem;
}

/* Vinyl Player visualizer */
.vinyl-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.vinyl-record {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #27272a 10%, #09090b 25%, #18181b 30%, #09090b 45%, #18181b 50%, #09090b 65%, #18181b 70%, #09090b 85%);
    border: 2px solid #2d2d30;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.1s linear;
}

.vinyl-record::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-pink);
    box-shadow: 0 0 10px var(--primary-pink);
}

.spinning {
    animation: rotateRecord 4s linear infinite;
}

@keyframes rotateRecord {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

/* Chord board styling */
.chords-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 250px;
    overflow-y: auto;
}

.chords-display {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.chord-card {
    background: rgba(244, 114, 182, 0.05);
    border: 1px dashed var(--primary-pink);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-pink);
    min-width: 90px;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
    transition: all 0.3s ease;
}

.chord-card.playing {
    background: var(--primary-pink);
    border-style: solid;
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 15px var(--primary-pink);
    transform: scale(1.05);
}

/* Console logs look */
.console-logs {
    background: rgba(4, 2, 8, 0.95);
    border: 1px solid rgba(244, 114, 182, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #ffd6e8;
    height: 150px;
    overflow-y: auto;
    margin-top: 1.5rem;
}

.console-line {
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.8rem;
}

.console-timestamp {
    color: var(--primary-pink);
}

.console-success {
    color: #10b981;
}

.console-info {
    color: #38bdf8;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}
