/*================================================================================
	Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.font-11 {
    font-size: 11px !important;
}

.font-20 {
    font-size: 20px !important;
}

.card-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.color-block {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.size-row {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 8px;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid #dee2e6;
    display: inline-block;
    vertical-align: middle;
}

.add-btn {
    border: 2px dashed #6c757d;
    background-color: transparent;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    border-color: #495057;
    color: #495057;
    background-color: #f8f9fa;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #6c757d;
    background-color: #f8f9fa;
}

.thumbnail-preview {
    width: auto;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    gap: 10px;
    align-items: end;
}

.color-header {
    background-color: #e9ecef;
    margin: -15px -15px 15px -15px;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variation-summary {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.content-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.info-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.info-value {
    color: #6c757d;
    margin-bottom: 15px;
}

.content-block {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.meta-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.variation-card {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.size-badge {
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.stock-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #28a745;
}

.stock-low {
    border-left-color: #ffc107;
}

.stock-out {
    border-left-color: #dc3545;
}

.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 20px;
    background-color: white;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: inline-block;
}

.color-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #6c757d;
}

.color-section-img {
    height: 100px;
    width: auto;
    display: block;
    margin: auto;
    margin-bottom: 10px;
}

/* .size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
} */

.size-item {
    text-align: center;
    min-width: 60px;
}

.size-badge.disabled {
    background-color: #e9ecef;
    color: #6c757d;
    opacity: 0.6;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 2px 6px;
}

.info-label.small {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Website Builder CSS */

.main-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    margin: 20px 0;
}

.main-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.main-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.main-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.btn-add-section {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-add-section:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.section-container {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-container:hover {
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.section-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.section-header h6 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    padding-right: 100px;
}

.collapse-toggle {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.collapse-toggle:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

.collapse-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.collapse-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.collapse-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.section-content {
    padding: 20px;
}

.content-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.section-content-header {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-content-header h6 {
    margin: 0;
    font-weight: 600;
}

.card-item,
.product-item {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.card-item:hover,
.product-item:hover {
    border-color: #17a2b8;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #28a745;
    background: #f0f8f0;
}

.upload-area.has-image {
    border-color: #28a745;
    background: #f0f8f0;
}

.thumbnail-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-custom {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-1px);
}

.btn-info-custom {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}

.btn-warning-custom {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
}

.section-type-badge {
    position: absolute;
    top: 15px;
    right: 105px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-cards {
    background: #17a2b8;
    color: white;
}

.badge-products {
    background: #ffc107;
    color: #212529;
}

.form-row {
    margin-bottom: 15px;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Collapse animation improvements */
.collapsing {
    transition: height 0.35s ease;
}

.collapse.show {
    display: block;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.btn-empty-state {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-empty-state:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Validation alert styles */
.validation-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.validation-alert i {
    margin-right: 8px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .section-content {
        padding: 15px;
    }

    .content-container {
        padding: 15px;
    }

    .section-header h6 {
        padding-right: 80px;
        font-size: 1rem;
    }

    .section-type-badge {
        right: 85px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state-icon {
        font-size: 3rem;
    }
}

.section-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-size: 1.2rem;
}

.section-content {
    padding: 25px;
}

.thumbnail-input {
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
}
