/* assets/css/style.css */
.aiwg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    border-radius: 12px;
}

.aiwg-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.aiwg-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.aiwg-header p {
    margin: 0;
    opacity: 0.9;
}

/* Notice */
.aiwg-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.aiwg-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.aiwg-notice-warning a {
    color: #856404;
    text-decoration: underline;
}

/* Tabs */
.aiwg-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aiwg-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.aiwg-tab-btn:hover {
    background: #f0f0f0;
    color: #667eea;
}

.aiwg-tab-btn.active {
    background: #667eea;
    color: white;
}

.aiwg-tab-content {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aiwg-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
.aiwg-form-group {
    margin-bottom: 25px;
}

.aiwg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.aiwg-input,
.aiwg-textarea,
.aiwg-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.aiwg-input:focus,
.aiwg-textarea:focus,
.aiwg-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.aiwg-textarea {
    resize: vertical;
}

.aiwg-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.aiwg-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.aiwg-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.aiwg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f0f0;
    color: #333;
}

.aiwg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.aiwg-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.aiwg-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
}

.aiwg-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.aiwg-btn-secondary {
    background: #6c757d;
    color: white;
}

/* Loading States */
.aiwg-loading {
    text-align: center;
    padding: 40px;
}

.aiwg-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    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); }
}

/* Progress Bar */
.aiwg-progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.aiwg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Pages List */
.aiwg-pages-list {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.aiwg-page-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.aiwg-page-item:last-child {
    border-bottom: none;
}

.aiwg-page-item:hover {
    background: #f5f5f5;
}

.aiwg-page-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0;
}

.aiwg-page-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Tables */
.aiwg-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.aiwg-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aiwg-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.aiwg-table th,
.aiwg-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.aiwg-table tbody tr:hover {
    background: #f5f7fa;
}

.aiwg-table tbody tr:last-child td {
    border-bottom: none;
}

/* Content Preview */
.aiwg-content-preview {
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

/* Success Message */
.aiwg-success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.aiwg-success-message h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.aiwg-success-message .aiwg-btn {
    background: white;
    color: #10b981;
    margin-top: 15px;
}

.aiwg-success-message .aiwg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .aiwg-container {
        padding: 10px;
    }
    
    .aiwg-tab-btn {
        font-size: 12px;
        padding: 10px;
    }
    
    .aiwg-tab-content {
        padding: 15px;
    }
    
    .aiwg-checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .aiwg-table {
        font-size: 12px;
    }
    
    .aiwg-table th,
    .aiwg-table td {
        padding: 8px 10px;
    }
}