/* PS AI Specific Styles */
body{
    background-color: #000;
    margin: 0;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}
.ai-main {
    margin-top: 30px;
    padding: 30px 20px;
    flex: 1;
    background-color: #000000;
    z-index: 0;
}

.ai-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ai-header {
    background: linear-gradient(62deg, #F33742 20.15%, #FCB111 39.15%, #4382EE 58.16%, #B840B4 77.16%, #FB9F18 96.16%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
}

.ai-header h1 {
    margin-bottom: 20px;
    font-family: 'Tilt Warp', sans-serif;
    letter-spacing: 1px;
}

.ai-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.tab-btn.active {
    background-color: white;
    color: #f75a00;
}

/* Tab content */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* Chat styles */
#chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f9fafc;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}

.message-content p {
    margin: 0 0 10px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin: 8px 0 12px 22px;
}

.message-content ul {
    list-style: disc;
}

.message-content ol {
    list-style: decimal;
}

.message-content li {
    margin: 6px 0;
}

.message-content h3,
.message-content h4 {
    margin: 12px 0 8px 0;
    color: #333;
}

.message.user .message-content {
    background-color: #f75a00;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.message.bot .message-content {
    background-color: #f1f3f6;
    border-radius: 15px 15px 15px 0;
}

.input-container {
    display: flex;
    gap: 10px;
}

#question-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

button {
    background-color: #f75a00;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

button:hover {
    background-color: #f75a00;
}

/* Roadmap styles */
#roadmap-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e58e2a 0%, #f75a00 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.primary-btn:hover {
    opacity: 0.9;
}

#roadmap-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f75a00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#roadmap-content {
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

#roadmap-content h2 {
    color: #f75a00;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

#roadmap-content h3 {
    color: #666;
    margin-top: 25px;
    margin-bottom: 10px;
}

#roadmap-content h4 {
    color: #888;
    margin-top: 20px;
    margin-bottom: 8px;
}

#roadmap-content ul, 
#roadmap-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

#roadmap-content ul {
    list-style: disc;
}

#roadmap-content ol {
    list-style: decimal;
}

#roadmap-content li {
    margin-bottom: 8px;
}

#roadmap-content p {
    margin-bottom: 15px;
}

.error-message {
    color: #d9534f;
    background-color: #f9eaea;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #d9534f;
    margin: 20px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ai-main {
        padding: 15px 10px;
    }
    
    .ai-header {
        padding: 20px;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    #chat-container {
        height: 400px;
    }
}

/* Add active class for navigation */
.listnav.active {
    color: #f75a00;
    font-weight: bold;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}
