/* templates.css - Notion Template Styles */
 
 :root {
     --rt-bg: var(--notion-canvas);
     --rt-border: var(--notion-hairline);
     --rt-text-primary: var(--notion-ink);
     --rt-text-secondary: var(--notion-slate);
     --rt-action-bg: var(--notion-surface);
     --rt-action-text: var(--notion-primary);
     --rt-card-shadow: var(--shadow-subtle);
 }
 
 .rich-template-container {
     font-family: inherit;
     max-width: 100%;
     margin-bottom: var(--spacing-sm);
     border-radius: var(--rounded-lg);
     overflow: hidden;
     background: var(--rt-bg);
     border: 1px solid var(--rt-border);
     box-shadow: var(--rt-card-shadow);
     transition: transform 0.2s, box-shadow 0.2s;
 }
 
 .rich-template-container:hover {
     box-shadow: var(--shadow-card);
 }
 
 /* Media */
 .rt-media-container {
     width: 100%;
     background: var(--notion-surface);
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     position: relative;
     aspect-ratio: 16/9;
 }
 
 .rt-media-container img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 
 .rt-media-placeholder {
     color: var(--notion-stone);
     font-size: 13px;
     text-align: center;
     padding: var(--spacing-lg);
 }
 
 /* Body Content */
 .rt-body {
     padding: var(--spacing-md);
     font-size: 14px;
     line-height: 1.5;
     color: var(--rt-text-primary);
     white-space: pre-wrap;
     word-wrap: break-word;
 }
 
 .rt-header-info {
     padding: var(--spacing-md) var(--spacing-md) var(--spacing-xxs);
 }
 
 .rt-title {
     font-weight: 600;
     font-size: 16px;
     margin-bottom: 2px;
     color: var(--rt-text-primary);
 }
 
 .rt-subtitle {
     font-size: 12px;
     color: var(--rt-text-secondary);
     margin-bottom: 4px;
 }
 
 .rt-variable {
     background-color: var(--notion-card-yellow);
     color: var(--notion-brand-orange-deep);
     padding: 1px 4px;
     border-radius: 4px;
     font-family: monospace;
     font-weight: 600;
 }
 
 /* Buttons / Actions */
 .rt-actions {
     border-top: 1px solid var(--rt-border);
     display: flex;
     flex-direction: column;
 }
 
 .rt-action-button {
     background: transparent;
     border: none;
     padding: 10px;
     font-size: 13px;
     font-weight: 500;
     color: var(--rt-action-text);
     cursor: pointer;
     text-align: center;
     transition: background 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
 }
 
 .rt-action-button:hover {
     background: var(--rt-action-bg);
 }
 
 .rt-action-button:not(:last-child) {
     border-bottom: 1px solid var(--rt-border);
 }
 
 .rt-action-button svg {
     width: 14px;
     height: 14px;
 }
 
 /* Quick Replies (Horizontal Layout) */
 .rt-quick-replies {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     padding: var(--spacing-md);
     background: transparent;
 }
 
 .rt-quick-reply-chip {
     padding: 6px 12px;
     background: var(--notion-canvas);
     border: 1px solid var(--rt-border);
     border-radius: var(--rounded-full);
     font-size: 13px;
     color: var(--rt-action-text);
     font-weight: 500;
     cursor: pointer;
     box-shadow: var(--shadow-subtle);
     transition: background 0.2s;
 }
 
 .rt-quick-reply-chip:hover {
     background: var(--notion-surface);
 }
 
 /* List Picker */
 .rt-list-picker {
     display: flex;
     flex-direction: column;
 }
 
 /* Carousel */
 .rt-carousel {
     display: flex;
     overflow-x: auto;
     gap: 12px;
     padding: 4px 0 12px;
     scroll-snap-type: x mandatory;
     scrollbar-width: none;
 }
 
 .rt-carousel::-webkit-scrollbar {
     display: none;
 }
 
 .rt-carousel .rich-template-container {
     min-width: 260px;
     max-width: 260px;
     scroll-snap-align: start;
     flex-shrink: 0;
 }
 
 .message-bubble .rich-template-container {
    background: transparent;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
    max-width: 100%;
    border-radius: var(--rounded-md);
}
 
 .message-out .rt-body, .message-out .rt-title, .message-out .rt-subtitle {
     color: #ffffff;
 }
 
 .message-out .rt-variable {
     background: rgba(255, 255, 255, 0.2);
     color: #ffffff;
 }
 
 .message-out .rt-actions, 
 .message-out .rt-action-button {
     border-color: rgba(255, 255, 255, 0.2) !important;
     color: #ffffff !important;
 }
 
 .message-out .rt-action-button:hover {
     background: rgba(255, 255, 255, 0.1);
 }
 
 .message-out .rt-quick-reply-chip {
     background: rgba(255, 255, 255, 0.1);
     border-color: rgba(255, 255, 255, 0.2);
     color: #ffffff;
 }
 
 /* Status Badges */
 .status-badge {
     padding: 2px 8px;
     border-radius: var(--rounded-sm);
     font-size: 11px;
     font-weight: 600;
     text-transform: uppercase;
     white-space: nowrap;
     margin-left: 8px;
 }
 
 .status-approved {
     background: var(--notion-card-mint);
     color: var(--notion-brand-green);
 }
 
 .status-pending {
     background: var(--notion-card-yellow);
     color: var(--notion-brand-orange);
 }
 
 .status-rejected {
     background: var(--notion-card-rose);
     color: var(--notion-error);
 }
 
 .status-paused, .status-disabled {
     background: var(--notion-card-gray);
     color: var(--notion-slate);
 }
 
 .status-unknown {
     background: var(--notion-surface-soft);
     color: var(--notion-stone);
 }

