/* assets/css/style.css */
.aiysg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.aiysg-pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.aiysg-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
    position: relative;
}

.aiysg-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.aiysg-header p {
    margin: 0;
    opacity: 0.9;
}

.aiysg-upgrade-note {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 14px;
}

.aiysg-upgrade-note a {
    color: #ffd700;
    text-decoration: underline;
}

.aiysg-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.aiysg-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.aiysg-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.aiysg-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.aiysg-tab-btn:hover {
    background: #f0f0f0;
}

.aiysg-tab-btn.active {
    background: #ff0000;
    color: white;
}

.aiysg-tab-content {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aiysg-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aiysg-form-group {
    margin-bottom: 25px;
}

.aiysg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.aiysg-form-row {
    display: flex;
    gap: 20px;
}

.aiysg-form-row .half {
    flex: 1;
}

.aiysg-input,
.aiysg-textarea,
.aiysg-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.aiysg-input:focus,
.aiysg-textarea:focus,
.aiysg-select:focus {
    outline: none;
    border-color: #ff0000;
}

.aiysg-textarea {
    resize: vertical;
    font-family: inherit;
}

.aiysg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.aiysg-btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.aiysg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

.aiysg-btn-secondary {
    background: #6c757d;
    color: white;
}

.aiysg-btn-secondary:hover {
    background: #5a6268;
}

.aiysg-loading {
    text-align: center;
    padding: 40px;
}

.aiysg-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aiysg-progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.aiysg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.aiysg-category {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.aiysg-category-header {
    background: #ff0000;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
}

.aiysg-idea-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.aiysg-idea-item:last-child {
    border-bottom: none;
}

.aiysg-idea-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.aiysg-idea-title input {
    margin-right: 10px;
    transform: scale(1.2);
}

.aiysg-idea-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.aiysg-idea-meta {
    font-size: 12px;
    color: #999;
}

.aiysg-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 #ff0000;
}

.aiysg-title-text {
    flex: 1;
    font-weight: 500;
}

.aiysg-remove-title {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.aiysg-add-title {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.aiysg-add-title input {
    flex: 1;
}

.aiysg-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.aiysg-table-wrapper {
    overflow-x: auto;
}

.aiysg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.aiysg-table th,
.aiysg-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.aiysg-table th {
    background: #ff0000;
    color: white;
}

.aiysg-content-preview {
    background: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #ff0000;
    margin: 15px 0;
    font-size: 13px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .aiysg-container {
        padding: 10px;
    }
    
    .aiysg-tab-btn {
        font-size: 11px;
        padding: 10px 5px;
    }
    
    .aiysg-tab-content {
        padding: 15px;
    }
    
    .aiysg-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .aiysg-add-title {
        flex-direction: column;
    }
}