/* Dosyanın kaydedileceği yer: c:\Users\evon\Desktop\AI API\index.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-darker: #0c0c0e;
    --bg-main: #141417;
    --bg-sidebar: #0f0f12;
    --accent: #8648b2; /* Vivid Purple */
    --accent-glow: rgba(134, 72, 178, 0.4);
    --text-primary: #f0e6f5;
    --text-muted: #8e8e9c;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent), #4a1f6e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item i {
    width: 20px;
}

.nav-item:hover {
    background: var(--glass);
    color: white;
}

.nav-item.active {
    background: rgba(134, 72, 178, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #2a2a30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    background-color: var(--bg-main);
    padding: 40px;
    overflow-y: auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.content-section.active {
    display: block;
}

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

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

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

.capacity-bar {
    margin-top: 10px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.progress-bg {
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #d39dfa);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* FORMS & TABLES */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.add-key-form {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

input, select {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--accent);
}

.primary-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.nivex-table {
    width: 100%;
    border-collapse: collapse;
}

.nivex-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.nivex-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.active { background: rgba(130, 252, 166, 0.1); color: #82fca6; }
.status-badge.inactive { background: rgba(252, 130, 130, 0.1); color: #fc8282; }

/* CHAT WRAPPER */
.chat-wrapper {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    line-height: 1.5;
}

.message.ai { background: var(--bg-sidebar); border: 1px solid var(--glass-border); align-self: flex-start; }
.message.user { background: var(--accent); color: white; align-self: flex-end; }

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
}

.chat-input-area input { flex: 1; }

.chat-send-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
}
