/*!/wp-content/plugins/digital-inventory-plugin-V1.0/public/css/dip-public.css*//* تنسيق داكن احترافي - محصور داخل .dip-dashboard-container */


/* التأكد من تحميل FontAwesome أو ظهور الأيقونات */
.dip-dashboard-container .fas,
.dip-dashboard-container .far,
.dip-dashboard-container .fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.dip-dashboard-container {
    --dip-bg-dark: #1a1a1a;
    --dip-bg-panel: #252525;
    --dip-text-primary: #ffffff;
    --dip-text-secondary: #a0a0a0;
    --dip-text-dark: #000000;
    --dip-accent-orange: #ff9f43;
    --dip-accent-blue: #54a0ff;
    --dip-accent-green: #1dd1a1;
    --dip-accent-red: #ff6b6b;
    --dip-border: #333333;
    --dip-font-main: 'Inter', sans-serif;

    background-color: var(--dip-bg-dark);
    color: var(--dip-text-primary);
    font-family: var(--dip-font-main);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--dip-border);
    margin-top: 20px;
    direction: rtl;
    text-align: right;
    position: relative;
}

/* العناوين (Headers) */
.dip-dashboard-container h1,
.dip-dashboard-container h2,
.dip-dashboard-container h3 {
    font-family: var(--dip-font-main);
    color: var(--dip-text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* التبويبات (Tabs) */
.dip-dashboard-container .dip-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--dip-border);
}

.dip-dashboard-container .dip-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--dip-text-secondary);
    padding: 10px 20px;
    font-family: var(--dip-font-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dip-dashboard-container .dip-tab-btn:hover {
    color: var(--dip-text-primary);
}

.dip-dashboard-container .dip-tab-btn.active {
    color: var(--dip-accent-orange);
    border-bottom-color: var(--dip-accent-orange);
}

/* شريط الإجراءات (Actions Bar) */
.dip-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dip-filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* النماذج وحقول الإدخال (Forms & Inputs) */
.dip-dashboard-container .dip-add-new-box {
    background: var(--dip-bg-panel);
    border: 1px solid var(--dip-border);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dip-dashboard-container .dokan-form-control {
    background-color: #333 !important;
    border: 1px solid #444 !important;
    color: var(--dip-text-primary) !important;
    font-family: var(--dip-font-main) !important;
    padding: 10px 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.dip-dashboard-container select.dokan-form-control option {
    background-color: #333;
    color: #fff;
}

.dip-dashboard-container .dokan-form-control:focus {
    border-color: var(--dip-accent-orange) !important;
    outline: none;
}

/* تخطيط شبكة النموذج (Form Grid Layout) */
.dip-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

/* الأزرار (Buttons) */
.dip-dashboard-container .dokan-btn-theme {
    background-color: var(--dip-accent-orange) !important;
    border: none !important;
    color: #fff !important;
    font-family: var(--dip-font-main) !important;
    font-weight: 500;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    transition: 0.2s;
}

.dip-dashboard-container .dokan-btn-theme:hover {
    background-color: #e67e22 !important;
    transform: translateY(-1px);
}

.dip-dashboard-container .dokan-btn-danger {
    background-color: var(--dip-accent-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
}

.dip-dashboard-container .dokan-btn-default {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    border-radius: 4px !important;
}

/* الجدول (Table) */
.dip-dashboard-container .dokan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background: var(--dip-bg-panel);
    border-radius: 6px;
    overflow: hidden;
}

.dip-dashboard-container .dokan-table thead th {
    background: #2a2a2a;
    color: var(--dip-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--dip-border);
}

.dip-dashboard-container .dokan-table tbody tr {
    border-bottom: 1px solid var(--dip-border);
    transition: 0.2s;
}

.dip-dashboard-container .dokan-table tbody tr:hover {
    background: #333;
}

.dip-dashboard-container .dokan-table td {
    padding: 15px;
    color: var(--dip-text-primary);
    font-size: 14px;
    vertical-align: middle;
}

/* الشارات والحالة (Badges & Status) */
.dip-dashboard-container .dip-badge {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.dip-dashboard-container .dip-type-text {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dip-dashboard-container .dip-type-key {
    background: rgba(255, 159, 67, 0.15);
    color: var(--dip-accent-orange);
}

.dip-dashboard-container .dip-type-link {
    background: rgba(84, 160, 255, 0.15);
    color: var(--dip-accent-blue);
}

.dip-dashboard-container .dip-type-file {
    background: rgba(29, 209, 161, 0.15);
    color: var(--dip-accent-green);
}

.dip-dashboard-container .dip-status-available {
    color: var(--dip-accent-green);
    font-weight: 500;
}

.dip-dashboard-container .dip-status-sold {
    color: var(--dip-accent-red);
    font-weight: 500;
}

/* الترقيم (Pagination) */
.dip-pagination-wrapper {
    padding: 15px 0;
    border-top: 1px solid var(--dip-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dip-per-page label {
    color: var(--dip-text-secondary);
}

.dip-per-page select {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 2px 5px;
    border-radius: 4px;
}

.dip-page-btn {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    cursor: pointer;
}

.dip-page-btn.active {
    background: var(--dip-accent-orange);
    border-color: var(--dip-accent-orange);
}

/* النافذة المنبثقة (Modal) */
.dip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    direction: rtl;
}

.dip-modal-content {
    background: var(--dip-bg-panel);
    border-radius: 8px;
    padding: 30px;
    width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: var(--dip-text-primary);
    position: relative;
}

.dip-close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dip-text-secondary);
}

.dip-modal-content h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--dip-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* أدوات مساعدة (Utilities) */
.dip-flex-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dip-code-display {
    font-family: monospace;
    background: #111;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--dip-accent-orange);
}

/* إخفاء صندوق حالة التحقق في مسؤول WP */
#dip-status-check-metabox {
    display: none;
}

/* إصلاح أزرار الأيقونات */
.dip-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dip-text-secondary);
    font-size: 1.1rem;
    padding: 5px;
    transition: 0.2s;
}

.dip-icon-btn:hover {
    color: var(--dip-accent-orange);
}

.dip-icon-btn.text-danger:hover {
    color: var(--dip-accent-red);
}

/* ============================================
   أنماط صفحة "شكراً لك" / تم استلام الطلب
   ============================================ */

.dip-vault-wrapper {
    padding: 25px;
    background: #1a1a1a;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.dip-vault-wrapper h2 {
    color: #ff9f43;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dip-vault-controls {
    margin-bottom: 25px;
}

#dip-vault-search {
    width: 100%;
    padding: 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

#dip-vault-search:focus {
    border-color: #ff9f43;
    outline: none;
}

