/**
 * Admin styles for Published Posts Exporter
 */

.ppex-admin-page,
.ppex-settings-page {
  max-width: 1200px;
}

.ppex-tabs {
  margin-top: 20px;
}

.ppex-tab-nav {
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.ppex-tab-nav .ppex-tab-link {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: #555;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.ppex-tab-nav .ppex-tab-link:hover {
  color: #2271b1;
}

.ppex-tab-nav .ppex-tab-link.active {
  color: #2271b1;
  border-bottom-color: #2271b1;
  font-weight: 600;
}

.ppex-tab-content {
  display: none;
}

.ppex-tab-content.active {
  display: block;
}

.ppex-export-section {
  background: #fff;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  padding: 20px;
  margin-bottom: 20px;
}

.ppex-export-section h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.ppex-export-actions {
  margin: 20px 0;
}

.ppex-result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
}

.ppex-result.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.ppex-result.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.ppex-result .ppex-download-links {
  margin-top: 15px;
}

.ppex-result .ppex-download-links a {
  display: inline-block;
  margin-right: 15px;
  padding: 8px 15px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.ppex-result .ppex-download-links a:hover {
  background: #135e96;
}

.ppex-result .ppex-download-links .ppex-primary-download {
  background: #2271b1;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
}

.ppex-result .ppex-download-links .ppex-primary-download:hover {
  background: #135e96;
}

.ppex-result .ppex-download-links .ppex-secondary-download {
  background: #666;
  font-size: 13px;
}

.ppex-result .ppex-download-links .ppex-secondary-download:hover {
  background: #555;
}

.ppex-info-box {
  background: #fff;
  border-left: 4px solid #2271b1;
  padding: 15px 20px;
  margin-top: 20px;
}

.ppex-info-box h3 {
  margin-top: 0;
}

.ppex-info-box ul {
  margin-left: 20px;
}

.ppex-info-box li {
  margin-bottom: 8px;
}

.ppex-note {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 13px;
}

/* Dashboard Widget Styles */
.ppex-dashboard-widget {
  padding: 10px 0;
}

.ppex-widget-actions {
  margin: 15px 0;
}

.ppex-widget-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.ppex-widget-footer a {
  text-decoration: none;
  color: #2271b1;
}

.ppex-widget-footer a:hover {
  text-decoration: underline;
}

/* Loading spinner */
.ppex-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2271b1;
  border-radius: 50%;
  animation: ppex-spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes ppex-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 782px) {
  .ppex-tab-nav .ppex-tab-link {
    display: block;
    padding: 12px 15px;
  }

  .ppex-result .ppex-download-links a {
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
  }
}
