body {
    font-family: sans-serif;
    background-color: #121212 !important;
    color: #f0f0f0; /* Light text */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background-color: #212121; /* Darker header */
    color: #e0e0e0;
    text-align: center;
    padding: 1em 0;
    border-bottom: 2px solid #330066; /* Purple accent */
}

main {
    flex: 1;
    padding: 20px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

#input-section, #output-section {
    margin-bottom: 20px;
    background-color: #1e1e1e; /* Slightly lighter section background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#input-section label {
    display: block;
    margin-bottom: 10px;
    color: #bbb;
}

#promptInput {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #f0f0f0;
    font-size: 16px;
    resize: vertical; /* Allow vertical resize */
    overflow: auto; /* Enable scroll for long text */
    min-height: 80px; /* Minimum height */
}

#generateBtn {
    padding: 10px 20px;
    background-color: #330066; /* Purple button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#generateBtn:hover {
    background-color: #4d0099; /* Lighter purple on hover */
}

#generateBtn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#output-section h2 {
    color: #bbb;
    margin-top: 0;
}

#output-container {
    position: relative; /* For positioning copy button */
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden; /* To contain prism background */
}

#output-container pre {
    margin: 0;
    padding: 25px;
    overflow-x: auto; /* Horizontal scroll for long code lines */
    max-height: 500px; /* Limit output height and add scroll if needed */
    overflow-y: auto;
}

.ads {
    padding: 5px;
    align-self: center;
}

#output-container code {
    display: block; /* Ensure code fills the pre */
    white-space: pre; /* Keep formatting */
    font-family: monospace; /* Monospace font for code */
    font-size: 14px;
    line-height: 1.4;
}

#copyBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#copyBtn:hover {
    background-color: #555;
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #212121;
    color: #ccc;
    border-top: 2px solid #330066; /* Purple accent */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    #input-section, #output-section {
        padding: 15px;
    }

    #promptInput, #generateBtn, #copyBtn {
        font-size: 14px;
    }
}
/* Custom Dark Purple Theme */
.bg-purple {
    background-color: #19263442 !important;
    color: #8f5252 !important;
}

.bg-light {
    background-color: #212121 !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

body {
    font-family: sans-serif;
}

#input-section, #output-section {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #3e8e41;
}

#output-container {
    border: 1px solid #6c757d;
    border-radius: 4px;
    padding: 10px;
    background-color: #343a40;
}

/* Basic responsiveness */
@media (max-width: 768px) {
    /* Adjustments for smaller screens */
    textarea {
        font-size: 14px;
    }
    button {
        font-size: 14px;
    }
}
