/* ================= BASE & RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #f94144;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #4361ee, #7209b7);
    --gradient-light: linear-gradient(135deg, #4cc9f0, #4361ee);
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ================= NOTIFICATION TOAST ================= */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0d6efd; /* solid color for test */
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;

    opacity: 0;
    transform: translateX(120%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}


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

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

/* ================= DESKTOP CONTAINER ================= */
.desktop-container {
    width: 100%;
    max-width: 1400px;
    height: 800px;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

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

/* ================= COLLEGE SIDEBAR ================= */
.college-sidebar {
    width: 30%;
    min-width: 300px;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sidebar-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background: radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.3) 0%, transparent 50%);
}

.college-header {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.college-logo {
    width: 70px;
    height: 70px;
    
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}

.college-logo-img {
    width: 70px;   /* SAME as FA icon size */
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
}



.college-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(45deg, #fff, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.college-subtitle {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.college-tagline {
    margin-top: 12px;
}

.tagline-badge {
    background: rgba(76, 201, 240, 0.1);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    border: 1px solid rgba(76, 201, 240, 0.3);
    display: inline-block;
}

/* College Stats */
.college-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
    z-index: 2;
    position: relative;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    z-index: 2;
    position: relative;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: var(--primary);
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    font-size: 13px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.card-badge.alert {
    background: var(--warning);
}

/* AI Status */
.ai-status {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    font-size: 14px;
}

.ai-pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(76, 201, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
}

.ai-accuracy {
    margin-left: auto;
    background: rgba(76, 201, 240, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* ================= CHAT CONTAINER ================= */
.chat-container {
    width: 70%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
}

/* Chat Header */
.chat-header {
    background: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-info h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.typing-status {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}

.chat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chat-tag {
    background: var(--gray-light);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: var(--gray);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    background: white;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    min-height: 0;
}

/* Messages */
.message {
    max-width: 85%;
    padding: 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    animation: messageSlide 0.4s ease-out;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.bot-message {
    
    color: var(--dark);
   
    align-self: flex-start;
    
}

.bot-message strong {
     display: block;
    font-size: 16px;
}

.user-message {
    background: #f0f4ff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
    text-align: right;
}

/* Welcome Icon */
.welcome-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.quick-btn {
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.3);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.quick-btn:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.15);
}

/* Chat Suggestions */
.chat-suggestions {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.chat-suggestions p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    background: white;
    border: 1px solid var(--gray-light);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Chat Footer */
.chat-footer {
    padding: 20px 25px;
    background: white;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--gray-light);
    position: relative;
    flex-shrink: 0;
}

.input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border-radius: 25px;
    padding: 5px;
}

.input-icons-left,
.input-icons-right {
    display: flex;
    gap: 5px;
    padding: 0 10px;
}

.input-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.input-icon-btn:hover {
    background: white;
    color: var(--primary);
}

.chat-footer input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 15px;
    outline: none;
    color: var(--dark);
    min-width: 0;
}

.send-btn {
    width: 55px;
    height: 55px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
    flex-shrink: 0;
}

.send-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
}

.send-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: sendPulse 2s infinite;
}

@keyframes sendPulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.3); }
}

/* Voice Input Indicator */
.voice-input-indicator {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--gradient);
    color: white;
    padding: 18px;
    border-radius: 20px 20px 0 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.voice-animation {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 25px;
}

.voice-bar {
    width: 3px;
    height: 15px;
    background: white;
    border-radius: 2px;
    animation: voiceWave 1s infinite ease-in-out;
}

.voice-bar:nth-child(2) { animation-delay: 0.2s; }
.voice-bar:nth-child(3) { animation-delay: 0.4s; }
.voice-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes voiceWave {
    0%, 100% { height: 8px; }
    50% { height: 25px; }
}

.voice-stop {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
}

/* ================= MOBILE VERSION ================= */
.mobile-container {
    display: flex;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
}

/* Mobile Header */
.mobile-header {
    background: var(--gradient);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.mobile-menu-btn,
.mobile-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mobile-college-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 0 10px;
}

.mobile-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.mobile-logo-img {
    width: 40px;   /* SAME as font-size */
    height: 40px;
    object-fit: contain;

}


