/**
 * Premium Tutor Learning Interface Styles
 * Magazine-style layout with premium feel
 * Matches unified interface design system
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
.sfpe-tutor-wrapper * {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Trigger Button */
.sfpe-tutor-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2C3E50;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.sfpe-tutor-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.sfpe-tutor-trigger svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Full-screen Overlay */
.sfpe-tutor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFE7;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sfpe-tutor-overlay.active {
    display: block;
    opacity: 1;
}

/* Header - Unified Interface Style */
.sfpe-tutor-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(90deg, rgba(16, 43, 48, 0.98) 0%, rgba(13, 53, 62, 0.98) 100%);
    border-bottom: 1px solid #1b5059;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sfpe-tutor-header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sfpe-lesson-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Progress Indicator */
.sfpe-progress-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sfpe-progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(108, 255, 196, 0.2);
}

.sfpe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6CFFC4, #4DCCA1);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(108, 255, 196, 0.5);
}

.sfpe-progress-text {
    font-size: 14px;
    color: #6CFFC4;
    font-weight: 500;
}

/* Header Buttons */
.sfpe-tutor-header-right {
    display: flex;
    gap: 15px;
}

.sfpe-minimize-btn,
.sfpe-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.1) 0%, rgba(76, 204, 161, 0.1) 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid rgba(108, 255, 196, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.sfpe-minimize-btn::before,
.sfpe-close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(108, 255, 196, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.sfpe-minimize-btn:hover::before,
.sfpe-close-btn:hover::before {
    width: 100px;
    height: 100px;
}

.sfpe-minimize-btn:hover,
.sfpe-close-btn:hover {
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.2) 0%, rgba(76, 204, 161, 0.2) 100%);
    border-color: #6CFFC4;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(108, 255, 196, 0.3);
}

.sfpe-minimize-btn svg,
.sfpe-close-btn svg {
    stroke: #6CFFC4;
    position: relative;
    z-index: 1;
}

.sfpe-minimize-btn:hover svg,
.sfpe-close-btn:hover svg {
    stroke: #FFFFFF;
    filter: drop-shadow(0 0 4px rgba(108, 255, 196, 0.5));
}

/* Main Content Area */
.sfpe-tutor-content {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 60px 20px;
}

.sfpe-content-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 190px);
}

/* Conversation Area */
.sfpe-conversation-area {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 1.8;
    color: #2C3E50;
}

/* Tutor Messages */
.sfpe-tutor-message {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
    position: relative;
}

/* Tutor Avatar Above Message */
.sfpe-tutor-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.4s ease;
}

.sfpe-tutor-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6CFFC4;
    box-shadow: 0 4px 20px rgba(108, 255, 196, 0.3);
    margin-bottom: 10px;
}

.sfpe-tutor-name {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
}

.sfpe-tutor-role {
    font-size: 14px;
    color: #6CFFC4;
    font-weight: 500;
}

.sfpe-tutor-message p {
    margin: 0 0 20px 0;
}

/* User Messages */
.sfpe-user-message {
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
}

/* Radio Button Selections - Unified Interface Style */
.sfpe-radio-group {
    margin: 30px 0;
}

.sfpe-radio-option {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%);
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sfpe-radio-option:hover {
    border-color: #6CFFC4;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 30px rgba(108, 255, 196, 0.25),
        0 0 0 1px rgba(108, 255, 196, 0.4);
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.1) 0%, rgba(76, 204, 161, 0.08) 100%);
}

.sfpe-radio-option.selected {
    border-color: #6CFFC4;
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.15) 0%, rgba(108, 255, 196, 0.1) 100%);
    box-shadow: 
        0 8px 30px rgba(108, 255, 196, 0.2),
        inset 0 1px 0 rgba(108, 255, 196, 0.3);
}

.sfpe-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.sfpe-radio-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(108, 255, 196, 0.4);
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sfpe-radio-option:hover .sfpe-radio-indicator {
    border-color: #6CFFC4;
}

