

/* public/css/admin-cms.css - Admin CMS Styles */

/* ====================================
   CMS EDITOR STYLES
   ==================================== */
.cms-editor-container {
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.cms-section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.cms-section-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cms-section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.cms-section-body {
    padding: 1.5rem;
}

.cms-field-group {
    margin-bottom: 1.5rem;
}

.cms-field-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.cms-field-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.cms-field-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.cms-image-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.25rem;
    background: #f8f9fa;
}

.cms-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cms-json-list-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.cms-json-list-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cms-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #dc3545;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-json-list-item:hover .cms-item-remove {
    opacity: 1;
}

.cms-item-handle {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: #6c757d;
    cursor: move;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-json-list-item:hover .cms-item-handle {
    opacity: 1;
}

/* ====================================
   SAVE BAR
   ==================================== */
.cms-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cms-save-bar.visible {
    transform: translateY(0);
}

.cms-save-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cms-save-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cms-save-status i {
    font-size: 1.2rem;
}

.cms-save-status .saved {
    color: var(--primary-color);
}

.cms-save-status .unsaved {
    color: #ffc107;
}

/* ====================================
   RESPONSIVE CMS
   ==================================== */
@media (max-width: 768px) {
    .cms-editor-container {
        padding: 1rem;
    }
    
    .cms-section-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cms-save-bar .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
