/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background 0.3s ease;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: white;
    color: #6366f1;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

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

.btn-sm {
    background: #f1f5f9;
    color: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-sm:hover {
    background: #e2e8f0;
}

.dark .btn-sm {
    background: #334155;
    color: #f8fafc;
}

.dark .btn-sm:hover {
    background: #475569;
}

.btn-icon {
    background: transparent;
    color: #64748b;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.dark .btn-icon {
    color: #94a3b8;
}

.dark .btn-icon:hover {
    background: #334155;
}

/* Input Fields */
.input-field {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    width: 100%;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.dark .input-field {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

/* Quick Action Buttons */
.quick-action-btn {
    background: white;
    color: #334155;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    text-align: center;
}

.quick-action-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark .quick-action-btn {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

.dark .quick-action-btn:hover {
    background: #334155;
}

/* Document Cards */
.document-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dark .document-card {
    background: #1e293b;
    border-color: #334155;
}

/* Chat Messages */
.chat-message {
    max-width: 80%;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    background: #6366f1;
    color: white;
    border-radius: 12px 12px 0 12px;
    padding: 0.75rem 1rem;
}

.dark .user-message {
    background: #8b5cf6;
}

/* Drop Zone */
#dropZone {
    transition: all 0.2s ease;
}

#dropZone.drag-over {
    background: #6366f1/20;
    border-color: #6366f1;
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }
}