/* Content Type Manager Styles */

.content-type-manager {
    padding: 20px;
}

.manager-header {
    margin-bottom: 30px;
}

.manager-header h1 {
    margin-bottom: 10px;
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.content-type-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.content-type-card .card-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-type-card .card-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.card-actions {
    display: flex;
    gap: 5px;
}

.content-type-card .card-body {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.info-row .label {
    font-weight: 600;
    color: #666;
}

.info-row code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.fields-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.field-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
}

.content-type-card .card-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* Content Type Form */

.content-type-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fields-list {
    min-height: 100px;
}

.empty-fields {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    color: #999;
}

/* Field Editor */

.field-editor {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.field-editor:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.field-editor.dragging {
    opacity: 0.5;
}

.field-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.field-drag-handle {
    cursor: move;
    color: #999;
    margin-right: 10px;
    padding: 5px;
}

.field-drag-handle:hover {
    color: #667eea;
}

.field-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-type-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: normal;
}

.field-body {
    padding: 20px;
}

.field-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Responsive */

@media (max-width: 768px) {
    .content-types-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

