.admin-sidebar {
    min-height: 100vh;
    background-color: #212529;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
}

.admin-content {
    margin-left: 250px;
    min-height: 100vh;
}

.admin-topbar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.sidebar-nav .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background-color: #495057;
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background-color: #343a40;
}

.sidebar-nav .nav-link.active:hover {
    background-color: #495057;
}

.sidebar-brand {
    padding: 1.3rem 1rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid #495057;
}

#menu-items .drag-handle{
    left: 8px;
    bottom: 8px;
}

#menu-items .btn-group{
    position: relative;
    z-index: 11;
}

/* ========= Admin Gallery Masonry Styles ========= */

.admin-masonry-gallery {
    position: relative;
    width: 100%;
}

.admin-masonry-item {
    padding: 7.5px; /* Half gap for total 15px between items */
    box-sizing: border-box;
    break-inside: avoid;
}

.gallery-admin-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: grab;
    position: relative;
}

.gallery-admin-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.sorting-active .gallery-admin-card {
    cursor: grabbing;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.gallery-admin-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 460px;
}

.drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.gallery-admin-card:hover .drag-handle {
    opacity: 1;
}

.sorting-active .drag-handle {
    cursor: grabbing;
}

.sort-order-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #0d6efd;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    z-index: 10;
}

.image-info {
    padding: 12px;
}

.image-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
}

