/* BC Resignation Letter Generator Styles */
.bc-resignation-generator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #1f2937;
}

/* Hero Section */
.bc-rg-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    color: white;
}

.bc-rg-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.bc-rg-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bc-rg-trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bc-rg-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #e2e8f0;
}

/* Main Container */
.bc-rg-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 32px;
}

/* Step Sections */
.bc-rg-step {
    padding: 32px;
}

.bc-rg-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bc-rg-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.bc-rg-step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.bc-rg-back-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-rg-back-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Types Grid */
.bc-rg-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.bc-rg-type-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.bc-rg-type-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.bc-rg-type-btn.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.bc-rg-type-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.bc-rg-type-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.bc-rg-type-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Form Styles */
.bc-rg-form {
    max-width: 800px;
}

.bc-rg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .bc-rg-form-row {
        grid-template-columns: 1fr;
    }
}

.bc-rg-form-group {
    display: flex;
    flex-direction: column;
}

.bc-rg-form-group.bc-rg-full-width {
    grid-column: 1 / -1;
}

.bc-rg-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.bc-rg-form-group label .required {
    color: #ef4444;
}

.bc-rg-form-group input,
.bc-rg-form-group select,
.bc-rg-form-group textarea {
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.bc-rg-form-group input:focus,
.bc-rg-form-group select:focus,
.bc-rg-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bc-rg-form-group input::placeholder,
.bc-rg-form-group textarea::placeholder {
    color: #9ca3af;
}

.bc-rg-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkboxes */
.bc-rg-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.bc-rg-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.bc-rg-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Generate Button */
.bc-rg-generate-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.bc-rg-generate-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Result Section */
.bc-rg-result-container {
    max-width: 800px;
}

.bc-rg-result-actions-top {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bc-rg-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-rg-action-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.bc-rg-action-btn.copied {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* Letter Preview */
.bc-rg-letter-preview {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bc-rg-letter-preview .letter-header {
    margin-bottom: 32px;
}

.bc-rg-letter-preview .letter-date {
    color: #64748b;
    margin-bottom: 24px;
}

.bc-rg-letter-preview .letter-recipient {
    margin-bottom: 24px;
}

.bc-rg-letter-preview .letter-subject {
    font-weight: 600;
    margin-bottom: 24px;
}

.bc-rg-letter-preview .letter-salutation {
    margin-bottom: 16px;
}

.bc-rg-letter-preview .letter-body p {
    margin-bottom: 16px;
}

.bc-rg-letter-preview .letter-closing {
    margin-top: 32px;
}

.bc-rg-letter-preview .letter-signature {
    margin-top: 24px;
    font-weight: 600;
}

/* Email Format Preview */
.bc-rg-letter-preview.email-format {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bc-rg-letter-preview.email-format .email-header {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.bc-rg-letter-preview.email-format .email-field {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
}

.bc-rg-letter-preview.email-format .email-field:last-child {
    border-bottom: none;
}

.bc-rg-letter-preview.email-format .email-label {
    color: #64748b;
    font-weight: 500;
    min-width: 80px;
}

.bc-rg-letter-preview.email-format .email-value {
    color: #1e293b;
}

.bc-rg-letter-preview.email-format .email-body {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Edit Section */
.bc-rg-edit-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.bc-rg-edit-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #64748b;
}

.bc-rg-edit-section textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 12px;
}

.bc-rg-edit-section textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.bc-rg-secondary-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-rg-secondary-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.bc-rg-result-actions-bottom {
    text-align: center;
}

.bc-rg-primary-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-rg-primary-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

/* SEO Content Section */
.bc-rg-seo-content {
    margin-top: 48px;
}

.bc-rg-content-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bc-rg-content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.bc-rg-content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 16px 0;
}

.bc-rg-content-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Checklist */
.bc-rg-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bc-rg-checklist-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.bc-rg-check {
    width: 28px;
    height: 28px;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.bc-rg-checklist-item strong {
    display: block;
    color: #1e293b;
    margin-bottom: 4px;
}

.bc-rg-checklist-item p {
    margin: 0;
    font-size: 14px;
}

/* Templates Overview */
.bc-rg-templates-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bc-rg-template-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.bc-rg-template-category h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #1e293b;
}

.bc-rg-template-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bc-rg-template-category li {
    padding: 6px 0;
    font-size: 14px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.bc-rg-template-category li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.bc-rg-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bc-rg-faq-item {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.bc-rg-faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.bc-rg-faq-item summary::-webkit-details-marker {
    display: none;
}

.bc-rg-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #64748b;
    transition: transform 0.2s;
}

.bc-rg-faq-item[open] summary::after {
    content: '−';
}

.bc-rg-faq-item p {
    padding: 0 20px 18px 20px;
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

/* Tips Grid */
.bc-rg-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bc-rg-tip {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.bc-rg-tip:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.bc-rg-tip-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.bc-rg-tip h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.bc-rg-tip p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .bc-rg-hero {
        padding: 32px 20px;
    }
    
    .bc-rg-hero h1 {
        font-size: 1.75rem;
    }
    
    .bc-rg-subtitle {
        font-size: 1rem;
    }
    
    .bc-rg-step {
        padding: 20px;
    }
    
    .bc-rg-types-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-rg-result-actions-top {
        flex-direction: column;
    }
    
    .bc-rg-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bc-rg-letter-preview {
        padding: 24px;
    }
    
    .bc-rg-content-section {
        padding: 24px;
    }
}

/* Print Styles */
@media print {
    .bc-resignation-generator {
        max-width: none;
    }
    
    .bc-rg-hero,
    .bc-rg-result-actions-top,
    .bc-rg-result-actions-bottom,
    .bc-rg-edit-section,
    .bc-rg-seo-content,
    .bc-rg-back-btn,
    .bc-rg-step-header {
        display: none !important;
    }
    
    .bc-rg-letter-preview {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

/* Animation */
@keyframes bc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bc-rg-step {
    animation: bc-fadeIn 0.3s ease;
}