.sfpe-radio-option.selected .sfpe-radio-indicator {
    border-color: #6CFFC4;
    background: #6CFFC4;
    box-shadow: 0 0 20px rgba(108, 255, 196, 0.5);
}

.sfpe-radio-option.selected .sfpe-radio-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0D353E;
    font-size: 14px;
    font-weight: bold;
}

.sfpe-radio-label {
    font-size: 16px;
    color: #2C3E50;
    font-weight: 500;
    line-height: 1.5;
}

/* Lesson Plan Box - Enhanced Visual Design */
.sfpe-lesson-plan {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(108, 255, 196, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.sfpe-lesson-plan::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 255, 196, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -10px) rotate(240deg); }
}

.sfpe-lesson-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(108, 255, 196, 0.2);
}

.sfpe-lesson-plan h3 {
    font-size: 26px;
    color: #0D353E;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfpe-lesson-plan h3::before {
    content: '📚';
    font-size: 28px;
}

.sfpe-lesson-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfpe-lesson-progress-bar {
    width: 120px;
    height: 8px;
    background: rgba(108, 255, 196, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.sfpe-lesson-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6CFFC4, #4DCCA1);
    width: 0%;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(108, 255, 196, 0.5);
}

.sfpe-lesson-progress-text {
    font-size: 14px;
    color: #6CFFC4;
    font-weight: 600;
}

.sfpe-lesson-items {
    display: grid;
    gap: 20px;
}

.sfpe-lesson-item {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.05) 0%, rgba(76, 204, 161, 0.03) 100%);
    border: 1px solid rgba(108, 255, 196, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sfpe-lesson-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 255, 196, 0.1), transparent);
    transition: left 0.6s ease;
}

.sfpe-lesson-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 255, 196, 0.15);
    border-color: #6CFFC4;
}

.sfpe-lesson-item:hover::after {
    left: 100%;
}

.sfpe-lesson-item.completed {
    opacity: 0.7;
    background: rgba(108, 255, 196, 0.1);
}

.sfpe-lesson-item.completed .sfpe-lesson-number {
    background: #6CFFC4;
    color: #0D353E;
}

.sfpe-lesson-item.active {
    border-color: #6CFFC4;
    box-shadow: 0 0 0 3px rgba(108, 255, 196, 0.2);
}

.sfpe-lesson-number {
    background: linear-gradient(135deg, #FFFFFF, #F0F4F7);
    color: #0D353E;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(108, 255, 196, 0.3);
    font-size: 16px;
    transition: all 0.3s ease;
}

.sfpe-lesson-item:hover .sfpe-lesson-number {
    background: linear-gradient(135deg, #6CFFC4, #4DCCA1);
    color: #0D353E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(108, 255, 196, 0.4);
}

.sfpe-lesson-content {
    flex: 1;
}

.sfpe-lesson-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #0D353E;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfpe-lesson-content p {
    margin: 0;
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.6;
}

.sfpe-lesson-duration {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 13px;
    color: #6CFFC4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sfpe-lesson-duration::before {
    content: '⏱';
    font-size: 16px;
}

/* Input Area - Unified Interface Style */
.sfpe-input-area {
    background: linear-gradient(135deg, rgba(16, 43, 48, 0.95) 0%, rgba(13, 53, 62, 0.95) 100%);
    border: 2px solid #1b5059;
    border-radius: 20px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.sfpe-user-input {
    width: 100%;
    background: rgba(10, 35, 41, 0.5);
    border: 2px solid #1b5059;
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
    color: #FFFFFF;
    resize: none;
    transition: all 0.2s ease;
}

.sfpe-user-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sfpe-user-input:focus {
    outline: none;
    border-color: #6CFFC4;
    background: rgba(10, 35, 41, 0.7);
    box-shadow: 0 0 0 1px rgba(108, 255, 196, 0.2);
}

.sfpe-submit-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #1b5059, #2a6a73);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sfpe-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 255, 196, 0.2), transparent);
    transition: left 0.5s;
}

.sfpe-submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(108, 255, 196, 0.2);
}

