/* Tutor Video Counter Styles */
.tvc-view-counter {
  margin: 15px 0;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #495057;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.tvc-view-counter:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.tvc-view-counter .tvc-counter-text {
  font-weight: 500;
  color: #212529;
}

.tvc-view-counter .tvc-views-remaining {
  font-weight: 600;
  color: #007bff;
}

.tvc-view-counter .tvc-total-views {
  font-weight: 600;
  color: #6c757d;
}

.tvc-view-counter .tvc-category-info {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
  font-style: italic;
}

/* Warning state when views are running low */
.tvc-view-counter.tvc-warning {
  background: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.tvc-view-counter.tvc-warning .tvc-views-remaining {
  color: #e67e22;
}

/* Danger state when views are almost exhausted */
.tvc-view-counter.tvc-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.tvc-view-counter.tvc-danger .tvc-views-remaining {
  color: #dc3545;
}

/* Success state when plenty of views remain */
.tvc-view-counter.tvc-success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.tvc-view-counter.tvc-success .tvc-views-remaining {
  color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tvc-view-counter {
    margin: 10px 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Tutor LMS theme compatibility */
.tutor-lesson-content .tvc-view-counter,
.tutor-course-content .tvc-view-counter {
  margin: 20px 0;
  max-width: 100%;
}

/* Ensure counter is visible in different Tutor LMS layouts */
.tutor-video-player-wrapper + .tvc-view-counter,
.tutor-video-player + .tvc-view-counter,
.plyr + .tvc-view-counter {
  margin-top: 15px;
}

/* Dark theme compatibility */
.tutor-dark-theme .tvc-view-counter {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

.tutor-dark-theme .tvc-view-counter .tvc-counter-text {
  color: #f7fafc;
}

.tutor-dark-theme .tvc-view-counter .tvc-category-info {
  color: #a0aec0;
}
