/* Toolora Resume Builder - Main Styles */
.trb-wrapper { max-width: 1400px; margin: 20px auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.trb-header { text-align: center; margin-bottom: 30px; }
.trb-header h2 { font-size: 30px; margin: 0 0 10px; color: #1a7f4e; }
.trb-header p { color: #666; font-size: 15px; }
.trb-ad { margin: 20px 0; text-align: center; min-height: 90px; }

.trb-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* FORM PANEL */
.trb-form-panel { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.trb-tabs-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.trb-nav { background: #f8f9fa; border: none; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.trb-nav:hover { background: #e8f5ee; color: #1a7f4e; }
.trb-nav.active { background: #1a7f4e; color: #fff; }

.trb-section { display: none; }
.trb-section.active { display: block; }
.trb-section h3 { color: #1a7f4e; margin-top: 0; margin-bottom: 15px; }

.trb-row { margin-bottom: 12px; }
.trb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trb-section input[type="text"],
.trb-section input[type="email"],
.trb-section input[type="tel"],
.trb-section input[type="url"],
.trb-section textarea {
    width: 100%; padding: 10px 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 14px; font-family: inherit; box-sizing: border-box; transition: border 0.2s;
}
.trb-section input:focus, .trb-section textarea:focus { outline: none; border-color: #1a7f4e; }
.trb-section label { display: block; font-weight: 600; margin: 10px 0 5px; color: #333; font-size: 13px; }
.trb-hint { font-size: 12px; color: #888; margin: 5px 0 0; }

.trb-file-label { display: inline-block; padding: 10px 16px; background: #f8f9fa; border: 2px dashed #1a7f4e; border-radius: 6px; cursor: pointer; color: #1a7f4e; font-weight: 600; }
.trb-file-label input { display: none; }

.trb-btn { padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.trb-btn-primary { background: #1a7f4e; color: #fff; }
.trb-btn-primary:hover { background: #15683f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,127,78,0.3); }
.trb-btn-secondary { background: #f0f0f0; color: #333; }
.trb-btn-secondary:hover { background: #e0e0e0; }
.trb-btn-add { background: #e8f5ee; color: #1a7f4e; margin-top: 10px; }
.trb-btn-add:hover { background: #d0e6d9; }
.trb-ai-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; margin-top: 10px; }
.trb-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }

.trb-experience-item, .trb-education-item {
    padding: 15px; background: #f8f9fa; border-radius: 8px; margin-bottom: 10px; position: relative;
}
.trb-remove-item { position: absolute; top: 10px; right: 10px; background: #fee; color: #c92a2a; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.trb-remove-item:hover { background: #c92a2a; color: #fff; }

.trb-ai-loader { display: flex; align-items: center; gap: 10px; padding: 12px; background: #e8f5ee; border-radius: 6px; margin-top: 10px; color: #1a7f4e; font-weight: 600; }
.trb-spinner { width: 20px; height: 20px; border: 3px solid #d0e6d9; border-top-color: #1a7f4e; border-radius: 50%; animation: trb-spin 0.8s linear infinite; }
@keyframes trb-spin { to { transform: rotate(360deg); } }

.trb-error { padding: 10px; background: #fee; color: #c92a2a; border-radius: 6px; margin-top: 10px; border-left: 4px solid #c92a2a; font-size: 13px; }

/* PREVIEW PANEL */
.trb-preview-panel { position: sticky; top: 20px; }
.trb-preview-controls { display: flex; gap: 10px; margin-bottom: 15px; }
.trb-preview-controls select { flex: 1; padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 13px; background: #fff; }

.trb-preview-wrapper { background: #f0f0f0; border-radius: 10px; padding: 15px; max-height: 800px; overflow-y: auto; box-shadow: inset 0 2px 6px rgba(0,0,0,0.05); }
.trb-resume { background: #fff; width: 100%; min-height: 1100px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform-origin: top left; }

.trb-actions { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.trb-actions .trb-btn { flex: 1; }

/* FEATURES */
.trb-features { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.trb-features h3 { text-align: center; color: #1a7f4e; margin-bottom: 20px; }
.trb-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.trb-feature { padding: 18px; background: #f8fcfa; border-radius: 8px; text-align: center; }
.trb-feature strong { display: block; margin: 8px 0 4px; color: #1a7f4e; }
.trb-feature p { font-size: 13px; color: #666; margin: 0; }

@media (max-width: 960px) {
    .trb-layout { grid-template-columns: 1fr; }
    .trb-preview-panel { position: static; }
}
@media (max-width: 600px) {
    .trb-row-2 { grid-template-columns: 1fr; }
    .trb-nav { font-size: 12px; padding: 6px 10px; }
}
