/* BMABA Lesson Planner Pro v5.2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bmaba-primary: #1a365d;
    --bmaba-primary-light: #2d4a7c;
    --bmaba-primary-dark: #0f2341;
    --bmaba-accent: #c9a227;
    --bmaba-white: #ffffff;
    --bmaba-gray-50: transparent;
    --bmaba-gray-100: #f3f4f6;
    --bmaba-gray-200: #e5e7eb;
    --bmaba-gray-300: #d1d5db;
    --bmaba-gray-400: #9ca3af;
    --bmaba-gray-500: #6b7280;
    --bmaba-gray-600: #4b5563;
    --bmaba-gray-700: #374151;
    --bmaba-gray-800: #1f2937;
    --bmaba-gray-900: #111827;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
}

#bmaba-lesson-planner {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Override theme styles */
body .bmaba-lp-container,
html body .bmaba-lp-container,
#page .bmaba-lp-container,
.site .bmaba-lp-container,
body.flavor-flavor .bmaba-lp-container {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Remove all grey backgrounds */
.bmaba-lp-mode-toggle,
.bmaba-lp-schedule-section,
.bmaba-lp-beta-notice,
.bmaba-lp-conversation,
.bmaba-lp-note,
.bmaba-lp-modal-footer,
.bmaba-lp-view-toggle {
    background: transparent !important;
}

.bmaba-lp-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--bmaba-gray-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: transparent !important;
    background-image: none !important;
    min-height: auto !important;
}

/* No header bar - just inline elements */
.bmaba-lp-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 20px 0; flex-wrap: wrap; gap: 16px; }
.bmaba-lp-logo { display: flex; align-items: center; gap: 10px; }
.bmaba-lp-crest { width: 40px; height: 40px; object-fit: contain; }
.bmaba-lp-title h1 { font-size: 1.25rem; font-weight: 600; color: var(--bmaba-gray-900); }
.bmaba-lp-badge { background: var(--bmaba-accent); color: var(--bmaba-white); font-size: 0.6rem; font-weight: 600; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; margin-left: 8px; }

/* Navigation - simple inline tabs */
.bmaba-lp-nav { display: flex; gap: 2px; }
.bmaba-lp-nav-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--bmaba-gray-500); font-family: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.bmaba-lp-nav-btn:hover { color: var(--bmaba-gray-700); }
.bmaba-lp-nav-btn.active { color: var(--bmaba-primary); border-bottom-color: var(--bmaba-primary); }
.bmaba-lp-nav-btn svg { width: 18px; height: 18px; }
.bmaba-lp-count { background: var(--bmaba-primary); color: var(--bmaba-white); font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 3px; margin-left: 4px; }

/* Usage bar */
.bmaba-lp-usage { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bmaba-lp-usage-bar { width: 90px; height: 4px; background: var(--bmaba-gray-200); border-radius: 2px; overflow: hidden; }
.bmaba-lp-usage-fill { height: 100%; background: var(--bmaba-primary); transition: width 0.3s; }
.bmaba-lp-usage-text { font-size: 0.7rem; color: var(--bmaba-gray-500); }

/* Main content - no background */
.bmaba-lp-main { padding: 0; }
.bmaba-lp-view { display: none; }
.bmaba-lp-view.active { display: block; }

/* Planner layout */
.bmaba-lp-planner-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }

/* Panels - subtle borders only */
.bmaba-lp-form-panel, .bmaba-lp-result-panel { background: var(--bmaba-white); border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-lg); padding: 20px; }
.bmaba-lp-panel-header { margin-bottom: 16px; }
.bmaba-lp-panel-header h2 { font-size: 1rem; font-weight: 600; color: var(--bmaba-gray-900); margin-bottom: 2px; }
.bmaba-lp-panel-header p { color: var(--bmaba-gray-500); font-size: 0.8rem; }

