:root {
    --primary-color: #00ff41; /* Hacker Green */
    --secondary-color: #008F11;
    --bg-color: #0d1117; /* GitHub Dark Dimmed */
    --card-bg: #161b22;
    --text-color: #c9d1d9;
    --header-bg: #161b22;
    --border-color: #30363d;
    --font-stack: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.header {
    background-color: var(--header-bg);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo::before {
    content: ">_ ";
    opacity: 0.8;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
    opacity: 0.7;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Dashboard Styles */
.dashboard {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
}

.hero-section h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1rem;
    color: #8b949e;
}

.terminal-box {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin: 20px auto;
    font-family: var(--font-stack);
    text-align: left;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-line {
    margin: 5px 0;
    line-height: 1.5;
    color: #8b949e;
}

.key { color: #d2a8ff; } /* Purple */
.string { color: #a5d6ff; } /* Blue */
.number { color: #79c0ff; } /* Light Blue */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.card p {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.btn-small {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card:hover .btn-small {
    background: var(--primary-color);
    color: #000;
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: dashed;
}

/* Chat Wrapper Update */
.chat-wrapper {
    width: 100%;
    max-width: 1200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

iframe {
    flex: 1;
    display: block;
    border: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: #484f58;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav a {
        margin-left: 0;
        font-size: 0.85rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .terminal-box {
        margin: 20px 10px;
        font-size: 0.85rem;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 0 15px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .floating-btn {
        bottom: 20px;
        right: 20px;
    }
}

