/* Enhanced Drawer Styles - Extracted from injectEnhancedDrawerCss function */
.drawer { position: fixed; top: 0; right: 0; width: 480px; height: 100vh; background: #1a202c; 
          border-left: 1px solid #2d3748; box-shadow: -8px 0 24px rgba(0,0,0,0.4); z-index: 1000; 
          overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease; }
.drawer.open { transform: translateX(0); }
.drawer-content { height: 100%; display: flex; flex-direction: column; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; 
                 border-bottom: 1px solid #2d3748; background: #2d3748; }
.drawer-header h3 { margin: 0; color: #f7fafc; font-size: 18px; font-weight: 600; }
.drawer-header .close { background: none; border: none; font-size: 24px; color: #a0aec0; cursor: pointer; 
                        padding: 4px; border-radius: 4px; transition: all 0.2s; }
.drawer-header .close:hover { background: rgba(255,255,255,0.1); color: #f7fafc; }
.drawer-body { flex: 1; padding: 24px; overflow-y: auto; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; color: #e2e8f0; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid #4a5568; 
                                                         border-radius: 6px; background: #2d3748; color: #f7fafc; 
                                                         font-size: 14px; transition: border-color 0.2s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: #4299e1; 
                                                                           box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2); }
.form-row input[type="range"] { background: transparent; border: none; height: 6px; }
.form-row input[type="range"]::-webkit-slider-track { background: #4a5568; height: 6px; border-radius: 3px; }
.form-row input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; 
                                                      border-radius: 50%; background: #4299e1; cursor: pointer; }
.form-row small { color: #a0aec0; font-size: 12px; margin-top: 4px; display: block; }
.meta-section { margin-top: 24px; border: 1px solid #2d3748; border-radius: 8px; }
.meta-section summary { padding: 12px 16px; background: #2d3748; border-radius: 8px 8px 0 0; 
                        font-weight: 500; cursor: pointer; transition: background-color 0.2s; }
.meta-section summary:hover { background: #4a5568; }
.meta-section[open] summary { border-radius: 8px 8px 0 0; }
.meta-section > div { padding: 16px; }
.channel-options { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.channel-options label { display: flex; align-items: center; gap: 8px; font-weight: normal; margin: 0; 
                         padding: 8px 12px; border: 1px solid #4a5568; border-radius: 6px; 
                         transition: background-color 0.2s; cursor: pointer; }
.channel-options label:hover { background: rgba(74, 85, 104, 0.2); }
.channel-options input[type="checkbox"] { margin: 0; }
.drawer-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; 
                  padding-top: 20px; border-top: 1px solid #2d3748; }
.drawer-actions button { padding: 10px 20px; border-radius: 6px; font-weight: 500; cursor: pointer; 
                         transition: all 0.2s; border: 1px solid transparent; }
.drawer-actions button[type="button"]:not(.primary) { background: #4a5568; color: #f7fafc; border-color: #4a5568; }
.drawer-actions button[type="button"]:not(.primary):hover { background: #2d3748; }
.drawer-actions button.primary, .drawer-actions button[type="submit"] { background: #4299e1; color: white; border-color: #4299e1; }
.drawer-actions button.primary:hover, .drawer-actions button[type="submit"]:hover { background: #3182ce; }
.slider-with-value { display: flex; align-items: center; gap: 12px; }
.slider-with-value input[type="range"] { flex: 1; }
.slider-with-value .value-display { background: #2d3748; border: 1px solid #4a5568; padding: 6px 10px; 
                                    border-radius: 4px; min-width: 60px; text-align: center; font-family: monospace; }

/* Period Settings Styles */
.period-settings-section { margin-top: 20px; padding: 16px; background: #2a3441; border: 1px solid #3a4a57; 
                          border-radius: 8px; }
.period-options, .period-target-options { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.period-options label, .period-target-options label { display: flex; align-items: center; gap: 10px; 
                                                     font-weight: normal; margin: 0; padding: 8px 12px; 
                                                     border: 1px solid #4a5568; border-radius: 6px; 
                                                     transition: all 0.2s; cursor: pointer; background: #1a2028; }
.period-options label:hover, .period-target-options label:hover { background: #2d3748; border-color: #5a6570; }
.period-options input[type="checkbox"], .period-target-options input[type="checkbox"] { margin: 0; 
                                                                                        accent-color: #4299e1; }
.period-options label:has(input:checked), .period-target-options label:has(input:checked) { 
  background: rgba(66, 153, 225, 0.1); border-color: #4299e1; color: #e2e8f0; }

/* Enhanced rule type indicators */
.rule-type-indicator { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; 
                      font-weight: 500; margin-left: 8px; }
.rule-type-indicator.legacy { background: #ed8936; color: white; }
.rule-type-indicator.period-aware { background: #38a169; color: white; }
.rule-type-indicator.special { background: #805ad5; color: white; }