/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #ffffff;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: #111;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar a {
    color: #bbb;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.navbar a:hover,
.navbar .active {
    background-color: #00ff7f;
    color: #111;
}

/* Main Containers */
.container {
    background-color: #181818;
    width: 60%;
    margin: 30px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.2);
    transition: all 0.3s ease-in-out;
}

/* Titles */
h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Buttons */
.button,
.generate-btn,
.send-btn,
.download-btn {
    background-color: #00ff7f;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    color: #111;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.3);
}

.button:hover,
.generate-btn:hover,
.send-btn:hover,
.download-btn:hover {
    background-color: #00cc66;
    box-shadow: 0 5px 20px rgba(0, 255, 127, 0.5);
}

/* Input Fields */
input[type="text"],
textarea {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #222;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #00ff7f;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

/* Chatbox */
.chatbox {
    background-color: #181818;
    width: 60%;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.2);
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message {
    background-color: #00ff7f;
    color: #0d0d0d;
    text-align: right;
    margin-left: auto;
}

.bot-message {
    background-color: #222;
    color: white;
    text-align: left;
    margin-right: auto;
}

/* Chat Input */
.input-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

textarea {
    width: 85%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    font-size: 16px;
    resize: none;
}

.send-btn {
    margin-left: 10px;
}

/* Image Generator */
.image-container {
    background-color: #181818;
    width: 60%;
    margin: 30px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.2);
}

.image-result img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.2);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #333;
    border-radius: 5px;
    margin-top: 15px;
    position: relative;
    height: 8px;
}

.progress-bar {
    width: 0%;
    height: 8px;
    background-color: #00ff7f;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

.progress-container p {
    font-size: 14px;
    margin-top: 5px;
    color: #bbb;
}

/* TTS Generator */
.audio-container {
    background-color: #181818;
    width: 60%;
    margin: 30px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.2);
}

.audio-container audio {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.footer {
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

/* Smooth Animations */
.button,
.generate-btn,
.send-btn,
.download-btn,
.input-container textarea {
    transition: all 0.3s ease-in-out;
}

.container,
.image-container,
.audio-container {
    transition: transform 0.3s ease-in-out;
}

.container:hover,
.image-container:hover,
.audio-container:hover {
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container, .image-container, .audio-container {
        width: 90%;
    }

    .chatbox {
        width: 90%;
    }

    .input-container {
        width: 90%;
    }
}



/* Homepage Container */
.homepage-container {
    background-color: #181818;
    width: 60%;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.2);
}

/* Grid for AI Tools */
.tool-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Individual Tool Cards */
.tool-card {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    text-decoration: none;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 127, 0.5);
    background-color: #00ff7f;
    color: #0d0d0d;
}

/* Footer */
.footer {
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .homepage-container {
        width: 90%;
    }

    .tool-grid {
        flex-direction: column;
        align-items: center;
    }

    .tool-card {
        width: 80%;
    }
}


/* AI Code Generator Styles */
.code-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #111;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 255, 100, 0.3);
    text-align: center;
}

.code-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.code-container p {
    font-size: 14px;
    color: #bbb;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #222;
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
}

.generate-btn {
    background: #00ff80;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease-in-out;
}

.generate-btn:hover {
    background: #00cc66;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    width: 0%;
    height: 10px;
    background: #00ff80;
    transition: width 0.4s ease-in-out;
}

.progress-text {
    font-size: 14px;
    color: #bbb;
    margin-top: 5px;
}

/* Code Output */
.code-result {
    background: #222;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: left;
    color: #fff;
}

pre {
    background: #000;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    background: #00ff80;
    border: none;
    color: #000;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #00cc66;
}
