:root {
    --bg-main: #050505;
    --bg-sidebar: #0a0a0a;
    --accent: #00f2ff;
    --text-main: #eee;
    --text-muted: #888;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100%;
}

/* Sidebar */
aside {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: 0.2s;
}

nav a:hover, nav a.active {
    color: #fff;
    background: var(--glass);
}

.premium-badge {
    background: linear-gradient(90deg, #00f2ff, #0062ff);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 0.1em;
}

/* Main Content */
main {
    padding: 4rem;
    overflow-y: auto;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.content-view {
    animation: fadeIn 0.4s ease;
}

.add-keyword {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

input[type="text"] {
    flex-grow: 1;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

#addBtn {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#addBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Keyword List */
.keyword-list {
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 2rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.keyword-tag {
    background: #1a1a1a;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.keyword-tag span {
    color: #eee;
}

.keyword-tag button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.keyword-tag button:hover {
    color: #ff4444;
}

.save-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
}

.save-indicator.visible {
    opacity: 1;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1) 0%, rgba(0, 98, 255, 0.1) 100%);
    border: 1px solid var(--accent);
}

.stat-card.highlight .stat-value {
    text-shadow: 0 0 20px var(--accent);
}

.stat-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    height: 100%;
    padding-top: 2rem;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bar {
    width: 40px;
    background: linear-gradient(to top, var(--accent), #0062ff);
    border-radius: 6px 6px 0 0;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bar:hover::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #fff;
}

.bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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