/* =================================
   فیلد تاریخ در صفحه تسویه حساب
   ================================= */
#divplus_date_field_wrapper {
    margin: 20px 0;
}

#divplus_publish_date {
    cursor: pointer;
    background-color: #fff;
}

/* =================================
   ویجت نمایش سفارشات
   ================================= */
.divplus-widget {
    margin: 15px 0;
}

.divplus-btn-show-dates {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.divplus-btn-show-dates:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.divplus-btn-show-dates .count {
    font-weight: bold;
    font-size: 18px;
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* =================================
   Modal
   ================================= */
.divplus-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.divplus-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 35px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.divplus-modal-content h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}

.divplus-modal-close {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.divplus-modal-close:hover {
    color: #333;
}

/* =================================
   لیست تاریخ‌ها
   ================================= */
.divplus-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.divplus-dates-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-right: 5px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.divplus-dates-list li:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-dates {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
    font-size: 15px;
}

/* =================================
   اسکرول‌بار سفارشی
   ================================= */
.divplus-dates-list::-webkit-scrollbar {
    width: 8px;
}

.divplus-dates-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.divplus-dates-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.divplus-dates-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* =================================
   نمایش در پنل ادمین
   ================================= */
.divplus-admin-field {
    padding: 15px;
    background: #f8f9fa;
    border-right: 4px solid #667eea;
    margin: 15px 0;
    border-radius: 5px;
}

.divplus-admin-field h3 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 16px;
}

.divplus-admin-field p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

/* =================================
   نمایش در صفحه جزئیات سفارش
   ================================= */
.divplus-order-date {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.divplus-order-date h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.divplus-order-date p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* =================================
   Responsive
   ================================= */
@media screen and (max-width: 768px) {
    .divplus-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 25px;
    }
    
    .divplus-btn-show-dates {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }
    
    .divplus-dates-list li {
        padding: 12px 15px;
        font-size: 14px;
    }
}