/* Vidya Educational App - Main Styles */

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

.dark-mode .navbar {
    background-color: #2d3748 !important;
}

.dark-mode .card {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .list-group-item {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .list-group-item:hover {
    background-color: #4a5568;
}

.dark-mode .list-group-item.active {
    background-color: #3182ce;
    border-color: #3182ce;
}

.dark-mode .form-control {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .form-control:focus {
    background-color: #4a5568;
    border-color: #3182ce;
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}

.dark-mode .btn-outline-light {
    color: #e2e8f0;
    border-color: #e2e8f0;
}

.dark-mode .btn-outline-light:hover {
    background-color: #e2e8f0;
    color: #1a202c;
}

.dark-mode .text-muted {
    color: #a0aec0 !important;
}

.dark-mode .dropdown-menu {
    background-color: #2d3748;
    border-color: #4a5568;
}

.dark-mode .dropdown-item {
    color: #e2e8f0;
}

.dark-mode .dropdown-item:hover {
    background-color: #4a5568;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #2d3748;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Loading Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Tool Output Styling */
.tool-output {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.dark-mode .tool-output {
    background: #4a5568;
    border-left-color: #4299e1;
}

.tool-output h6 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.dark-mode .tool-output h6 {
    color: #e2e8f0;
}

/* Interactive Container Styling */
.interactive-container {
    min-height: 300px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    position: relative;
}

.dark-mode .interactive-container {
    background: #4a5568;
    border-color: #718096;
}

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    border-radius: 8px;
}

/* Message Styling */
.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.message.ai {
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .message.ai {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

/* Next Step Suggestion */
.next-step {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-style: italic;
    color: #155724;
}

.dark-mode .next-step {
    background: #2d5016;
    border-color: #4a7c59;
    color: #c3e6cb;
}

/* Subject Badge */
.subject-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .message {
        max-width: 95%;
    }
    
    .iframe-container {
        height: 300px;
    }
    
    .interactive-container {
        min-height: 250px;
    }
    
    .subject-icon {
        font-size: 2rem !important;
    }
    
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .chat-container {
        height: calc(100vh - 150px);
    }
    
    .iframe-container {
        height: 250px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.text-purple {
    color: #6f42c1 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.card:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}

.dark-mode .btn:focus,
.dark-mode .form-control:focus,
.dark-mode .card:focus {
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
} 