.image-description {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.image-dimensions {
    color: #adb5bd;
    font-size: 11px;
}

/* Sortable states */
.sortable-ghost {
    opacity: 0.5;
    transform: scale(0.95);
}

.sortable-chosen {
    transform: scale(1.02);
    z-index: 999;
}

.sortable-drag {
    transform: rotate(3deg);
}

/* Responsive adjustments for admin masonry */
@media (max-width: 1199px) {
    .admin-masonry-item {
        padding: 5px; /* Smaller gap on tablets */
    }
}

@media (max-width: 767px) {
    .admin-masonry-item {
        padding: 3px; /* Even smaller gap on mobile */
    }

    .image-info {
        padding: 8px;
    }

    .image-title {
        font-size: 13px;
    }

    .image-description {
        font-size: 11px;
    }

    .drag-handle {
        padding: 4px 6px;
        font-size: 12px;
    }

    .sort-order-badge {
        padding: 2px 6px;
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .admin-masonry-item {
        padding: 2px; /* Minimal gap on very small screens */
    }

    .image-info {
        padding: 6px;
    }
}

/* Formuláře - univerzální styly */
.admin-content form {
    margin-bottom: 1.5rem;
}

.admin-content form table {
    width: 100%;
    table-layout: fixed;
}

.admin-content form table td,
.admin-content form table th {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.admin-content form table th{
    width: 20%;
    text-align: left;
}

.admin-content form table td:last-child {
    width: auto;
}

.admin-content form label {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0;
    font-weight: 500;
    color: #495057;
}

.admin-content form input,
.admin-content form textarea,
.admin-content form select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}

.admin-content form table input,
.admin-content form table textarea,
.admin-content form table select {
    margin-bottom: 0;
}

.admin-content form table th label {
    margin-right: 0;
    margin-bottom: 0;
    font-weight: 600;
}

.admin-content form input[type="checkbox"],
.admin-content form input[type="radio"] {
    width: 1em !important;
    max-width: none !important;
    margin-right: 0.5rem;
    margin-bottom: 0;
    display: inline-block;
}

.admin-content form .form-check {
    margin-bottom: 1.5rem;
}

.admin-content form .form-check input {
    margin-bottom: 0;
}

.admin-content form .form-check label {
    margin-bottom: 0;
    margin-right: 0;
    min-width: auto;
    font-weight: normal;
}

.admin-content form button,
.admin-content form input[type="submit"] {
    width: auto !important;
    margin-bottom: 0;
}

/* TinyMCE Editor Styles */
.tox-tinymce {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}

.tox-toolbar-overlord {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.tox-editor-header {
    border-bottom: 1px solid #dee2e6 !important;
}

.tox-edit-area {
    border: none !important;
}

.tox-statusbar {
    border-top: 1px solid #dee2e6 !important;
    background: #f8f9fa !important;
}

/* Skryt původní textarea když je TinyMCE aktivní */
.wysiwyg-editor.tox-target {
    display: none !important;
}

/* Responsive TinyMCE */
@media (max-width: 768px) {
    .tox-tinymce {
        width: 100% !important;
    }
}

/* Media Picker Modal - vyšší z-index než TinyMCE */
#mediaPickerModal {
    z-index: 70000 !important;
}

#mediaPickerModal .modal-backdrop {
    z-index: 69999 !important;
}

.media-picker-modal {
    z-index: 70000 !important;
}

/* Page Revisions Styles */
.content-preview {
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.9em;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.content-preview img {
    max-width: 100%;
    height: auto;
}

.content-preview p {
    margin-bottom: 0.5rem;
}

.content-preview h1,
.content-preview h2,
.content-preview h3,
.content-preview h4,
.content-preview h5,
.content-preview h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Revision comparison styles */
.revision-diff-old {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.revision-diff-new {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.revision-badge {
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
}

/* Revision timeline */
.revision-timeline {
    position: relative;
    padding-left: 2rem;
}

.revision-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.revision-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.revision-timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #6c757d;
    border: 2px solid #fff;
}

.revision-timeline-item.current::before {
    background-color: #198754;
}

.revision-timeline-item.selected::before {
    background-color: #0d6efd;
}

/* Revision action buttons */
.revision-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

tr:hover .revision-actions {
    opacity: 1;
}

/* Revision preview modal */
.revision-preview-content {
    max-height: 60vh;
    overflow-y: auto;
}

.revision-preview-content img {
    max-width: 100%;
    height: auto;
}

/* Revision comparison grid */
.revision-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .revision-comparison {
        grid-template-columns: 1fr;
    }

    .content-preview {
        max-height: 200px;
    }
}

/* Status badges for revisions */
.revision-status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

/* Enhanced dropdown for revision actions */
.revision-dropdown .dropdown-menu {
    min-width: 200px;
}

.revision-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.revision-dropdown .dropdown-item i {
    width: 1.2rem;
}

/* Revision statistics card */
.revision-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.revision-stats .card-body {
    position: relative;
    z-index: 2;
}

.revision-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    border-radius: inherit;
    z-index: 1;
}

/* ==========================================================================
   Page Builder Styles
   ========================================================================== */

/* Page Builder Block Library */
.page-blocks-container {
    min-height: 400px;
    padding: 1rem;
    overflow: hidden;
}

.page-block-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.page-block-wrapper:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.page-block-wrapper.dragging {
    opacity: 0.7;
    transform: rotate(5deg);
}

/* Block Controls */
.page-block-controls {
    position: absolute;
    top: -15px;
    right: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 0.375rem;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.page-block-controls.column{
    right: auto;
    left: 5px;
    z-index: 11;
    top: -40px;
}

.page-block-wrapper:hover .page-block-controls {
    opacity: 1;
    transform: translateY(0);
}

.page-block-controls .btn {
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.page-block-controls .btn:hover {
    transform: translateY(-1px);
}

.drag-handle {
    cursor: grab;
    padding: 0.25rem;
    color: #6c757d;
    border-radius: 0.25rem;
}

.drag-handle:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.drag-handle:active {
    cursor: grabbing;
}

.block-info {
    font-size: 0.75rem;
    color: #6c757d;
    padding: 0 0.5rem;
    white-space: nowrap;
}

/* Block Content */
.page-block-content {
    min-height: 50px;
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    position: relative;
}

.page-block-content.block-hidden {
    opacity: 0.5;
    position: relative;
}

.page-block-content.block-hidden::after {
    content: 'Skryto';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

/* Empty State */
.empty-state {
    color: #6c757d;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.empty-state:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

/* Sortable.js Styles */
.sortable-ghost {
    opacity: 0.4;
    background: #e9ecef;
    border: 2px dashed #6c757d;
}

.sortable-chosen {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.sortable-drag {
    transform: rotate(5deg) !important;
    opacity: 0.8 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    z-index: 9999 !important;
}

/* Block Types in Library */
.block-type-btn {
    text-align: left;
    border: 1px solid #dee2e6;
    background: white;
    color: #333;
    transition: all 0.2s ease;
}

.block-type-btn:hover {
    border-color: #0d6efd;
    color: #555;
    background: rgba(13, 110, 253, 0.05);
    transform: translateX(2px);
}

.accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

/* Block Edit Modal */
#blockEditModal .modal-dialog {
    max-width: 800px;
}

#blockEditModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Special Form Elements in Block Editor */
.list-item-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.list-item {
    margin-bottom: 0.5rem;
}

/* Range Slider Styling */
.form-range {
    margin-bottom: 0.5rem;
}

/* Block Templates Specific Styles */
.spacer-block {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(0,0,0,.1) 5px,
        rgba(0,0,0,.1) 10px
    );
    border: 1px dashed #dee2e6;
    position: relative;
}

.spacer-block::after {
    content: 'Mezera';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Block Images - obecné styly pro obrázky v blocích */
.page-block-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.page-block-content img[style*="float: left"] {
    margin: 0 1rem 1rem 0;
    max-width: 50%;
}

.page-block-content img[style*="float: right"] {
    margin: 0 0 1rem 1rem;
    max-width: 50%;
}

.page-block-content img[style*="display: block"] {
    margin: 0 auto 1rem;
}

/* Clearfix pro float obrázky */
.page-block-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Paragraph block s obrázky */
.paragraph-block {
    overflow: hidden; /* Obsahuje float elementy */
}

.paragraph-block img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.paragraph-block p {
    overflow: hidden; /* Zabrání přetečení kolem float obrázků */
}

/* Image block styly */
.block-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.block-image.align-left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.block-image.align-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.block-image.align-center {
    display: block;
    margin: 0 auto 1rem;
}

.image-caption {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* TinyMCE specifické styly pro obrázky */
.page-block-content .mce-content-body img {
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
}

/* Responzivní obrázky v TinyMCE */
.page-block-content figure {
    margin: 1rem 0;
    text-align: center;
}

.page-block-content figure img {
    margin: 0 auto;
}

.page-block-content figcaption {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Block Library Sticky */
.sticky-top {
    top: 1rem !important;
}

/* Notifications */
.page-builder-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.page-builder-loading {
    position: relative;
    pointer-events: none;
}

.page-builder-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 10;
}

.page-builder-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0d6efd;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Media Picker Integration */
.media-picker-thumb {
    max-width: 100px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-block-controls {
        position: static;
        opacity: 1;
        transform: none;
        justify-content: center;
        margin-bottom: 0.5rem;
        box-shadow: none;
        background: transparent;
    }

    .page-block-wrapper {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .page-blocks-container {
        padding: 0.5rem;
    }

    .page-block-controls .btn {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .block-info {
        display: none;
    }

    #blockEditModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
}

/* Page Builder Modal Styles */
#blockEditModal .modal-body {
    padding: 1.5rem;
    overflow: visible;
}

#blockEditModal .modal-dialog {
    max-width: 90vw;
    max-height: 95vh;
    margin: 1rem auto;
}

#blockEditModal .modal-content {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

#blockEditModal .modal-body {
    flex: 1;
    overflow: visible;
}

#blockEditModal img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* TinyMCE v modalech - prevence horizontálního scrollování */
#blockEditModal .tox-tinymce {
    max-width: 100% !important;
    box-sizing: border-box;
    height: 500px !important;
    overflow: visible;
}

#blockEditModal .tox-editor-container {
    max-width: 100% !important;
    box-sizing: border-box;
    height: 100%;
}

#blockEditModal .tox-edit-area {
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible;
}

/* Padding pro obsah editoru */
#blockEditModal .tox-edit-area iframe {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Obsah TinyMCE - padding */
#blockEditModal .mce-content-body {
    padding: 15px !important;
    margin: 0 !important;
}

#blockEditModal .tox-edit-area iframe {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Všechny obrázky v modalu budou responzivní */
#blockEditModal img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* TinyMCE obsah - responzivní obrázky */
#blockEditModal .tox-edit-area iframe {
    width: 100% !important;
}