/* Mode toggle */
.bmaba-lp-mode-toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bmaba-gray-50); border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-md); margin-bottom: 16px; }
.bmaba-lp-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.bmaba-lp-toggle input { display: none; }
.bmaba-lp-toggle-slider { position: relative; width: 40px; height: 22px; background: var(--bmaba-gray-300); border-radius: 11px; transition: 0.2s; }
.bmaba-lp-toggle-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: 0.2s; }
.bmaba-lp-toggle input:checked + .bmaba-lp-toggle-slider { background: var(--bmaba-primary); }
.bmaba-lp-toggle input:checked + .bmaba-lp-toggle-slider::after { transform: translateX(18px); }
.bmaba-lp-toggle-label { font-weight: 500; font-size: 0.8rem; color: var(--bmaba-gray-700); }

/* Form elements */
.bmaba-lp-form { display: flex; flex-direction: column; gap: 14px; }
.bmaba-lp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bmaba-lp-field { display: flex; flex-direction: column; gap: 4px; }
.bmaba-lp-field-full { grid-column: 1 / -1; }
.bmaba-lp-field label { font-size: 0.75rem; font-weight: 500; color: var(--bmaba-gray-600); }
.bmaba-lp-field input, .bmaba-lp-field select, .bmaba-lp-field textarea { padding: 9px 11px; border: 1px solid var(--bmaba-gray-300); border-radius: var(--radius-md); font-family: inherit; font-size: 0.85rem; color: var(--bmaba-gray-900); background: #fff; transition: border-color 0.15s; }
.bmaba-lp-field input:focus, .bmaba-lp-field select:focus, .bmaba-lp-field textarea:focus { outline: none; border-color: var(--bmaba-primary); }
.bmaba-lp-field textarea { resize: vertical; min-height: 65px; }
.bmaba-lp-field select { 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='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; cursor: pointer; }

/* Elements grid */
.bmaba-lp-elements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin-top: 4px; }
.bmaba-lp-element { cursor: pointer; }
.bmaba-lp-element input { display: none; }
.bmaba-lp-element-box { display: flex; align-items: center; justify-content: center; padding: 7px 8px; background: #fff; border: 1px solid var(--bmaba-gray-300); border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 500; color: var(--bmaba-gray-600); transition: 0.15s; text-align: center; }
.bmaba-lp-element:hover .bmaba-lp-element-box { border-color: var(--bmaba-gray-400); }
.bmaba-lp-element input:checked + .bmaba-lp-element-box { background: var(--bmaba-primary); border-color: var(--bmaba-primary); color: #fff; }
.bmaba-lp-element-box.choose-for-me { background: var(--bmaba-primary); border-color: var(--bmaba-primary); color: #fff; }

/* Schedule section */
.bmaba-lp-schedule-section { padding: 10px 12px; background: var(--bmaba-gray-50); border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-md); }
.bmaba-lp-toggle-inline { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; font-size: 0.8rem; color: var(--bmaba-gray-700); }
.bmaba-lp-toggle-inline input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--bmaba-primary); }
.bmaba-lp-schedule-fields { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bmaba-gray-200); }

