/* JetCozum AI Chat Bot - Groq AI Tema */
:root {
    /* Groq AI Tema Renkleri */
    --groq-primary: #9b59b6;      /* Ana mor */
    --groq-secondary: #8e44ad;    /* Koyu mor */
    --groq-accent: #a569bd;       /* Açık mor */
    --groq-light: #f5eef8;        /* Çok açık mor */
    --groq-dark: #2c3e50;         /* Koyu arkaplan */
    --groq-success: #27ae60;      /* Yeşil */
    --groq-danger: #e74c3c;       /* Kırmızı */
    --groq-warning: #f39c12;      /* Turuncu */
    --groq-info: #3498db;         /* Mavi */
    --groq-speed: #00d4aa;        /* Hız yeşili */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--groq-dark) 0%, #34495e 100%);
    color: var(--groq-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Groq Theme */
body.groq-theme {
    --groq-dark: #1a1a2e;
    background: linear-gradient(135deg, var(--groq-dark) 0%, #16213e 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== HEADER ========== */
.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--groq-primary) 0%, var(--groq-secondary) 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--groq-speed), transparent);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header h1 i {
    color: var(--groq-speed);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.groq-badge {
    background: linear-gradient(135deg, var(--groq-speed), var(--groq-primary));
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--groq-speed);
    animation: pulse 2s infinite, glow 1.5s infinite alternate;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--groq-speed); }
    to { box-shadow: 0 0 15px var(--groq-speed); }
}

