/* Service Forge Dashboard & Marketplace Styles */

.service-forge-dashboard, .service-forge-marketplace {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
    margin: 2em 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sf-button {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    height: auto;
    margin: 0;
    padding: 10px 20px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.sf-button-primary { background: #007cba; border-color: #007cba; color: #fff; }
.sf-button-primary:hover { background: #005a87; border-color: #005a87; color: #fff; }
.sf-button-secondary { background: #f3f5f6; border-color: #dcdcde; color: #50575e; }
.sf-button-secondary:hover { background: #e0e2e4; border-color: #b4b9be; color: #3c434a; }
.sf-button-sm { padding: 5px 10px; font-size: 12px; }

/* Table Styles */
.sf-table { width: 100%; border-collapse: collapse; margin-top: 1.5em; }
.sf-table th, .sf-table td { padding: 12px 15px; border: 1px solid #e5e5e5; text-align: left; vertical-align: middle; }
.sf-table thead th { background-color: #f9f9f9; }
.sf-status-publish, .sf-status-draft { display: inline-block; color: white; padding: 3px 10px; border-radius: 12px; font-size: 0.85em; text-transform: capitalize; }
.sf-status-publish { background-color: #28a745; }
.sf-status-draft { background-color: #6c757d; }

/* Form Styles */
.sf-creator-form-wrapper { margin-top: 1.5em; }
.sf-form-section { padding: 25px; border: 1px solid #e5e5e5; margin-top: 20px; border-radius: 4px; background: #fcfcfc; }
.sf-form-section h2 { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.sf-form-field { margin-bottom: 20px; }
.sf-form-field label { font-weight: 600; display: block; margin-bottom: 8px; font-size: 1.1em; }
.sf-form-field input[type="text"], .sf-form-field input[type="number"], .sf-form-field textarea, .sf-form-field select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 1em; }
.sf-form-field input[type="radio"] { margin-right: 5px; }
.sf-form-field label input[type="radio"] { margin-right: 8px; }
.sf-form-field textarea { font-family: monospace; }
.sf-form-field .description { font-size: 0.9em; color: #666; font-style: italic; margin-top: 8px; }
.sf-form-actions { margin-top: 25px; display: flex; align-items: center; gap: 10px; }
.sf-form-actions .spinner { float: none; visibility: visible; }

/* Feedback Alerts */
#sf-form-feedback { display: none; padding: 15px; margin-top: 20px; border-radius: 4px; border: 1px solid transparent; }
.sf-alert-success { background-color: #d4edda; border-color: #c3e6cb; color: #155724; }
.sf-alert-danger { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.sf-alert-warning { background-color: #fff3cd; border-color: #ffeeba; color: #856404; padding: 15px; border-radius: 4px; }
#sf-form-feedback strong { font-weight: bold; }

/* Marketplace Styles */
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.sf-service-card { border: 1px solid #e0e0e0; border-radius: 5px; background: #fff; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out; }
.sf-service-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.sf-card-thumbnail a { display: block; }
.sf-card-thumbnail img { width: 100%; height: 180px; object-fit: cover; display: block; border-bottom: 1px solid #eee; }
.sf-card-content { padding: 20px; flex-grow: 1; }
.sf-card-title { margin: 0 0 5px 0; font-size: 1.3em; }
.sf-card-title a { text-decoration: none; color: #222; }
.sf-card-title a:hover { color: #007cba; }
.sf-card-author { font-size: 0.9em; color: #777; margin-bottom: 15px; }
.sf-card-excerpt { font-size: 1em; color: #555; line-height: 1.5; }
.sf-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #f9f9f9; border-top: 1px solid #e5e5e5; }
.sf-card-cost { font-weight: bold; font-size: 1.2em; color: #28a745; }
.sf-card-button:hover { background-color: #005a87; color: white; }