.mobile-online {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.mobile-college-details {
    flex: 1;
    min-width: 0;
}

.mobile-college-details h3 {
    font-size: 16px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-status {
    font-size: 12px;
    opacity: 0.9;
}

/* Mobile Chat Body */
.mobile-chat-body {
    flex: 1;
    
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    min-height: 0;
}

/* Mobile Suggestions */
.mobile-suggestions {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.mobile-suggestions .suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-suggestions .suggestion-chip {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 18px;
}

/* Mobile Chat Footer */
.mobile-chat-footer {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--gray-light);
    position: relative;
    flex-shrink: 0;
}

.mobile-chat-footer .input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border-radius: 25px;
    padding: 0 12px;
}

.mobile-input-icon {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.mobile-input-icon:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.mobile-chat-footer input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.mobile-send-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 15px rgba(67, 97, 238, 0.3);
}

.mobile-send-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
}

/* Mobile Voice Indicator */
.mobile-voice-indicator {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--gradient);
    color: white;
    padding: 15px;
    border-radius: 20px 20px 0 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.mobile-voice-indicator .voice-animation {
    height: 20px;
}

.mobile-voice-indicator .voice-bar {
    width: 2px;
    height: 12px;
}

/* Mobile Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-header {
    background: var(--gradient);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.menu-header h3 {
    font-size: 18px;
}

.menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-items {
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlide 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--gradient);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.setting-item {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    flex: 1;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid var(--gray-light);
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #d3d9e3;
}

/* Event Styles */
.event-detail-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px 0;
    font-size: 14px;
    transition: background 0.3s;
}

.event-detail-btn:hover {
    background: #2980b9;
}

.event-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.event-upcoming {
    border-left-color: #27ae60;
}

.event-completed {
    border-left-color: #7f8c8d;
}

.event-highlights {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.event-highlights li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.event-highlights li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
}

/* Table Styles */
.timetable-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.timetable-table th,
.timetable-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.timetable-table th {
    background: var(--gradient);
    color: white;
}

.timetable-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1240px) {
    .desktop-container {
        max-width: 100%;
        height: 700px;
        margin: 20px;
    }
    
    .college-sidebar {
        width: 35%;
    }
    
    .chat-container {
        width: 65%;
    }
}

@media (max-width: 992px) {
    body {
        padding: 0;
        background: white;
    }
    
    .desktop-container {
        display: none;
    }
    
    .mobile-container {
        display: flex;
    }
    
    .notification-toast {
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        top: 10px;
    }
}

@media (max-width: 360px) {

    .mobile-chat-footer {
        padding: 10px;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-chat-body { padding: 15px; }

    .mobile-chat-footer .input-container {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-chat-footer input {
        font-size: 14px;
        padding: 10px 6px;
    }

    .mobile-send-btn {
        flex: 0 0 44px;   /* 🔑 IMPORTANT */
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50%;
    }
}


/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .mobile-container {
        max-height: 100vh;
    }
    
    .mobile-header {
        padding: 10px 15px;
    }
    
    .mobile-chat-body {
        padding: 10px;
    }
    
    .message {
        max-width: 80%;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .chat-container,
    .mobile-container {
        border: 0.5px solid rgba(0, 0, 0, 0.1);
    }
}

/* Print Styles */
@media print {
    .mobile-header,
    .mobile-chat-footer,
    .mobile-suggestions,
    .chat-footer,
    .chat-suggestions,
    .header-actions,
    .quick-actions {
        display: none !important;
    }
    
    .mobile-chat-body,
    .chat-body {
        overflow: visible;
        height: auto;
        background: white;
    }
    
    .message {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ================= UTILITY CLASSES ================= */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.highlight {
    background: linear-gradient(120deg, rgba(76, 201, 240, 0.3), rgba(67, 97, 238, 0.3));
    padding: 2px 6px;
    border-radius: 4px;
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .desktop-container {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .chat-container {
        background: rgba(30, 30, 30, 0.98);
    }
    
    .bot-message {
        
        border-color: rgba(67, 97, 238, 0.2);
    }
}

/* iOS Safe Areas */
@supports (padding: max(0px)) {
    .mobile-container {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .mobile-header {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(67, 97, 238, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 97, 238, 0.5);
}

.active-mic {
    color: #27ae60;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.bot-message {
    position: relative;
    padding-right: 40px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #777;
    opacity: 0;
    transition: 0.3s;
}

.bot-message:hover .copy-btn {
    opacity: 1;
}
