/* 
 * Notices CSS
 * Định dạng cho các thành phần thông báo và cảnh báo
 */

/* Plugin Notice Styles */
.notice.notice-warning {
  margin: 15px 0;
}

/* Basic Color Styling */
.red {
  color: #ff0000;
}

/* Sync Notice Styles */
.leopard-sync-notice-title {
  color: #000;
}

.leopard-sync-notice .leopard-sync-notice-title {
  color: #fff;
}

.leopard-sync-notice a {
  color: #FF0000;
  padding-left: 15px;
}

.leopard-sync-notice {
  background: #565c70 !important;
  position: relative;
}

.leopard-sync-notice .leopard-sync-notice-title {
  display: inline-block;
}

.leopard-sync-notice .leopard-sync-notice-wrap {
  padding: 10px;
}

.leopard-sync-notice::after {
  content: '';
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  box-shadow: inset 0 -10px 20px -10px rgba(0,0,0,.2),inset 0 0 5px rgba(0,0,0,.1),0 8px 8px -5px rgba(0,0,0,.25);
}

/* File Status Styles */
.file-status-item {
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-status-item.success {
  background-color: #f0f7f0;
  border-left: 3px solid #46b450;
}

.file-status-item.failed {
  background-color: #fef7f7;
  border-left: 3px solid #dc3232;
}

.file-status-item.in-progress {
  background-color: #fcf9e8;
  border-left: 3px solid #ffb900;
}

.status-count.success-count {
  background: #eaffee;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #46b450;
}

.status-count.failed-count {
  background: #fbeaea;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #dc3232;
}

.status-count.success-rate {
  background: #f0f6fc;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #2271b1;
}

/* Status Toggle Styles */
.nou_leopard_toggle_status {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
}

.nou_leopard_toggle_status.enabled {
  background-color: #e1f5e1;
  color: #107c10;
}

.nou_leopard_toggle_status.disabled {
  background-color: #f8d7da;
  color: #721c24;
}

.nou_leopard_toggle_status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.nou_leopard_toggle_status.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Enhanced Sync Description */
.enhanced-sync-description {
  background-color: #f0f7fc;
  border-left: 4px solid #00a0d2;
  padding: 15px;
  margin-bottom: 20px;
}

/* CORS Warning Dialog */
.nou_leopard_wom_cors_warning {
  background-color: #fff8e5;
  border: 1px solid #f0c36d;
  border-radius: 3px;
  padding: 15px;
  margin: 10px 0;
}

.nou_leopard_wom_cors_warning p {
  margin: 0 0 10px 0;
}

.nou_leopard_wom_cors_warning strong {
  color: #e67e22;
}

/* Error Table Styles */
table.wc_status_table td mark.yes, 
table.wc_status_table th mark.yes {
  color: #7ad03a;
}

/* Analytics Cards */
.analytics-card {
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
  background: #f9f9f9;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.analytics-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #2271b1;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* File Status Header */
.file-status-header {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Empty Status Message */
.empty-status-message {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Enhanced Sync Notice */
.leopard-enhanced-sync-notice {
  margin-top: 30px !important;
}

/* File Analysis Tabs */
.file-analysis-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.file-analysis-tab {
  padding: 10px 15px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-bottom: none;
  margin-right: 5px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  cursor: pointer;
  font-weight: normal;
}

.file-analysis-tab.active {
  background: #fff;
  border-bottom-color: #fff;
  font-weight: bold;
  position: relative;
  top: 1px;
}

.file-analysis-tab-content {
  display: none;
}

.file-analysis-tab-content.active {
  display: block;
}

/* Recent Files Tab Styles */
.file-analysis-header {
  margin-bottom: 20px;
}

.file-analysis-header h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2271b1;
}

.file-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.file-type-card {
  background: #f9f9f9;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-type-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 24px;
  color: #fff;
}

.file-type-icon.image {
  background: #4CAF50;
}

.file-type-icon.video {
  background: #2196F3;
}

.file-type-icon.document {
  background: #FF9800;
}

.file-type-icon.audio {
  background: #9C27B0;
}

.file-type-icon.other {
  background: #607D8B;
}

.file-type-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.file-type-count, .file-type-size {
  font-size: 12px;
  color: #666;
}