/* assets/css/custom.css */

/* Form Builder Styles */
.field-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.field-item .field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: move;
}

.field-item .field-header h4 {
    margin: 0;
    font-size: 16px;
}

.field-item .remove-field {
    color: #dc3545;
    cursor: pointer;
}

.field-item .remove-field:hover {
    color: #c82333;
}

/* Dashboard Stats */
.small-box {
    border-radius: 5px;
    position: relative;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.small-box > .inner {
    padding: 10px;
}

.small-box h3 {
    font-size: 38px;
    font-weight: bold;
    margin: 0 0 10px 0;
    white-space: nowrap;
    padding: 0;
}

.small-box p {
    font-size: 15px;
}

.small-box .icon {
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
    font-size: 70px;
    color: rgba(0,0,0,0.15);
}

/* Table Actions */
.btn-group-sm > .btn, .btn-sm {
    margin: 2px;
}

/* Form Builder Container */
#form-fields-container {
    min-height: 100px;
}

/* Product Items */
.product-item {
    background: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.product-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Required Field Indicator */
.text-danger {
    color: #dc3545;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Tables */
@media screen and (max-width: 767px) {
    .table-responsive-stack tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 10px;
    }
    
    .table-responsive-stack td {
        display: block;
        text-align: right;
        border: none;
    }
    
    .table-responsive-stack td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}