/* ============================================
   AI Mail Assistant - Styles
   Un design moderne inspiré des IDE sombres
   ============================================ */

/* CSS Variables - Thème sombre élégant */
:root {
    /* Couleurs principales */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-elevated: #30363d;
    
    /* Accents */
    --accent-primary: #58a6ff;
    --accent-secondary: #238636;
    --accent-warning: #d29922;
    --accent-danger: #f85149;
    --accent-purple: #a371f7;
    --accent-cyan: #39c5cf;
    
    /* Texte */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Bordures */
    --border-default: #30363d;
    --border-muted: #21262d;
    
    /* Effets */
    --glow-primary: 0 0 20px rgba(88, 166, 255, 0.3);
    --glow-success: 0 0 20px rgba(35, 134, 54, 0.3);
    
    /* Typographie */
    --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Dimensions */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Fix pour Office Add-ins */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* App Container */
#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    gap: 16px;
    overflow-y: auto;
    background: 
        radial-gradient(ellipse at top left, rgba(88, 166, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(163, 113, 247, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

/* ============================================
   Header
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-muted);
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.settings-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    transform: rotate(45deg);
}

.settings-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Email Info Banner
   ============================================ */
.email-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    animation: slideDown 0.3s ease;
}

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

.email-subject {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.email-from {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ============================================
   Actions Grid
   ============================================ */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
    text-align: left;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.action-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.action-card:active {
    transform: translateY(0);
}

.action-card.action-primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(163, 113, 247, 0.1) 100%);
    border-color: var(--accent-primary);
}

.action-card.action-primary::before {
    opacity: 0.5;
}

.action-card.action-primary:hover {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, rgba(163, 113, 247, 0.2) 100%);
    box-shadow: var(--glow-primary);
}

.action-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.action-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.action-card:hover .action-icon {
    background: var(--accent-primary);
}

.action-card:hover .action-icon svg {
    color: white;
}

.action-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.action-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   Labels Section
   ============================================ */
.labels-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title svg {
    color: var(--text-muted);
}

.labels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.label-btn {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.label-btn:hover {
    transform: scale(1.02);
    border-color: var(--text-muted);
}

.label-btn:active {
    transform: scale(0.98);
}

.label-urgent:hover {
    background: rgba(248, 81, 73, 0.2);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.label-important:hover {
    background: rgba(210, 153, 34, 0.2);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

.label-followup:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.label-client:hover {
    background: rgba(35, 134, 54, 0.2);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.label-internal:hover {
    background: rgba(163, 113, 247, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.label-archive:hover {
    background: rgba(110, 118, 129, 0.2);
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

/* ============================================
   Response Panel
   ============================================ */
.response-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

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

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

.response-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.close-btn svg {
    width: 16px;
    height: 16px;
}

.response-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    min-height: 150px;
}

.response-content p {
    margin-bottom: 12px;
}

.response-content ul, .response-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.response-content li {
    margin-bottom: 6px;
}

.response-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #79b8ff;
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    width: 100%;
    max-width: 360px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font-sans);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

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

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.toast.toast-success {
    border-color: var(--accent-secondary);
    background: linear-gradient(135deg, rgba(35, 134, 54, 0.2) 0%, var(--bg-elevated) 100%);
}

.toast.toast-error {
    border-color: var(--accent-danger);
    background: linear-gradient(135deg, rgba(248, 81, 73, 0.2) 0%, var(--bg-elevated) 100%);
}

.toast.toast-info {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, var(--bg-elevated) 100%);
}

/* ============================================
   Utilities
   ============================================ */
.hidden {
    display: none !important;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: rgba(88, 166, 255, 0.3);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 320px) {
    .labels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-card {
        padding: 12px;
    }
}

/* ============================================
   Smart Tools Section
   ============================================ */
.smart-tools-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.smart-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.smart-tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.smart-tool-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.smart-tool-btn:active {
    transform: translateY(0);
}

.smart-icon {
    font-size: 16px;
}

/* ============================================
   Templates Modal
   ============================================ */
.modal-lg {
    max-width: 420px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.template-card:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.template-icon {
    font-size: 24px;
}

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

.template-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* ============================================
   Detected Items (Dates, Contacts)
   ============================================ */
.detected-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

.detected-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detected-item-main {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.detected-item-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.detected-item-action {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.detected-item-action:hover {
    background: #79b8ff;
}

/* Followup Reminder Styles */
.followup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.followup-btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.followup-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.followup-btn.active {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.template-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.template-icon {
    font-size: 24px;
}

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

.template-desc {
    font-size: 10px;
    color: var(--text-muted);
}


/* Directives Section */
.directives-section {
    padding: 0 16px;
    margin-bottom: 12px;
}

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

.directives-header label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

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

.directives-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    font-family: inherit;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    resize: vertical;
    min-height: 40px;
    max-height: 100px;
    transition: all var(--transition-fast);
}

.directives-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.directives-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* HERTZ Section */
.hertz-section {
    padding: 0 16px;
    margin-bottom: 16px;
}

.hertz-analyze-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hertz-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.hertz-analyze-btn:active {
    transform: translateY(0);
}

.hertz-btn-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hertz-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hertz-btn-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.hertz-btn-desc {
    font-size: 11px;
    color: #333;
    opacity: 0.8;
}

/* HERTZ Result Cards */
.hertz-result {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.hertz-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-default);
}

.hertz-result-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-reservation {
    background: #10B981;
    color: white;
}

.badge-quote {
    background: #3B82F6;
    color: white;
}

.badge-info {
    background: #8B5CF6;
    color: white;
}

.hertz-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.hertz-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hertz-info-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hertz-info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.hertz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hertz-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hertz-action-confirm {
    background: #10B981;
    color: white;
}

.hertz-action-confirm:hover {
    background: #059669;
}

.hertz-action-quote {
    background: #3B82F6;
    color: white;
}

.hertz-action-quote:hover {
    background: #2563EB;
}

.hertz-action-reply {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.hertz-action-reply:hover {
    background: var(--bg-hover);
}

.hertz-response-text {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* HERTZ Chat */
.hertz-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.hertz-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 10px;
}

.hertz-chat-message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.hertz-chat-user {
    flex-direction: row-reverse;
}

.hertz-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.hertz-chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.hertz-chat-assistant .hertz-chat-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.hertz-chat-user .hertz-chat-bubble {
    background: var(--accent-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.hertz-chat-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.hertz-chat-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    border: 1px solid var(--border-default);
    border-radius: 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.hertz-chat-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.hertz-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hertz-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.hertz-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hertz-quick-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-default);
    border-radius: 16px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.hertz-quick-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-default);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
