* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0078d4;
    --secondary-color: #106ebe;
    --success-color: #107c10;
    --danger-color: #d13438;
    --warning-color: #ff8c00;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #323130;
    --text-secondary: #605e5c;
    --border-color: #edebe9;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --offline-bg: #fff4ce;
    --offline-border: #ffb900;
    --error-bg: #fde7e9;
    --error-border: #d13438;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    color: var(--text-color);
    padding-top: 80px; /* Space for connection banner */
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.3;
}

.images-line {
    display: flex;
    animation: slideLeft 120s linear infinite;
    white-space: nowrap;
}

.images-line:nth-child(2) {
    animation: slideRight 100s linear infinite;
    animation-delay: -20s;
}

.images-line:nth-child(3) {
    animation: slideLeft 110s linear infinite;
    animation-delay: -40s;
}

.images-line .line {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.images-line .line.large {
    width: 280px;
    height: 280px;
}

.images-line .line:hover {
    transform: scale(1.05);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Connection Banner */
.connection-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--error-bg);
    border-bottom: 2px solid var(--error-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.connection-banner.warning {
    background: var(--offline-bg);
    border-bottom-color: var(--offline-border);
}

.connection-banner.hidden {
    display: none;
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.status-icon {
    font-size: 18px;
}

.reconnect-btn {
    margin-left: auto;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.reconnect-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.15);
    /* backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: calc(100vh - 120px);
    min-height: 500px;
    max-height: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Session List Sidebar */
.session-list-panel {
    width: 280px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.session-list-panel.hidden {
    transform: translateX(-100%);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
}

.session-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.session-list-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-sidebar-btn:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.session-list-actions {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.new-chat-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.new-chat-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.session-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.session-item {
    padding: 12px 16px;
    margin-bottom: 4px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.session-item:hover {
    background: #f0f7ff;
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.session-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.session-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-item-meta {
    font-size: 11px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--danger-color);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.session-item:hover .session-item-delete {
    opacity: 1;
}

.session-item-delete:hover {
    background: var(--danger-color);
    color: white;
}

.session-item.active .session-item-delete {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.session-item.active .session-item-delete:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    background: rgba(0, 120, 212, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-sidebar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 14px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    /* background: var(--bg-color); */
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-bar.connected .status-indicator {
    background: var(--success-color);
}

.status-bar.disconnected .status-indicator {
    background: var(--danger-color);
}

.status-bar.connecting .status-indicator {
    background: var(--warning-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.history-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
}

#importFileInput {
    display: none;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.welcome-message h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.welcome-message p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message ul {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.welcome-message li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.welcome-cta {
    font-weight: 600;
    color: white;
    margin-top: 24px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.message {
    display: flex;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.5;
}

.message.user .message-content {
    background: rgb(0 120 212 / 20%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    color: white;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    font-weight: 500;
}

.message.bot .message-content {
    background: rgb(255 255 255 / 30%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    font-weight: 500;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.7;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 16px;
}

.typing-indicator.active {
    display: flex;
    gap: 4px;
    animation: slideIn 0.3s ease;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.input-container {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#messageForm {
    display: flex;
    gap: 12px;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

#messageInput:focus {
    border-color: rgba(0, 120, 212, 0.8);
    background: rgba(255, 255, 255, 0.95);
}

#messageInput:disabled {
    background: rgba(245, 245, 245, 0.5);
    cursor: not-allowed;
}

#sendBtn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#sendBtn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.05);
}

#sendBtn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Voice Button */
.voice-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 8px;
}

.voice-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.05);
}

.voice-btn.recording {
    background: #f44336;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.voice-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Speaker Button (Text-to-Speech) */
.speaker-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 8px;
}

.speaker-btn:hover:not(:disabled) {
    background: rgba(33, 150, 243, 0.2);
    transform: scale(1.05);
}

.speaker-btn.speaking {
    background: #FF9800;
    color: white;
    animation: speakPulse 1.2s ease-in-out infinite;
}

.speaker-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
}

@keyframes speakPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
}

footer {
    width: 100%;
    max-width: 1200px;
    padding: 16px;
    margin-top: auto;
    margin-bottom: 20px;
    text-align: center;
    font-size: 13px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

footer strong {
    color: white;
}

/* Scrollbar styling */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Pre and code styling for SQL queries */
pre {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    border-left: 4px solid var(--primary-color);
}

code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 70px;
    }

    .container {
        height: calc(100vh - 80px);
        min-height: 400px;
        border-radius: 12px;
        max-width: 100%;
    }

    .session-list-panel {
        width: 250px;
    }

    .session-list-panel.hidden {
        transform: translateX(-100%);
    }

    header {
        padding: 16px 20px;
    }

    .header-left {
        gap: 12px;
    }

    header h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }

    .message-content {
        max-width: 85%;
    }

    .status-bar {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .history-controls {
        width: 100%;
        margin-top: 8px;
        justify-content: flex-end;
    }

    .chat-container {
        padding: 16px;
    }

    .input-container {
        padding: 16px;
    }
    
    .voice-btn {
        width: 44px;
        height: 44px;
        margin-right: 6px;
    }
    
    #sendBtn {
        width: 44px;
        height: 44px;
    }

    footer {
        margin-top: 10px;
        padding: 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        height: calc(100vh - 60px);
        border-radius: 8px;
    }

    header h1 {
        font-size: 18px;
    }
    
    .voice-btn {
        width: 40px;
        height: 40px;
        margin-right: 4px;
    }
    
    .voice-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .speaker-btn {
        width: 40px;
        height: 40px;
        margin-right: 4px;
    }
    
    .speaker-btn svg {
        width: 16px;
        height: 16px;
    }
    
    #sendBtn {
        width: 40px;
        height: 40px;
    }
    
    #sendBtn svg {
        width: 16px;
        height: 16px;
    }

    .message-content {
        max-width: 90%;
        font-size: 14px;
    }

    .welcome-message h2 {
        font-size: 20px;
    }
}

/* Markdown Content Styling */
.markdown-content {
    line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.markdown-content h1 { font-size: 1.5em; }
.markdown-content h2 { font-size: 1.3em; }
.markdown-content h3 { font-size: 1.1em; }
.markdown-content h4 { font-size: 1em; }

.markdown-content p {
    margin: 8px 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.markdown-content li {
    margin: 4px 0;
}

.markdown-content code {
    background: rgba(30, 30, 30, 0.9);
    color: #e8e8e8;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-content pre {
    background: rgba(30, 30, 30, 0.95);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.markdown-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9em;
    color: #e8e8e8;
    line-height: 1.6;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    text-align: left;
    color: #1a1a1a;
}

.markdown-content table th {
    background: rgba(0, 120, 212, 0.15);
    font-weight: 700;
    color: #0078d4;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.markdown-content table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.markdown-content table tr:hover {
    background: rgba(0, 120, 212, 0.08);
}

.markdown-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

.markdown-content strong {
    font-weight: 600;
    color: white;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

#importFileInput {
    display: none;
}

/* Custom Modal Styles */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.custom-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-icon {
    font-size: 32px;
    line-height: 1;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
}

.modal-btn-secondary:hover {
    background: #e0e0e0;
}

.modal-btn-secondary:active {
    background: #d0d0d0;
}

/* Modal variants */
.modal-success .modal-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.modal-success .modal-header h3,
.modal-success .modal-icon {
    color: white;
}

.modal-error .modal-header {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.modal-error .modal-header h3,
.modal-error .modal-icon {
    color: white;
}

.modal-warning .modal-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modal-warning .modal-header h3,
.modal-warning .modal-icon {
    color: white;
}

.modal-info .modal-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modal-info .modal-header h3,
.modal-info .modal-icon {
    color: white;
}