.sfpe-submit-btn:hover::before {
    left: 100%;
}

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

/* Achievement Notification - Unified Interface Style */
.sfpe-achievement-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 350px;
    background: linear-gradient(135deg, rgba(16, 43, 48, 0.98) 0%, rgba(13, 53, 62, 0.98) 100%);
    border: 2px solid #1b5059;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(108, 255, 196, 0.1);
    backdrop-filter: blur(10px);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.sfpe-achievement-notification.show {
    right: 30px;
}

.sfpe-achievement-notification::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6CFFC4, #4DCCA1);
    border-radius: 20px;
    opacity: 0.2;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.sfpe-achievement-content {
    display: flex;
    gap: 20px;
}

.sfpe-achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6CFFC4, #4DCCA1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(108, 255, 196, 0.5);
    position: relative;
}

.sfpe-achievement-icon::after {
    content: '🏆';
    font-size: 28px;
}

.sfpe-achievement-title {
    font-size: 18px;
    font-weight: 600;
    color: #6CFFC4;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.sfpe-achievement-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

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

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

/* Typing Indicator - Unified Interface Style */
.sfpe-typing-indicator {
    display: inline-flex;
    gap: 6px;
    padding: 20px 0;
    background: rgba(16, 43, 48, 0.3);
    border-radius: 20px;
    padding: 15px 25px;
    border: 1px solid rgba(108, 255, 196, 0.2);
}

.sfpe-typing-dot {
    width: 12px;
    height: 12px;
    background: #6CFFC4;
    border-radius: 50%;
    animation: typing 1.4s infinite;
    box-shadow: 0 0 10px rgba(108, 255, 196, 0.5);
}

.sfpe-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.sfpe-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sfpe-tutor-header {
        padding: 0 20px;
    }
    
    .sfpe-lesson-title {
        font-size: 18px;
    }
    
    .sfpe-progress-bar {
        width: 120px;
    }
    
    .sfpe-tutor-content {
        padding: 40px 20px;
    }
    
    .sfpe-conversation-area {
        font-size: 18px;
    }
    
    .sfpe-lesson-plan {
        padding: 25px;
    }
    
    .sfpe-achievement-notification {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .sfpe-achievement-notification.show {
        right: 20px;
    }
}

/* Minimized State */
.sfpe-tutor-overlay.minimized {
    height: 80px;
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.sfpe-tutor-overlay.minimized .sfpe-tutor-content {
    display: none;
}

/* Premium Typography */
.sfpe-emphasis {
    font-style: italic;
    color: #34495E;
}

.sfpe-highlight {
    background: linear-gradient(to bottom, transparent 50%, rgba(52, 152, 219, 0.2) 50%);
    padding: 0 4px;
}

/* Drag and Drop Deal Structuring - Phase 2 */
.sfpe-drag-drop-container {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.sfpe-drag-drop-header {
    margin-bottom: 25px;
}

.sfpe-drag-drop-title {
    font-size: 22px;
    font-weight: 700;
    color: #0D353E;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfpe-drag-drop-title::before {
    content: '\ud83c\udfaf';
    font-size: 26px;
}

.sfpe-drag-drop-instructions {
    font-size: 16px;
    color: #5A6C7D;
    line-height: 1.6;
}

.sfpe-drag-drop-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.sfpe-draggable-items {
    background: rgba(108, 255, 196, 0.05);
    border: 2px dashed rgba(108, 255, 196, 0.3);
    border-radius: 16px;
    padding: 20px;
    min-height: 300px;
}

.sfpe-draggable-items-header {
    font-size: 16px;
    font-weight: 600;
    color: #0D353E;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfpe-draggable-items-header::before {
    content: '\ud83d\udce6';
    font-size: 18px;
}

.sfpe-draggable {
    background: #FFFFFF;
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfpe-draggable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 255, 196, 0.2);
    border-color: #6CFFC4;
}

.sfpe-draggable:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.sfpe-draggable.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.sfpe-draggable-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.2) 0%, rgba(76, 204, 161, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sfpe-draggable-content {
    flex: 1;
}

.sfpe-draggable-title {
    font-size: 16px;
    font-weight: 600;
    color: #0D353E;
    margin-bottom: 4px;
}

.sfpe-draggable-desc {
    font-size: 14px;
    color: #5A6C7D;
    line-height: 1.4;
}

.sfpe-drop-zones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sfpe-drop-zone {
    background: linear-gradient(135deg, rgba(16, 43, 48, 0.05) 0%, rgba(10, 35, 41, 0.03) 100%);
    border: 2px dashed #1b5059;
    border-radius: 16px;
    padding: 20px;
    min-height: 100px;
    transition: all 0.3s ease;
    position: relative;
}

.sfpe-drop-zone.drag-over {
    background: rgba(108, 255, 196, 0.1);
    border-color: #6CFFC4;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(108, 255, 196, 0.3);
}

.sfpe-drop-zone-header {
    font-size: 16px;
    font-weight: 600;
    color: #0D353E;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfpe-drop-zone-priority {
    background: linear-gradient(135deg, #6CFFC4, #4DCCA1);
    color: #0D353E;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: auto;
}

.sfpe-drop-zone.high-priority .sfpe-drop-zone-priority {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    color: #FFFFFF;
}

.sfpe-drop-zone.medium-priority .sfpe-drop-zone-priority {
    background: linear-gradient(135deg, #FFD93D, #F9C74F);
    color: #0D353E;
}

.sfpe-dropped-item {
    background: #FFFFFF;
    border: 2px solid #6CFFC4;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: dropIn 0.3s ease;
}

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

.sfpe-remove-btn {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #FF6B6B;
    font-size: 16px;
    line-height: 1;
}

.sfpe-remove-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.1);
}

.sfpe-drag-feedback {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.1) 0%, rgba(76, 204, 161, 0.08) 100%);
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 16px;
    display: none;
}