/* Prevence overflow v celém modalu */
#blockEditModal * {
    box-sizing: border-box;
    max-width: 100%;
}

#blockEditModal table {
    table-layout: fixed;
    width: 100%;
}

#blockEditModal table td,
#blockEditModal table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#form-fields-list{
    overflow: auto;
    max-height: 282px;
}

.collapse-content .when-expanded {
    display: none;
}

.collapse-content .collapsed .when-expanded {
    display: none;
}

.collapse-content .collapsed .when-collapsed {
    display: inline;
}

/* Responsive úpravy pro menší obrazovky */
@media (max-width: 1200px) {
    #blockEditModal .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem;
    }
}

@media (max-width: 768px) {
    #blockEditModal .modal-dialog {
        max-width: 100vw;
        margin: 0;
        height: 100vh;
    }

    #blockEditModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    #blockEditModal .modal-body {
        max-height: calc(100vh - 120px);
        flex: 1;
    }
}

.menu-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    border-left-color: #007bff;
    background-color: #f8f9fa;
}

.menu-item.sortable-ghost {
    opacity: 0.5;
    background-color: #e9ecef;
}

.menu-item.sortable-chosen {
    background-color: #e7f3ff;
    border-left-color: #007bff;
}

.drag-handle:hover {
    color: #007bff !important;
}

.sortable-list {
    min-height: 10px;
}

.save-order-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

/* Print Styles */
@media print {
    .page-block-controls,
    .drag-handle,
    .block-info {
        display: none !important;
    }

    .page-block-wrapper {
        border: none !important;
        margin-bottom: 1rem;
    }

    .page-block-content {
        background: transparent !important;
        padding: 0;
    }
}

