/* CMS Dashboard Styles */

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Sidebar styles */
.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-right: 3px solid white;
}

/* Content area */
.content-area {
    min-height: calc(100vh - 80px);
}

/* Page builder specific */
.block-preview {
    border: 2px dashed #e5e7eb;
    transition: all 0.3s ease;
}

.block-preview:hover {
    border-color: #8b5cf6;
    background: #f3f4f6;
}

.block-preview.dragging {
    border-color: #10b981;
    background: #ecfdf5;
}

.page-builder-canvas {
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Page section content visibility */
.page-section .section-content {
    width: 100%;
    min-height: 50px;
}

.page-section .section-content > div {
    width: 100%;
}

/* Ensure proper z-index for controls */
.page-section {
    position: relative;
}

.page-section .section-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
}

/* Email preview */
.email-preview {
    max-height: 400px;
    overflow-y: auto;
}

/* Metric cards */
.metric-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Domain cards */
.domain-card {
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Text editor */
.text-editor {
    min-height: 300px;
}

/* Modal */
.modal {
    backdrop-filter: blur(8px);
}

/* Drag and drop */
.draggable {
    cursor: move;
}

.drag-over {
    background-color: #f3f4f6;
    border: 2px dashed #8b5cf6;
}

/* Loading states */
.section-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}