.sfpe-drag-feedback.show {
    display: block;
    animation: slideInUp 0.4s ease;
}

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

.sfpe-feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sfpe-feedback-icon {
    width: 30px;
    height: 30px;
    background: #6CFFC4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sfpe-feedback-title {
    font-size: 18px;
    font-weight: 600;
    color: #0D353E;
}

.sfpe-feedback-message {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.6;
}

/* Interactive Calculators - Phase 2 */
.sfpe-calculator-container {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.sfpe-calculator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sfpe-calculator-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6CFFC4, #4DCCA1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(108, 255, 196, 0.3);
}

.sfpe-calculator-title {
    font-size: 20px;
    font-weight: 700;
    color: #0D353E;
}

.sfpe-calculator-inputs {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.sfpe-calculator-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sfpe-calculator-label {
    font-size: 14px;
    font-weight: 600;
    color: #5A6C7D;
}

.sfpe-calculator-input {
    padding: 12px 16px;
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 12px;
    font-size: 16px;
    color: #0D353E;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.sfpe-calculator-input:focus {
    outline: none;
    border-color: #6CFFC4;
    box-shadow: 0 0 0 3px rgba(108, 255, 196, 0.2);
}

.sfpe-calculator-result {
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.1) 0%, rgba(76, 204, 161, 0.08) 100%);
    border: 2px solid rgba(108, 255, 196, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.sfpe-result-label {
    font-size: 14px;
    color: #5A6C7D;
    margin-bottom: 8px;
}

.sfpe-result-value {
    font-size: 32px;
    font-weight: 700;
    color: #6CFFC4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}