:root {
    --red: #dc3545;
    --black: #212529;
    --white: #ffffff;
    --gray: #6c757d;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.navbar {
    background: rgba(33, 37, 41, 0.95);
    border-bottom: 2px solid var(--red);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
}

.navbar-toggler {
    border: none;
    color: var(--white);
}

.nav-link {
    color: var(--white) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--red) !important;
}

.header {
    background: linear-gradient(180deg, rgba(33, 37, 41, 0.9), rgba(33, 37, 41, 0.7));
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 3px solid var(--red);
    margin-bottom: 2rem;
}

.header h1 {
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.header p {
    color: var(--gray);
    font-style: italic;
}

.tool-section {
    background: rgba(33, 37, 41, 0.8);
    border: 1px solid var(--red);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-section h2 {
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tool-buttons {
    margin-bottom: 1.5rem;
}

.tool-btn {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--red);
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn.active {
    background: var(--red);
    color: var(--white);
}

.tool-btn:hover {
    background: #c82333;
    border-color: #c82333;
}

.product-section {
    background: rgba(33, 37, 41, 0.8);
    border: 1px solid var(--red);
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
}

.product-section h3 {
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c82333;
    border-color: #c82333;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.form-control, .form-select {
    background: var(--black);
    color: var(--white);
    border-color: var(--gray);
}

.form-control:focus, .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.api-status {
    display: none;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.api-status.success {
    background: #28a745;
    color: var(--white);
}

.api-status.error {
    background: var(--red);
    color: var(--white);
}

.api-status.loading {
    background: var(--gray);
    color: var(--white);
}

.prompt-card, .paragraph-card {
    background: rgba(33, 37, 41, 0.9);
    border-left: 4px solid var(--red);
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.banner {
    margin-bottom: 1rem;
    text-align: center;
}

.banner img {
    max-width: 100%;
    border-radius: 5px;
    border: 2px solid var(--red);
    transition: transform 0.3s ease;
}

.banner img:hover {
    transform: scale(1.05);
}

.footer {
    background: var(--red);
    color: var(--black);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

.neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    .navbar-nav.active { /* This class is toggled by the JS to show/hide the menu on small screens */
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .container {
        padding: 0 1rem;
    }
    .col-8, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .banner img {
        max-width: 90%;
    }
    .tool-buttons {
        flex-direction: column;
    }
    .tool-btn {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 1200px;
    }
    .row {
        display: flex;
        flex-wrap: nowrap;
    }
    .col-8 {
        flex: 0 0 80%;
        max-width: 80%;
    }
    .col-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}