@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-panel: #0f1115;
    --primary-blue: #00f0ff;
    --primary-dark: #008c9e;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 25, 35, 0.7);
    --shadow-neon: 0 0 10px rgba(0, 240, 255, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #1a253a 0%, var(--bg-dark) 80%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout Grid */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-panel);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-shadow: var(--shadow-neon);
    text-align: center;
}

.nav-links a {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary-blue);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

h1, h2, h3 { font-family: 'Rajdhani', sans-serif; color: white; }

/* Cards "Black Piano" */
.card {
    background: linear-gradient(145deg, rgba(25,30,40,0.9), rgba(15,20,25,0.95));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0.5;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-dark), #00b4d8);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}

/* API Key Display */
.api-key-box {
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--primary-dark);
    font-family: monospace;
    color: var(--primary-blue);
    font-size: 1.1rem;
    word-break: break-all;
    text-align: center;
    margin: 10px 0;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.auth-box {
    width: 100%;
    max-width: 400px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th { text-align: left; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; padding: 8px; border-bottom: 1px solid var(--glass-border); }
td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.num-col { color: var(--primary-blue); font-weight: bold; font-family: 'Rajdhani'; font-size: 1.2rem; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.loading { color: var(--primary-blue); text-align: center; padding: 20px; }

@media (max-width: 768px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; padding: 15px; }
    .nav-links { display: flex; overflow-x: auto; gap: 10px; }
    .nav-links a { white-space: nowrap; margin-bottom: 0; }
}

/* Accordion Styles */
.accordion {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    transition: 0.3s;
}
.accordion-header:hover { background: rgba(0, 240, 255, 0.05); }
.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.1);
}
.accordion.open .accordion-content { padding: 20px; max-height: 500px; border-top: 1px solid var(--glass-border); }
.method { font-weight: bold; color: var(--primary-blue); margin-right: 10px; }
.url-path { font-family: monospace; color: var(--text-muted); }