/* assets/css/style.css */
.aibg-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.aibg-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
}

.aibg-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.aibg-header p {
    margin: 0;
    opacity: 0.9;
}

.aibg-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.aibg-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.aibg-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aibg-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.aibg-tab-btn:hover {
    background: #f0f0f0;
}

.aibg-tab-btn.active {
    background: #667eea;
    color: white;
}

.aibg-tab-content {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aibg-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aibg-form-group {
    margin-bottom: 25px;
}

.aibg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.aibg-input,
.aibg-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.aibg-input:focus,
.aibg-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.aibg-textarea {
    resize: vertical;
    font-family: inherit;
}

.aibg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.aibg-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.aibg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.aibg-btn-secondary {
    background: #6c757d;
    color: white;
}

.aibg-btn-secondary:hover {
    background: #5a6268;
}

.aibg-btn-danger {
    background: #dc3545;
    color: white;
}

.aibg-btn-danger:hover {
    background: #c82333;
}

.aibg-loading {
    text-align: center;
    padding: 40px;
}

.aibg-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aibg-progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.aibg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.aibg-category {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.aibg-category-header {
    background: #667eea;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
}

.aibg-idea-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.aibg-idea-item:last-child {
    border-bottom: none;
}

.aibg-idea-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.aibg-idea-title input {
    margin-right: 10px;
}

.aibg-idea-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.aibg-idea-meta {
    font-size: 12px;
    color: #999;
}

.aibg-tag {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 5px;
    display: inline-block;
}

.aibg-title-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
}

.aibg-title-text {
    flex: 1;
    font-weight: 500;
}

.aibg-remove-title {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.aibg-remove-title:hover {
    background: #c82333;
}

.aibg-add-title {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.aibg-add-title input {
    flex: 1;
}

.aibg-bulk-area {
    margin-top: 15px;
}

.aibg-bulk-textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: monospace;
    margin-bottom: 10px;
}

.aibg-selection-controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.aibg-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.aibg-table-wrapper {
    overflow-x: auto;
}

.aibg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.aibg-table th,
.aibg-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.aibg-table th {
    background: #667eea;
    color: white;
}

.aibg-content-preview {
    background: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #667eea;
    margin: 15px 0;
    font-size: 13px;
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .aibg-container {
        padding: 10px;
    }
    
    .aibg-tab-btn {
        font-size: 12px;
        padding: 10px;
    }
    
    .aibg-tab-content {
        padding: 15px;
    }
    
    .aibg-add-title {
        flex-direction: column;
    }
}