/* BUTTONS - Flat, no shadows, clear states */
.bmaba-lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.1s; }
.bmaba-lp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bmaba-lp-btn:active:not(:disabled) { transform: scale(0.97); }
.bmaba-lp-btn-primary { background: var(--bmaba-primary); color: #fff; border-color: var(--bmaba-primary); }
.bmaba-lp-btn-primary:hover:not(:disabled) { background: var(--bmaba-primary-dark); border-color: var(--bmaba-primary-dark); }
.bmaba-lp-btn-secondary { background: #fff; color: var(--bmaba-gray-700); border-color: var(--bmaba-gray-300); }
.bmaba-lp-btn-secondary:hover:not(:disabled) { background: var(--bmaba-gray-50); }
.bmaba-lp-btn-danger { background: #fff; color: #dc2626; border-color: var(--bmaba-gray-300); }
.bmaba-lp-btn-danger:hover:not(:disabled) { background: #fef2f2; border-color: #dc2626; }
.bmaba-lp-btn-icon { padding: 7px; background: #fff; color: var(--bmaba-gray-500); border-color: var(--bmaba-gray-300); }
.bmaba-lp-btn-icon:hover:not(:disabled) { background: var(--bmaba-gray-50); color: var(--bmaba-gray-700); }
.bmaba-lp-generate-btn { width: 100%; padding: 11px 16px; font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

/* Result panel */
.bmaba-lp-result-panel { min-height: 500px; display: flex; flex-direction: column; }
.bmaba-lp-result-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.bmaba-lp-placeholder-icon { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--bmaba-gray-100); border-radius: var(--radius-md); margin-bottom: 16px; color: var(--bmaba-gray-400); }
.bmaba-lp-result-placeholder h3 { font-size: 1rem; font-weight: 600; color: var(--bmaba-gray-700); margin-bottom: 4px; }
.bmaba-lp-result-placeholder p { color: var(--bmaba-gray-500); font-size: 0.8rem; }

/* Loading state */
.bmaba-lp-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.bmaba-lp-spinner { width: 40px; height: 40px; border: 3px solid var(--bmaba-gray-200); border-top-color: var(--bmaba-primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.bmaba-lp-loading h3 { font-size: 1rem; font-weight: 600; color: var(--bmaba-gray-700); margin-bottom: 4px; }
.bmaba-lp-loading-text { color: var(--bmaba-gray-500); font-size: 0.8rem; }

/* Result content */
.bmaba-lp-result-content { display: none; flex-direction: column; height: 100%; }
.bmaba-lp-result-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--bmaba-gray-200); gap: 10px; }
.bmaba-lp-result-title { flex: 1; min-width: 0; }
.bmaba-lp-result-meta { font-size: 0.7rem; color: var(--bmaba-gray-500); margin-top: 2px; }
.bmaba-lp-result-actions { display: flex; gap: 5px; }
.bmaba-lp-result-body { flex: 1; padding: 16px; overflow-y: auto; max-height: 400px; line-height: 1.6; font-size: 0.875rem; }
.bmaba-lp-result-body h1, .bmaba-lp-result-body h2, .bmaba-lp-result-body h3 { color: var(--bmaba-gray-900); margin: 1em 0 0.4em; font-weight: 600; }
.bmaba-lp-result-body ul, .bmaba-lp-result-body ol { padding-left: 1.2em; margin: 0.4em 0; }
.bmaba-lp-result-body li { margin: 0.2em 0; }
.bmaba-lp-beta-notice { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bmaba-gray-50); border-top: 1px solid var(--bmaba-gray-200); color: var(--bmaba-gray-500); font-size: 0.75rem; }

/* Title input */
.bmaba-lp-title-input { font-size: 0.9rem; font-weight: 600; color: var(--bmaba-gray-900); border: 1px solid transparent; background: transparent; padding: 3px 6px; margin: -3px -6px; border-radius: 3px; width: 100%; font-family: inherit; }
.bmaba-lp-title-input:hover { background: var(--bmaba-gray-50); }
.bmaba-lp-title-input:focus { outline: none; border-color: var(--bmaba-primary); background: #fff; }

/* Conversation */
.bmaba-lp-conversation { background: var(--bmaba-gray-50); border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-md); padding: 12px; margin-top: 12px; display: none; }
.bmaba-lp-conversation-messages { max-height: 150px; overflow-y: auto; margin-bottom: 8px; }
.bmaba-lp-conversation-msg { padding: 7px 10px; border-radius: var(--radius-sm); margin-bottom: 5px; font-size: 0.8rem; }
.bmaba-lp-conversation-msg.ai { background: var(--bmaba-primary); color: #fff; margin-right: 15%; }
.bmaba-lp-conversation-msg.user { background: var(--bmaba-gray-200); color: var(--bmaba-gray-800); margin-left: 15%; text-align: right; }
.bmaba-lp-conversation-input { display: flex; gap: 5px; }
.bmaba-lp-conversation-input input { flex: 1; padding: 7px 10px; border: 1px solid var(--bmaba-gray-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.8rem; }

/* Saved view */
.bmaba-lp-saved-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.bmaba-lp-saved-title h2 { font-size: 1.1rem; font-weight: 600; color: var(--bmaba-gray-900); }
.bmaba-lp-saved-title p { color: var(--bmaba-gray-500); font-size: 0.8rem; }
.bmaba-lp-saved-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.bmaba-lp-search { position: relative; }
.bmaba-lp-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--bmaba-gray-400); width: 14px; height: 14px; }
.bmaba-lp-search input { padding: 7px 10px 7px 32px; border: 1px solid var(--bmaba-gray-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.8rem; width: 180px; }
.bmaba-lp-filter select, .bmaba-lp-sort select { padding: 7px 28px 7px 10px; border: 1px solid var(--bmaba-gray-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.8rem; background: #fff; 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='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; }

/* Saved cards */
.bmaba-lp-saved-list { display: grid; gap: 10px; }
.bmaba-lp-saved-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-md); cursor: pointer; align-items: center; transition: border-color 0.15s; }
.bmaba-lp-saved-card:hover { border-color: var(--bmaba-gray-300); }
.bmaba-lp-saved-card.archived { opacity: 0.5; }
.bmaba-lp-card-drag { color: var(--bmaba-gray-400); padding: 4px; cursor: grab; }
.bmaba-lp-card-info { min-width: 0; }
.bmaba-lp-card-title { font-size: 0.875rem; font-weight: 600; color: var(--bmaba-gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmaba-lp-card-meta { display: flex; gap: 10px; font-size: 0.75rem; color: var(--bmaba-gray-500); flex-wrap: wrap; margin-top: 3px; }
.bmaba-lp-card-schedule { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; background: var(--bmaba-accent); color: #fff; font-size: 0.65rem; font-weight: 600; border-radius: 3px; }

/* Upcoming view */
.bmaba-lp-upcoming-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bmaba-lp-upcoming-header h2 { font-size: 1.1rem; font-weight: 600; color: var(--bmaba-gray-900); }
.bmaba-lp-view-toggle { display: flex; gap: 2px; background: var(--bmaba-gray-100); padding: 3px; border-radius: var(--radius-sm); }
.bmaba-lp-view-btn { padding: 5px 10px; background: transparent; border: none; border-radius: 3px; font-family: inherit; font-size: 0.75rem; font-weight: 500; color: var(--bmaba-gray-500); cursor: pointer; }
.bmaba-lp-view-btn.active { background: #fff; color: var(--bmaba-gray-900); }
.bmaba-lp-upcoming-items { display: grid; gap: 8px; }
.bmaba-lp-upcoming-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-md); cursor: pointer; align-items: center; }
.bmaba-lp-upcoming-item:hover { border-color: var(--bmaba-gray-300); }
.bmaba-lp-upcoming-date { text-align: center; padding: 6px; background: var(--bmaba-primary); color: #fff; border-radius: var(--radius-sm); }
.bmaba-lp-upcoming-date .day { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.bmaba-lp-upcoming-date .month { font-size: 0.6rem; text-transform: uppercase; opacity: 0.9; }
.bmaba-lp-upcoming-info h4 { font-size: 0.85rem; font-weight: 600; color: var(--bmaba-gray-900); }
.bmaba-lp-upcoming-info p { font-size: 0.75rem; color: var(--bmaba-gray-500); }
.bmaba-lp-upcoming-time { font-size: 0.75rem; font-weight: 500; color: var(--bmaba-gray-600); }

/* Calendar */
.bmaba-lp-calendar-view { background: #fff; border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-lg); padding: 16px; display: none; }
.bmaba-lp-calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bmaba-lp-calendar-nav h3 { font-size: 1rem; font-weight: 600; color: var(--bmaba-gray-900); }
.bmaba-lp-calendar-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.bmaba-lp-calendar-header span { text-align: center; font-size: 0.65rem; font-weight: 600; color: var(--bmaba-gray-500); text-transform: uppercase; padding: 4px; }
.bmaba-lp-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bmaba-lp-calendar-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: var(--radius-sm); font-size: 0.75rem; color: var(--bmaba-gray-700); cursor: pointer; min-height: 60px; }
.bmaba-lp-calendar-day:hover { background: var(--bmaba-gray-100); }
.bmaba-lp-calendar-day.other-month { color: var(--bmaba-gray-400); }
.bmaba-lp-calendar-day.today { background: var(--bmaba-primary); color: #fff; }
.bmaba-lp-calendar-day.has-lesson { background: var(--bmaba-accent); color: #fff; }
.bmaba-lp-calendar-day .day-number { font-weight: 600; }
.bmaba-lp-calendar-day .lesson-dot { width: 4px; height: 4px; background: #fff; border-radius: 50%; margin-top: 2px; }

/* Modal */
.bmaba-lp-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.bmaba-lp-modal.active { display: flex; }
.bmaba-lp-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.bmaba-lp-modal-content { position: relative; width: 100%; max-width: 700px; max-height: 85vh; background: #fff; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.bmaba-lp-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--bmaba-gray-200); }
.bmaba-lp-modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bmaba-gray-100); border: none; border-radius: var(--radius-sm); color: var(--bmaba-gray-600); cursor: pointer; }
.bmaba-lp-modal-close:hover { background: var(--bmaba-gray-200); }
.bmaba-lp-modal-body { flex: 1; overflow-y: auto; padding: 18px; }
.bmaba-lp-modal-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bmaba-gray-200); font-size: 0.75rem; color: var(--bmaba-gray-600); }
.bmaba-lp-modal-plan { line-height: 1.6; font-size: 0.875rem; }
.bmaba-lp-modal-title-input { font-size: 1rem; font-weight: 600; color: var(--bmaba-gray-900); border: 1px solid transparent; background: transparent; padding: 3px 6px; margin: -3px -6px; border-radius: 3px; width: 100%; max-width: 350px; font-family: inherit; }
.bmaba-lp-modal-title-input:hover { background: var(--bmaba-gray-50); }
.bmaba-lp-modal-title-input:focus { outline: none; border-color: var(--bmaba-primary); background: #fff; }

/* Notes */
.bmaba-lp-notes-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bmaba-gray-200); }
.bmaba-lp-notes-section h4 { font-size: 0.85rem; font-weight: 600; color: var(--bmaba-gray-800); margin-bottom: 12px; }
.bmaba-lp-notes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bmaba-lp-note { display: flex; gap: 8px; padding: 8px; background: var(--bmaba-gray-50); border-radius: var(--radius-sm); }
.bmaba-lp-note-content { flex: 1; font-size: 0.8rem; color: var(--bmaba-gray-700); }
.bmaba-lp-note-date { font-size: 0.65rem; color: var(--bmaba-gray-500); margin-top: 2px; }
.bmaba-lp-note-delete { background: none; border: none; color: var(--bmaba-gray-400); cursor: pointer; padding: 0; }
.bmaba-lp-note-delete:hover { color: #dc2626; }
.bmaba-lp-add-note textarea { width: 100%; padding: 8px; border: 1px solid var(--bmaba-gray-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.8rem; resize: vertical; min-height: 60px; margin-bottom: 8px; }
.bmaba-lp-modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--bmaba-gray-200); background: var(--bmaba-gray-50); }
.bmaba-lp-modal-actions-left, .bmaba-lp-modal-actions-right { display: flex; gap: 5px; }

/* TOAST - High contrast colors */
.bmaba-lp-toasts { position: fixed; bottom: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.bmaba-lp-toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; animation: toastIn 0.2s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.bmaba-lp-toast.success { background: #166534; color: #fff; }
.bmaba-lp-toast.error { background: #991b1b; color: #fff; }
.bmaba-lp-toast.warning { background: #92400e; color: #fff; }
.bmaba-lp-toast.info { background: #1e40af; color: #fff; }

/* Empty states */
.bmaba-lp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: #fff; border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-lg); }
.bmaba-lp-empty-state svg { color: var(--bmaba-gray-300); margin-bottom: 16px; }
.bmaba-lp-empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--bmaba-gray-700); margin-bottom: 4px; }
.bmaba-lp-empty-state p { color: var(--bmaba-gray-500); font-size: 0.8rem; }
.bmaba-lp-login-required { display: flex; align-items: center; justify-content: center; min-height: 300px; font-size: 0.9rem; color: var(--bmaba-gray-600); background: #fff; border: 1px solid var(--bmaba-gray-200); border-radius: var(--radius-lg); }

/* Responsive */
@media (max-width: 1000px) { .bmaba-lp-planner-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .bmaba-lp-header { flex-direction: column; align-items: stretch; } .bmaba-lp-nav { justify-content: center; } .bmaba-lp-form-grid { grid-template-columns: 1fr; } .bmaba-lp-saved-card { grid-template-columns: 1fr; } .bmaba-lp-card-drag { display: none; } .bmaba-lp-modal-footer { flex-direction: column; gap: 8px; } }

@media print { .bmaba-lp-header, .bmaba-lp-result-actions, .bmaba-lp-beta-notice, .bmaba-lp-modal-footer { display: none !important; } }

/* Make panels transparent - no white boxes */
.bmaba-lp-form-panel,
.bmaba-lp-result-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

/* Also the mode toggle section */
.bmaba-lp-mode-toggle {
    background: transparent !important;
    border: none !important;
}

/* Schedule section */
.bmaba-lp-schedule-section {
    background: transparent !important;
    border: 1px solid var(--bmaba-gray-300);
}

/* Result placeholder icon area */
.bmaba-lp-placeholder-icon {
    background: rgba(0,0,0,0.05) !important;
}

/* Keep input fields with white background so they're visible */
.bmaba-lp-field input,
.bmaba-lp-field select,
.bmaba-lp-field textarea {
    background: #fff;
}


/* Modal plan content formatting */
.bmaba-lp-modal-plan h1,
.bmaba-lp-modal-plan h2,
.bmaba-lp-modal-plan h3,
.bmaba-lp-modal-plan strong {
    display: block;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    font-weight: 700;
    color: var(--bmaba-gray-900);
}

.bmaba-lp-modal-plan h2,
.bmaba-lp-modal-plan strong {
    font-size: 1rem;
    border-bottom: 1px solid var(--bmaba-gray-200);
    padding-bottom: 0.3em;
}

.bmaba-lp-modal-plan ul,
.bmaba-lp-modal-plan ol {
    margin: 0.5em 0 1em 0;
    padding-left: 1.5em;
}

.bmaba-lp-modal-plan li {
    margin: 0.4em 0;
    line-height: 1.5;
}

.bmaba-lp-modal-plan p {
    margin: 0.5em 0;
}

#modal-plan-content {
    cursor: text;
    min-height: 200px;
    outline: none;
}

#modal-plan-content:focus {
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
}

.bmaba-lp-access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-width: 500px;
    margin: 40px auto;
}

.bmaba-lp-access-icon {
    color: #9ca3af;
    margin-bottom: 20px;
}

.bmaba-lp-access-denied h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.bmaba-lp-access-denied p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 5px 0;
}

.bmaba-lp-modal-plan[contenteditable="true"],
#modal-plan-content[contenteditable="true"] {
    cursor: text;
    outline: none;
    min-height: 200px;
}

#modal-plan-content:focus {
    background: var(--bmaba-gray-50);
    border-radius: 4px;
}