body {
    font-family: "Inter", "Segoe UI", sans-serif;
    background: linear-gradient(
        135deg,
        #e0e7ff,
        #f8fafc,
        #ede9fe
    );
    margin: 0;
    padding: 40px;
}
.container {
    width: 80%;
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-container {
    width: 80%;
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-container p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}
.about-container h2 {

    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;

}
.about-container ul {

    padding-left: 25px;
    color: #334155;
    line-height: 1.8;
    font-size: 15px;

}


nav {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
   
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    margin: 0 20px;
    font-size: 17px;
    
}

nav a:hover {
    color: #0077cc;
    text-decoration: underline;
}

.tech-list {
    padding: 0;
    list-style: none;
}

.tech-list li {

    display: inline-block;
    background: #eef2ff;
    color: #1e40af;
    padding: 10px 25px;
    margin: 10px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;

}

h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: -1px;
}
h2 {
    color: #2563eb;
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
}

p {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
}


.ai_image {
    display: block;
    width: 100px;
    height: auto;
    margin: 20px auto; 
    animation: rotateAI 12s ease-in-out infinite;
}
@keyframes rotateAI {
    0% {
        transform: rotateY(0deg);
    }

    60% {
        transform: rotateY(360deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}


textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
    
}
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 8px rgba(37,99,235,0.3);
}

button {
    background:linear-gradient(
    90deg,
    #2563eb,
    #7c3aed
    );
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:disabled {
    background:#94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.response {
    margin-top:20px;
    padding:16px;
    background:#f8fafc;
    border:1px solid #cbd5e1;
    border-left:5px solid #2563eb;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.ai-text {
    white-space: pre-line;
    line-height: 1.6;
}

.response-actions {

    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: center;

}


.response-actions form {
    margin: 0;
}


.response-actions button {

    padding: 10px 18px;
    font-size: 15px;

}

.response-actions button:first-child {
    background: #2563eb;
}

.response-actions button:last-child {
    background: #16a34a;
}

.history-question {
    width: 100%;
    text-align: left;
    background: #eef2ff;
    color: #1e40af;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.history-question:hover {

    background:#dbeafe;

}


.history-answer {

    display:none;
    margin-top:15px;
    padding:20px;
    background:#f8fafc;
    border-left:5px solid #2563eb;
    border-radius:10px;

}


.history-answer h3 {

    color:#2563eb;

}

.history-header {

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;

}


.delete-button {

    background:#dc2626;
    color:white;
    padding:10px 15px;
    border-radius:8px;
    border:none;
    cursor:pointer;

}


.delete-button:hover {

    background:#b91c1c;

}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #ddd;
    
}

footer p {
    margin: 8px 0;
    font-size: 12px;
    color: #666;
}


.dark-btn {
    background:#111827;
    color:white;
    padding:8px 15px;
    border-radius:8px;
    margin-left: 16px;
}

.dark {
    background:#121212;
    color:white;
}
.dark .container {
    background:#1e1e1e;

}


.dark textarea {
    background:#333;
    color:white;

}


.dark .card {
    background:#222;
    border-color:#555;

}


.dark footer {
    color: #ccc;
}

@media (max-width: 768px) {

    body {
        padding: 20px;
    }

    .container,
    .about-container {
        width: 95%;
        padding: 25px;
    }

    h1 {
        font-size: 32px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    textarea {
        font-size: 15px;
    }

}