/* Schema Settings Admin Styles */

.softworld-schema-meta-box {
    padding: 12px;
}

.softworld-schema-meta-box p {
    margin: 10px 0;
}

.softworld-schema-meta-box label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.softworld-schema-meta-box input[type="text"],
.softworld-schema-meta-box input[type="number"],
.softworld-schema-meta-box textarea,
.softworld-schema-meta-box select {
    width: 100%;
    margin-top: 3px;
}

.schema-fields {
    background: #f9f9f9;
    padding: 12px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.schema-fields p {
    margin: 8px 0;
}

.schema-fields label {
    font-size: 13px;
    font-weight: 600;
}

/* Admin Page Styles */
.softworld-schema-container {
    max-width: 1200px;
}

.softworld-schema-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    margin: 20px 0;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.softworld-schema-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #23282d;
    font-size: 18px;
}

.softworld-checkbox-label {
    position: relative;
    display: inline-block;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1.4;
}

.softworld-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.softworld-checkbox-label:hover input ~ .checkmark {
    border-color: #0073aa;
}

.softworld-checkbox-label input:checked ~ .checkmark {
    background-color: #0073aa;
    border-color: #0073aa;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.softworld-checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.softworld-checkbox-label .checkmark:after {
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Schema Types Grid */
.softworld-schema-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.schema-type-card {
    border: 1px solid #e1e1e1;
    padding: 20px;
    border-radius: 6px;
    background: #fafafa;
    transition: box-shadow 0.2s ease;
}

.schema-type-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schema-type-card h3 {
    margin: 0 0 12px 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.schema-type-card p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.schema-type-card strong {
    color: #333;
    font-size: 13px;
}

/* Testing Tools */
.softworld-testing-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    border: 1px solid #d4e6f4;
    padding: 20px;
    border-radius: 6px;
    background: #f0f8ff;
    transition: box-shadow 0.2s ease;
}

.tool-card:hover {
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.tool-card h3 {
    margin: 0 0 12px 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.tool-card p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Social Profiles */
.social-profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-profile-row input[type="url"] {
    flex: 1;
}

.remove-social-profile {
    flex-shrink: 0;
    color: #d63638;
    border-color: #d63638;
}

.remove-social-profile:hover {
    background-color: #d63638;
    color: white;
}

/* Form Table Improvements */
.form-table th {
    width: 200px;
    font-weight: 600;
}

.form-table td .description {
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

/* Entity Type Radio Buttons */
.form-table input[type="radio"] {
    margin-right: 8px;
}

.form-table label {
    margin-right: 20px;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .softworld-schema-types-grid,
    .softworld-testing-tools {
        grid-template-columns: 1fr;
    }
    
    .social-profile-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-profile-row input[type="url"] {
        margin-bottom: 8px;
    }
}

/* Additional Meta Box Styles */
.softworld-schema-meta-box .schema-type-info {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #0073aa;
}

.softworld-schema-meta-box .schema-type-info p {
    margin: 0;
    font-size: 12px;
    color: #0073aa;
    font-weight: 500;
}

/* Loading States */
.schema-loading {
    opacity: 0.6;
    pointer-events: none;
}

.schema-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}