.setting-item {
    transition: all 0.2s ease;
}

.setting-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setting-input {
    transition: border-color 0.2s ease;
}     

#gallery-images{
    max-height: 282px;
    overflow: auto;
}

/* Page Builder Nested Drag & Drop Styles */

/* Dropzone placeholders for empty sections and columns */
.dropzone-placeholder {
    padding: 2rem;
    margin: 0.5rem 0;
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    text-align: center;
    color: #6c757d;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-placeholder:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dropzone-content i {
    font-size: 1.5rem;
    opacity: 0.6;
}

.dropzone-content span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Visual indicators for valid drop zones during dragging */
.dragging-block .valid-dropzone {
    position: relative;
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.dragging-block .valid-dropzone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 0.375rem;
    pointer-events: none;
    z-index: 1;
}

/* Section specific drop zone styling */
.dragging-block [data-section-row].valid-dropzone {
    min-height: 60px;
    padding: 0.5rem;
}

/* Column specific drop zone styling */
.dragging-block .column-content.valid-dropzone {
    min-height: 100px;
    padding: 0.5rem;
}

/* Main page blocks container during dragging */
.dragging-block #page-blocks.valid-dropzone {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.dragging-block #page-blocks.valid-dropzone::after {
    background: rgba(40, 167, 69, 0.1);
}

/* Sortable ghost and drag styles for nested items */
.sortable-ghost {
    opacity: 0.5;
    background: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
}

.sortable-chosen {
    transform: rotate(2deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.sortable-drag {
    transform: rotate(5deg);
    opacity: 0.8;
}

/* Enhanced page block wrapper for nested functionality */
.page-block-wrapper {
    position: relative;
}

.page-block-wrapper.sortable-chosen {
    z-index: 1000;
}

/* Section and column containers */
[data-section-row] {
    min-height: 100px;
    padding: 1rem;
    border: 2px dashed transparent;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

[data-section-row]:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.column-content {
    min-height: 120px;
    padding: 1rem;
    border: 2px dashed transparent;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    background-color: rgba(248, 249, 250, 0.5);
}

.column-content:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* Nested structure visual indicators */
.page-block-wrapper[data-parent-type="section"] {
    border-left: 3px solid #007bff;
    margin-left: 0.5rem;
}

.page-block-wrapper[data-parent-type="column"] {
    border-left: 3px solid #28a745;
    margin-left: 1rem;
}

/* Loading state for drag operations */
.page-builder-loading .page-block-wrapper {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments for nested blocks */
@media (max-width: 768px) {
    .dropzone-placeholder {
        padding: 1rem;
        min-height: 60px;
    }

    .page-block-wrapper[data-parent-type="section"],
    .page-block-wrapper[data-parent-type="column"] {
        margin-left: 0.25rem;
        border-left-width: 2px;
    }
}

/* Animation for newly added blocks */
.page-block-wrapper.newly-added {
    animation: slideInFade 0.3s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Banner Block Styles */
.banner-block{
    height: 100%;
    margin-bottom: 20px;
}

@media (min-width: 768px){
    .banner-block {
        margin-bottom: 0;
    }
    
    .col-md-6:not(.section-full-text) .column-content{
        height: 100%;
    }
}

.banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.banner-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.banner-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.banner-link:hover .banner-container {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-link:hover .banner-image {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease, padding 0.3s ease;
}

.banner-link:hover .banner-content {
    padding: 2.5rem 2rem;
}

.banner-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-button {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-link:hover .banner-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.banner-button i {
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-button i {
    transform: translateX(3px);
}

/* Responsive banner styles */
@media (max-width: 768px) {
    .banner-content {
        padding: 1.5rem;
    }

    .banner-link:hover .banner-content {
        padding: 1.75rem 1.5rem;
    }

    .banner-title {
        font-size: 1.25rem;
    }

    .banner-text {
        font-size: 0.9rem;
    }

    .banner-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .banner-content {
        padding: 1rem;
    }

    .banner-link:hover .banner-content {
        padding: 1.25rem 1rem;
    }

    .banner-title {
        font-size: 1.1rem;
    }

    .banner-text {
        font-size: 0.85rem;
    }

    .banner-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ========= Admin Heading Sizes ========= */
.admin-content h1 { font-size: 1.75rem; padding:0; }
.admin-content h2 { font-size: 1.6rem; }
.admin-content h3 { font-size: 1.4rem; }
.admin-content h4 { font-size: 1.25rem; }
.admin-content h5 { font-size: 1.1rem; }
.admin-content h6 { font-size: 1rem; }