/* Custom Styles for Instructor Panel */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nav-item {
    color: #64748b;
    font-size: 0.875rem;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: #0A2342;
}

.nav-item.active {
    background-color: #0A2342;
    color: white;
}

.nav-item.active i {
    color: white;
}

.mobile-nav-item {
    color: #94a3b8;
    transition: all 0.2s;
}

.mobile-nav-item.active {
    color: #0A2342;
}

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

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.table-row:hover {
    background-color: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background-color: #dcfce7; color: #166534; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #dbeafe; color: #1e40af; }
.badge-secondary { background-color: #f1f5f9; color: #475569; }
.badge-brand { background-color: #0A2342; color: white; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast-enter { animation: slideIn 0.3s ease-out; }
.toast-exit { animation: slideOut 0.3s ease-in; }

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#modalContent {
    animation: modalIn 0.2s ease-out;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    min-height: 250px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.progress-bar {
    transition: width 0.5s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.page-content {
    animation: fadeIn 0.3s ease-out;
}

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

/* Chat Styles */
.chat-container {
    height: calc(100vh - 220px);
    min-height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
}

.chat-bubble-sent {
    background-color: #0A2342;
    color: white;
    border-radius: 1rem 1rem 0.25rem 1rem;
}

.chat-bubble-received {
    background-color: #f1f5f9;
    color: #1e293b;
    border-radius: 1rem 1rem 1rem 0.25rem;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

@media (max-width: 1023px) {
    main {
        padding-bottom: 5rem !important;
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 220px;
        min-height: 220px;
    }

    .responsive-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
