/* Admin specific styles */
.admin-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-box {
    background: #fff;
    padding: 20px;
    width: 350px;
    margin: auto;
    border-radius: 10px;
box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
-webkit-box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
-moz-box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
}

.navbar-primary {
    background-color: #272324;
}

.sidebar {
    height: calc(100vh - 56px);
    overflow-y: auto;
}

/* Form builder specific styles */
.form-builder-container {
    padding: 20px;
}

.steps-list {
    min-height: 100px;
}

.step-item, .group-item {
    cursor: move;
    margin-bottom: 10px;
}



.colorpicker .input-group-text {
    padding: 0;
}

.colorpicker .input-group-text input[type="color"] {
    border: none;
    width: 40px;
    height: 38px;
    cursor: pointer;
}

.linebox {
    padding: 20px;
    border: 1px dashed #272324;
}

.whitebox {
    background: #ffffff;
    padding: 20px;
}

.logo-display {
    max-width: 300px;
        max-height: 50px;
        object-fit: contain;
    padding: 5px;
    border: 1px solid #ccc;
}

[x-cloak] { display: none !important; }

.card {
    border: none;
box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
-webkit-box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
-moz-box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
}

.card-header {
    background: #e5ddc6;
}
.card-header-danger {
    background: #ffcbcb;
    border:1px solid #f0b6b6;
}
.card-body-danger {
    background: #fff3f3;
    border:1px solid #f9dada;
}
.card-header-info {
    background: #dcf5ff;
    border: 1px solid #b6ddec;
}

.card-body {
        transition: all 0.3s ease;
}

.card-header::after {
     content: none !important;
}

.list-group-item {
        border: none;
box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
-webkit-box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
-moz-box-shadow: 2px 3px 17px -4px rgba(0,0,0,0.14);
}

[class*=sidebar-dark-] {
    background-color: #272324;
}

.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #272324;
    border-color: #272324;
}
.step-item.active, .group-item.active {
    border-left: 4px solid #b68947;
}

.btn-primary, .btn-success {
    color: #fff;
    background-color: #272324;
    border-color: #272324;
    box-shadow: none;
}

.btn-primary:hover, .btn-success:hover {
    color: #fff;
    background-color: #b68947;
    border-color: #b68947;
}

.btn-info {
    background-color: #3397bd;
    border-color: #3397bd;
}
.btn-info:hover {
    background-color: #197193;
    border-color: #197193;
}

.btn-group-sm>.btn, .btn-sm {
    padding: .4rem .8rem;
    font-size: .80rem;
    line-height: 1.5;
    border-radius: .2rem;
}
.btn-sm-round {
    padding: 6px 7px;
    font-size: 10px;
    line-height: 1;
    border-radius: 50%;
}

.sortable-ghost {
    opacity: 0.5;
    background: #c8ebfb;
}



.sortable-drag {
    opacity: 1 !important;
    transform: rotate(2deg);
}

.drag-handle:hover {
    color: #0d6efd;
}

/* Smooth transitions for drag/drop */
.steps-list {
  transition: all 0.3s ease; /* Parent container */
}

.step-item {
  transition: transform 0.3s ease, opacity 0.2s ease; /* Individual items */
}

/* SortableJS classes (already in your JS) */


.sortable-chosen {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sortable-drag {
  opacity: 1 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Add to your stylesheet */
.d-inline-edit {
    display: inline-block;
    width: auto;
    min-width: 100px;
}

.option-edit-form .form-control {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Customize SweetAlert */
.swal2-popup {
    font-family: 'Your Font', sans-serif;
    border-radius: 0.5rem;
}

.swal2-confirm {
    background-color: #dc3545 !important;
}

.swal2-cancel {
    margin-right: 10px;
}

/* SortableJS classes */


.option-card {
        transition: all 0.3s ease;
        height: 100%;
        position: relative;
    }
    .option-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .progress-bar {
        transition: width 0.6s ease;
    }
    .list-group-item.active {
        z-index: 0;
    }
.border-success {
    border: 2px solid #28a745;
};





/* Group handle styling */
/* Drag Handle Styles */
.group-drag-handle {
    opacity: 0.3;
    transition: opacity 0.2s;
    padding: 0.5rem;
    margin-left: -0.5rem;
}

.group-drag-handle:hover {
    opacity: 1;
}

.group-item:hover .group-drag-handle {
    opacity: 0.7;
}




/* ===============
   Grid Layout Classes - Responsive
   =============== */

/* Base mobile layout: 1 column */
[class^="grid-"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default to 1 column */
    gap: 20px;
}

/* Tablet layout: 2 columns */
@media (min-width: 768px) {
    [class^="grid-"] {
        grid-template-columns: repeat(2, 1fr); /* All grids show 2 columns */
    }
}

.grid-1 {
        grid-template-columns: repeat(1, 1fr);
    }

/* Desktop layout: N columns based on class */
@media (min-width: 992px) {
    .grid-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }

    .grid-7 {
        grid-template-columns: repeat(7, 1fr);
    }

    .grid-8 {
        grid-template-columns: repeat(8, 1fr);
    }

    .grid-9 {
        grid-template-columns: repeat(9, 1fr);
        min-width: 100%;
    }

    .grid-10 {
        grid-template-columns: repeat(10, 1fr);
    }
}


.selected-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.selected-icon i {
    color: #28a745;
    font-size: 28px;
}