.dip-order-group {
    margin-bottom: 30px;
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.dip-order-header {
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
}

/* حاوية العناصر الأفقية */
.dip-items-horizontal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* بطاقة العنصر */
.dip-item-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.dip-item-card:hover {
    transform: translateY(-3px);
    border-color: #ff9f43;
    box-shadow: 0 5px 15px rgba(255, 159, 67, 0.2);
}

.dip-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.dip-card-icon {
    font-size: 24px;
    color: #ff9f43;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dip-card-info h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.dip-card-type {
    margin: 3px 0 0 0;
    color: #a0a0a0;
    font-size: 12px;
}

.dip-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
}

.dip-meta-item {
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dip-meta-item i {
    color: #ff9f43;
    font-size: 11px;
}

/* إجراءات البطاقة */
.dip-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dip-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.dip-btn i {
    font-size: 11px;
}

.dip-btn span {
    display: none;
}

.dip-btn-view {
    background: #ff9f43;
    color: #fff;
}

.dip-btn-view:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.dip-btn-copy {
    background: #54a0ff;
    color: #fff;
}

.dip-btn-copy:hover {
    background: #3d8cdb;
    transform: translateY(-1px);
}

.dip-btn-download {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.dip-btn-download:hover {
    background: #444;
    transform: translateY(-1px);
}

/* حاوية تحميل الكل */
.dip-download-all-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.dip-btn-download-all {
    padding: 12px 30px;
    background: #1dd1a1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.dip-btn-download-all:hover {
    background: #10ac84;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 209, 161, 0.3);
}

/* أنماط النافذة المنبثقة (Modal Styles) */
.dip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.dip-modal.active {
    display: flex;
}

.dip-modal-content {
    background: #252525;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
    border: 1px solid #333;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dip-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #a0a0a0;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.dip-close-modal:hover {
    color: #fff;
}

.dip-modal-header h3 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 18px;
}

.dip-modal-body {
    margin-bottom: 20px;
}

.dip-modal-textarea {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ff9f43;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    font-weight: 500;
}

.dip-modal-textarea:focus {
    border-color: #ff9f43;
    outline: none;
}

.dip-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dip-modal-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.dip-modal-btn-copy {
    background: #ff9f43;
    color: #fff;
}

.dip-modal-btn-copy:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.dip-modal-btn-download {
    background: #54a0ff;
    color: #fff;
}

.dip-modal-btn-download:hover {
    background: #3d8cdb;
    transform: translateY(-1px);
}

.dip-modal-btn-close {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.dip-modal-btn-close:hover {
    background: #444;
    transform: translateY(-1px);
}

.dip-modal-info {
    margin-top: 15px;
    padding: 12px;
    background: #1a1a1a;
    border-left: 3px solid #ff9f43;
    border-radius: 4px;
}

.dip-modal-info-item {
    margin: 8px 0;
    font-size: 13px;
    color: #a0a0a0;
}

.dip-modal-info-item strong {
    color: #ff9f43;
}

/* التصميم المتجاوب (Responsive Design) */
@media (max-width: 768px) {
    .dip-items-horizontal-container {
        flex-direction: column;
    }

    .dip-item-card {
        max-width: 100%;
        min-width: auto;
    }

    .dip-btn span {
        display: inline;
    }

    .dip-modal-content {
        width: 95%;
        padding: 20px;
    }

    .dip-modal-actions {
        flex-direction: column;
    }

    .dip-modal-btn {
        width: 100%;
        min-width: auto;
    }

    .dip-order-header {
        flex-direction: column;
        gap: 8px;
    }

    .dip-vault-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dip-item-card {
        padding: 12px;
    }

    .dip-btn {
        padding: 6px 8px;
        font-size: 11px;
    }

    .dip-btn-download-all {
        padding: 10px 20px;
        font-size: 13px;
    }

    .dip-modal-content {
        width: 98%;
        padding: 15px;
    }

    .dip-modal-textarea {
        height: 100px;
        font-size: 12px;
    }
}