/* BIcIT AI - Modern ChatGPT-like Interface */

:root {
    --bg-primary: #212121;
    --bg-secondary: #171717;
    --bg-tertiary: #2f2f2f;
    --bg-chat: #444654;
    --text-primary: #ececf1;
    --text-secondary: #b4b4b4;
    --text-muted: #8e8ea0;
    --border-color: #40414f;
    --accent-primary: #10a37f;
    --accent-secondary: #19c37d;
    --accent-hover: #0d8068;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gradient-primary: linear-gradient(90deg, #10a37f 0%, #19c37d 100%);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.logo h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.btn-close-sidebar {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: none;
}

.btn-close-sidebar:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* New Chat Button */
.new-chat-container {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.btn-new-chat {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.btn-new-chat:hover {
    background: var(--bg-chat);
    border-color: var(--text-secondary);
}

/* Auth Section */
.auth-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.auth-form h6 {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 12px;
}

.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-chat);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-auth {
    width: 100%;
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-auth:hover {
    background: var(--accent-hover);
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* User Section */
.user-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    flex: 1;
    overflow-y: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-plan {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Chat History */
.chat-history {
    margin-bottom: 20px;
}

.history-header h6 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.chat-sessions {
    max-height: 200px;
    overflow-y: auto;
}

.chat-session-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.chat-session-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chat-session-item.active {
    background: var(--bg-chat);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Upgrade Section */
.upgrade-section {
    margin-top: auto;
}

.upgrade-card {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
}

.upgrade-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.upgrade-card h6 {
    margin-bottom: 8px;
    font-weight: 600;
}

.upgrade-card p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.upgrade-benefits {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px 0;
    text-align: left;
}

.upgrade-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.9;
    padding: 4px 0;
    line-height: 1.3;
}

.upgrade-benefits i {
    color: rgba(255, 255, 255, 0.9);
    width: 14px;
    font-size: 10px;
    flex-shrink: 0;
}

.btn-upgrade {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Market Widget */
.market-widget {
    padding: 20px;
    margin-top: auto;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.popular-stocks {
    max-height: 150px;
    overflow-y: auto;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-symbol {
    font-weight: 500;
    color: var(--text-primary);
}

.stock-price {
    color: var(--text-secondary);
}

.stock-change.positive {
    color: var(--accent-primary);
}

.stock-change.negative {
    color: var(--danger);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* Top Bar */
.top-bar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
}

.btn-menu {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: none;
}

.btn-menu:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.model-selector .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    min-width: 200px;
}

.model-selector .form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Message Styles */
.message-wrapper {
    width: 100%;
}

.message {
    display: flex;
    gap: 16px;
    max-width: 100%;
}

.bot-message {
    /* Bot messages align left */
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
}

.bot-avatar {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
}

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

.message-header {
    margin-bottom: 8px;
}

.sender-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.message-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

.message-text h5 {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-text p {
    margin-bottom: 12px;
}

.message-text ul, .message-text ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.message-text li {
    margin-bottom: 4px;
}

.message-text code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.message-text pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid var(--border-color);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--accent-primary);
    font-size: 16px;
}

/* Example Prompts */
.examples-text {
    margin: 16px 0 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.example-prompts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-prompt {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.example-prompt:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* Input Area */
.input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.input-container {
    max-width: 768px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    gap: 12px;
    align-items: flex-end;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
}

.message-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 120px;
    font-family: inherit;
}

.message-input::placeholder {
    color: var(--text-muted);
}

.send-button {
    background: var(--accent-primary);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--accent-hover);
}

.send-button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.input-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 33, 33, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .btn-menu {
        display: block;
    }

    .btn-close-sidebar {
        display: block;
    }

    .chat-container {
        padding: 16px;
    }

    .input-area {
        padding: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .model-selector .form-select {
        min-width: auto;
        width: 150px;
    }
}

/* Enhanced Scrollbar Styles from chatbot-ui */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-track:hover {
    background-color: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

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

.message-wrapper {
    animation: fadeIn 0.3s ease-out;
}

/* Stock Data Styles */
.stock-data {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    margin: 12px 0;
}

/* Enhanced Chat Features from chatbot-ui */
.file-button {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.file-button:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
}

.scroll-to-bottom-btn {
    position: fixed;
    bottom: 120px;
    right: 30px;
    background: var(--accent-primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-bottom-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-bottom-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.typing-animation {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.model-tag {
    font-size: 11px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.drag-over {
    background: rgba(16, 163, 127, 0.05);
    border: 2px dashed var(--accent-primary);
    border-radius: 8px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-color: #10a37f;
    background: #10a37f10;
}

.notification-error {
    border-color: #e53e3e;
    background: #e53e3e10;
}

.notification-warning {
    border-color: #d69e2e;
    background: #d69e2e10;
}

/* Auto-resizing textarea improvements */
.message-input {
    transition: height 0.2s ease;
}

/* Enhanced button states */
.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stock-name {
    font-weight: 600;
    color: var(--text-primary);
}

.stock-symbol {
    font-size: 12px;
    color: var(--text-secondary);
}

.stock-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stock-change {
    font-size: 14px;
    font-weight: 500;
}

.stock-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stock-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stock-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header i.fa-crown {
    color: var(--accent-primary);
}

.btn-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.upgrade-features h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.upgrade-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.upgrade-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
}

.upgrade-features li i.fa-check {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
}

.payment-status {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-status i.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.payment-status i.fa-credit-card,
.payment-status i.fa-exclamation-triangle {
    color: var(--accent-primary);
}

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(300px);
    }
}
/* Recommendation System Styles */
.btn-recommend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.btn-recommend:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.recommendation-card {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recommendation-card.recommended {
    border: 2px solid #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.recommendation-card .card {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.match-score {
    min-width: 60px;
}

.pattern-item {
    margin-bottom: 12px;
}

.pattern-item:last-child {
    margin-bottom: 0;
}

.analysis-card {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.model-stats .badge {
    font-size: 10px;
    padding: 4px 8px;
}

.best-for .badge {
    font-size: 10px;
    padding: 3px 6px;
}

.recommendation-summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.usage-patterns {
    background: #ffffff;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