.api-status {
    background: rgba(155, 89, 182, 0.2);
    color: var(--groq-primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

/* ========== CHAT CONTAINER ========== */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    min-height: 70vh;
    height: calc(100vh - 250px);
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
}

.user-info h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.user-info p {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 15px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat i {
    color: var(--groq-accent);
    font-size: 16px;
}

.stat span {
    font-size: 12px;
    opacity: 0.8;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.control-btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
    text-align: left;
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.quick-commands {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-commands h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.quick-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.quick-btn:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: var(--groq-accent);
}

.api-info {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.api-info h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.info-item i {
    color: var(--groq-accent);
    width: 20px;
}

.info-item strong {
    color: var(--groq-speed);
}

/* ========== CHAT AREA ========== */
.chat-area {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Messages Container */
.messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.messages::-webkit-scrollbar {
    width: 8px;
}

.messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: var(--groq-primary);
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: var(--groq-secondary);
}

/* Message Styles */
.message {
    max-width: 85%;
    padding: 20px;
    border-radius: 18px;
    animation: messageAppear 0.4s ease-out;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    border-bottom-right-radius: 5px;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    backdrop-filter: blur(5px);
}

.groq-message {
    border-left: 4px solid var(--groq-speed);
}

.message.system {
    align-self: center;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    max-width: 90%;
    text-align: center;
}

.message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ff6b6b;
}

.welcome-message {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.1));
    border: 2px solid rgba(155, 89, 182, 0.2);
}

/* Message Header */
.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.bot-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-avatar i {
    color: white;
    font-size: 16px;
}

.groq-avatar {
    background: linear-gradient(135deg, var(--groq-speed), var(--groq-primary)) !important;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.user-avatar, .system-avatar, .error-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
}

.system-avatar {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.error-avatar {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.sender-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sender-info strong {
    font-size: 1em;
}

.model-badge {
    background: linear-gradient(135deg, var(--groq-speed), var(--groq-primary));
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.message-time {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: auto;
}

/* Message Content */
.message-content {
    font-size: 1em;
    line-height: 1.6;
}

.message-content p {
    margin-bottom: 10px;
}

.message-content ul, .message-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.message-content li {
    margin-bottom: 5px;
}

.message-content a {
    color: var(--groq-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--groq-accent);
    transition: all 0.3s;
}

.message-content a:hover {
    color: var(--groq-speed);
    border-bottom-style: solid;
}

.message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.message-content pre code {
    background: transparent;
    padding: 0;
}

/* Groq Footer */
.groq-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(155, 89, 182, 0.2);
    font-size: 0.8em;
    opacity: 0.7;
}

.groq-footer i {
    color: var(--groq-speed);
}

/* Message Footer */
.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    opacity: 0.7;
}

.copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: rgba(155, 89, 182, 0.1);
    color: var(--groq-accent);
}

/* Welcome Tips */
.welcome-tips {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid var(--groq-speed);
}

.tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.tip i {
    color: var(--groq-speed);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========== TYPING INDICATOR ========== */
.typing-indicator {
    display: none;
    padding: 20px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 15px;
    align-self: flex-start;
    margin: 0 25px 25px;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.typing-dots {
    display: flex;
    gap: 6px;
}

.typing-dots span {
    width: 10px;
    height: 10px;
    background: var(--groq-speed);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.typing-text {
    color: var(--groq-speed);
    font-weight: bold;
    font-size: 0.9em;
}

.model-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 8px;
}

.model-info i {
    color: var(--groq-primary);
}

/* ========== API STATUS MESSAGE ========== */
.api-status-message {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 0 25px 25px;
    display: none;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-content i {
    color: var(--groq-primary);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== YOUTUBE RESULTS ========== */
.youtube-results {
    margin: 0 25px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: none;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.youtube-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.youtube-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    color: #ff0000;
}

.result-count {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: var(--groq-light);
    cursor: pointer;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateX(5px);
}

.video-preview {
    position: relative;
    width: 140px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    cursor: pointer;
    flex-shrink: 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-preview:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 30px;
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1em;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 8px;
}

.video-details {
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    opacity: 0.7;
    flex-wrap: wrap;
}

.video-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.watch-btn:hover {
    background: #ff0000;
}

.share-btn:hover {
    background: #3498db;
}

.duration-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* ========== INPUT AREA ========== */
.input-area {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.input-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
}

.input-mode i {
    color: var(--groq-primary);
}

.char-count {
    font-size: 12px;
    color: #95a5a6;
    font-weight: bold;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.message-input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    font-size: 1em;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    resize: none;
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.5;
}

.message-input:focus {
    border-color: var(--groq-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
    background: linear-gradient(135deg, var(--groq-speed), var(--groq-primary));
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-actions .action-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
}

.input-hints {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    opacity: 0.7;
    flex-wrap: wrap;
}

.hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.hint:hover {
    background: rgba(155, 89, 182, 0.2);
    opacity: 1;
}

.hint i {
    color: var(--groq-speed);
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    opacity: 0.8;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--groq-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--groq-speed);
    text-decoration: underline;
}

/* ========== NOTIFICATIONS ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: var(--groq-success);
    color: white;
}

.notification.error {
    background: var(--groq-danger);
    color: white;
}

.notification.warning {
    background: var(--groq-warning);
    color: white;
}

.notification.info {
    background: var(--groq-primary);
    color: white;
}

.notification.groq {
    background: linear-gradient(135deg, var(--groq-speed), var(--groq-primary));
    color: white;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    margin-left: 10px;
}

.close-notification:hover {
    opacity: 1;
}

/* ========== SCROLL TO BOTTOM ========== */
.scroll-bottom {
    position: absolute;
    bottom: 100px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--groq-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-bottom:hover {
    background: var(--groq-secondary);
    transform: translateY(-2px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .header h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.6em;
        flex-direction: column;
        gap: 10px;
    }
    
    .ai-badge {
        margin-top: 10px;
    }
    
    .message {
        max-width: 95%;
        padding: 15px;
    }
    
    .video-item {
        flex-direction: column;
        text-align: center;
    }
    
    .video-preview {
        width: 100%;
        height: 180px;
    }
    
    .video-actions {
        justify-content: center;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .send-btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4em;
    }
    
    .status-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-header {
        flex-wrap: wrap;
    }
    
    .message-time {
        margin-left: 0;
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
}

/* ========== LIGHT THEME ========== */
body.light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

body.light-theme .header {
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    color: white;
}

body.light-theme .sidebar,
body.light-theme .chat-area,
body.light-theme .youtube-results {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .message.bot {
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.2);
    color: #333;
}

body.light-theme .message.user {
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    color: white;
}

body.light-theme .message.system {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
    color: #333;
}

body.light-theme .message.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

body.light-theme .message-input {
    background: white;
    color: #333;
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .message-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .control-btn,
body.light-theme .quick-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-theme .control-btn:hover,
body.light-theme .quick-btn:hover {
    background: linear-gradient(135deg, var(--groq-primary), var(--groq-secondary));
    color: white;
}

body.light-theme .input-hints .hint {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-theme .input-hints .hint:hover {
    background: rgba(155, 89, 182, 0.1);
}

body.light-theme .footer {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-theme .footer-links a {
    color: var(--groq-secondary);
}

body.light-theme .footer-links a:hover {
    color: var(--groq-primary);
}

/* Groq Speed Elements */
.speed-badge {
    background: linear-gradient(135deg, var(--groq-speed), #00b894);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Groq Loading Animation */
.groq-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.groq-loading-dot {
    width: 12px;
    height: 12px;
    background: var(--groq-speed);
    border-radius: 50%;
    animation: groq-bounce 1.4s infinite ease-in-out both;
}

.groq-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.groq-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes groq-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Groq Button Pulse Effect */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-pulse:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Groq Message Shine Effect */
.groq-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.groq-message:hover::before {
    left: 100%;
}

/* ========== PRINT STYLES ========== */
@media print {
    .sidebar,
    .input-area,
    .footer,
    .typing-indicator,
    .api-status-message,
    .youtube-results,
    .control-btn,
    .quick-btn,
    .action-btn,
    .close-btn,
    .copy-btn {
        display: none !important;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .chat-area {
        border: none;
        background: white;
    }
    
    .messages {
        padding: 0;
        overflow: visible;
    }
    
    .message {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        background: white !important;
        color: black !important;
    }
}
.speed-badge {
    background: linear-gradient(135deg, var(--groq-speed), #00b894);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.stat .speed-badge {
    margin-top: 3px;
    font-size: 10px;
    padding: 3px 8px;
}

.speed-badge i {
    font-size: 10px;
}