
/* تحسين تخطيط نظرة عامة الإحصائيات */
.plinkly-summary {
    width: 100%;
    display: flex;
    border-radius: 8px;
    gap: 20px;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}
.plinkly-summary-item {
    flex: 1 1 200px;
    /*margin: 10px;*/
    padding: 15px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    gap: 20px;
}

.plinkly-summary-item h3 {
    font-size: 2.5em;
    margin: 0;
    color: #3498db;
}
.plinkly-summary-item p {
    margin: 8px 0 0;
    font-size: 1em;
    color: #555;
}

/* تحسين نموذج الفلاتر */
.plinkly-filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.plinkly-filters form label {
    margin-right: 15px;
    color: #333;
    font-weight: 600;
}
.plinkly-filters input[type="date"],
.plinkly-filters select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}
.plinkly-filters input[type="submit"].button {
    margin-top: 10px;
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.plinkly-filters input[type="submit"].button:hover {
    background-color: #2980b9;
}

/* تحسين قائمة التبويبات */
#plinkly-tabs {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}
#plinkly-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #ddd;
}
#plinkly-tabs ul li {
    margin-right: 20px;
}
#plinkly-tabs ul li a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}
#plinkly-tabs ul li a:hover,
#plinkly-tabs ul li.ui-tabs-active a {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* تحسين تنسيق الجداول */
table.widefat {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table.widefat th,
table.widefat td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
table.widefat th {
    background-color: #f5f5f5;
}

/* ضمان استجابة العرض على الأجهزة الصغيرة */
@media (max-width: 768px) {
    .plinkly-summary {
        flex-direction: column;
    }
    #plinkly-tabs ul {
        flex-direction: column;
    }
}

.daily-click-trend-card {
    width: 100% !important;
    height: auto;
    max-width: 100%;
}

.daily-click-trend-card canvas {
    width: 100% !important;
    max-width: 100%;
    display: block;
}

/* الهيدر فقط Flex */
.daily-click-trend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* العنوان بدون هوامش */
.daily-click-trend-header h3 {
    margin: 0;
}

/* زر الاختيار */
.daily-click-trend-header select {
    margin: 0;
    padding: 5px 10px;
    font-size: 14px;
}

/* دعم RTL */
html[dir="rtl"] .daily-click-trend-header {
    flex-direction: row-reverse;
}

.daily-click-trend-header select {
    background-color: #f0f4ff; /* لون خلفية خفيف */
    color: #003f91; /* لون النص */
    border: 1px solid #cdd9ed;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;           /* إزالة سهم المتصفح */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="7"><path fill="%23003f91" d="M6 7L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 7px;
    padding-right: 32px; /* ترك مساحة للسهم */
    transition: all 0.2s ease-in-out;
}

.daily-click-trend-header select:hover {
    background-color: #e6eeff;
    border-color: #003f91;
}

.daily-click-trend-header select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 63, 145, 0.2);
}


.card {
    position: relative;
    margin-top: 20px;
    padding: .7em 2em 1em;
    min-width: 1px;
    max-width: 100%;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    background: #fff;
    box-sizing: border-box;
}


.plinkly-stats-wrapper.blur {
  position: relative;
  filter: blur(4px);
  pointer-events: none;
}
.plinkly-stats-wrapper.blur::after {
  content: 'الإحصائيات متاحة فقط في الإصدار المدفوع';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  font-weight: bold;
  font-size: 1.2em;
  color: #d32f2f;
}










.plinkly-settings{
    margin: 10px;
}

.plinkly-stats-wrapper.blur {
    filter: blur(5px);
    pointer-events: none;
    opacity: 0.6;
}

.plinkly-summary-card-1 {
    width: 30%;
}

.plinkly-summary-card-2 {
    display: flex;
    gap: 20px;
    width: 70%;
}

.additional-cards-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.dashboard-column-left {
    width: 30%;
}

.dashboard-column-right {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.click-summary-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.daily-click-trend-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 300px;
    overflow: hidden;
    position: relative;
}

#chartPeriodSelect {
    position: absolute;
    top: 15px;
    right: 15px;
}

.charts-card {
    display: flex;
    gap: 20px;
    max-width: 100%;
}

.charts-card > div {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    width: 50%;
}

.detailed-data-card {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
}

.detailed-date-filter {
    margin-bottom: 15px;
}

.detailed-date-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    direction: inherit;
}

/* النموذج نفسه */
.detailed-date-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* كل حقل */
.date-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* دعم RTL داخل الحقول */
html[dir="rtl"] .date-label {
    flex-direction: row-reverse;
}

.label-text {
    font-size: 14px;
    color: #333;
}

.detailed-date-form input[type="date"],
.detailed-date-form input[type="submit"],
.export-button {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
}
/* تنسيق زر التصفية والتصدير */
.detailed-date-filter .button,
.detailed-date-filter .export-button,
.detailed-date-filter input[type="submit"] {
    background-color: #f0f4ff;
    color: #003f91;
    border: 1px solid #cdd9ed;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    appearance: none;
    text-decoration: none;
    display: inline-block;
}

/* تأثير Hover */
.detailed-date-filter .button:hover,
.detailed-date-filter .export-button:hover,
.detailed-date-filter input[type="submit"]:hover {
    background-color: #e6eeff;
    border-color: #003f91;
}

/* تأثير Focus */
.detailed-date-filter .button:focus,
.detailed-date-filter .export-button:focus,
.detailed-date-filter input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 63, 145, 0.2);
}

.tab-pagination .current {
    padding: 6px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #f1f1f1;
}

.dots {
    padding: 6px 10px;
}

.top-clicked-buttons-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}


@media (max-width: 992px) {
  .additional-cards-row {
    flex-direction: column;
  }

  .dashboard-column-left,
  .dashboard-column-right {
    width: 100%;
  }

  .plinkly-summary {
    flex-direction: column;
  }

  .plinkly-summary-card-1,
  .plinkly-summary-card-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .charts-card {
    flex-direction: column;
  }

  .charts-card > div {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .detailed-date-form {
    flex-direction: column;
    align-items: stretch;
  }

  .date-label {
    width: 100%;
    justify-content: space-between;
  }

  .tab-pagination {
    flex-direction: column;
    gap: 10px;
  }
}


