/* Loader Animation */
.shadowban-loader {
  --dim: 1.2rem;
  width: var(--dim);
  height: var(--dim);
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.shadowban-loader .shadowban-circle {
  --color: #666;
  width: 0.4rem;
  height: 0.4rem;
  background-color: var(--color);
  border-radius: 50%;
  position: absolute;
  animation: shadowban-pulse 1.2s ease-in-out infinite;
}

.shadowban-loader .shadowban-circle:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.shadowban-loader .shadowban-circle:nth-child(2) {
  top: 0;
  right: 0;
  animation-delay: 0.3s;
}

.shadowban-loader .shadowban-circle:nth-child(3) {
  bottom: 0;
  left: 0;
  animation-delay: 0.9s;
}

.shadowban-loader .shadowban-circle:nth-child(4) {
  bottom: 0;
  right: 0;
  animation-delay: 0.6s;
}

@keyframes shadowban-pulse {
  0%, 100% {
      opacity: 0.5;
      transform: scale(1);
  }
  50% {
      opacity: 1;
      transform: scale(1.2);
  }
}

/* Main Container Styles */
.shadowban-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Points Display */
.remaining-points-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 20px;
  text-align: center;
}

.remaining-points-label {
  font-weight: 600;
  color: #495057;
  margin-right: 10px;
  text-align: center;
}

.remaining-points-value {
  font-size: 1.2em;
  color: #2c3e50;
  font-weight: 700;
  text-align: center;
}

/* Form Elements */
#reddit-shadowban-form {
  margin-bottom: 30px;
}

.textarea-container {
  position: relative;
  margin-bottom: 25px;
}

#reddit_usernames {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s ease;
  background-color: #fff;
}

#reddit_usernames:focus {
  border-color: #4a5568;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.2);
}

#account-count {
    font-size: 12px;
    color: #6c757d;
    width: 500px;
    margin: 0 auto;
    padding: 5px 0;
}

#account-count.count-exceeded {
  color: #dc3545;
  font-weight: bold;
}

/* Results Table */
#shadowban-results {
  display: block;
  width: 100%;
}

.shadowban-results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
}

.shadowban-results-table th,
.shadowban-results-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.shadowban-results-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.shadowban-results-table tr:last-child td {
  border-bottom: none;
}

/* Status Styles */
.pending-status {
  display: flex;
  align-items: center;
  color: #6c757d;
  font-style: italic;
}

.status-cell .shadowbanned {
  color: #dc3545;
  font-weight: 500;
}

.status-cell .not-shadowbanned {
  color: #28a745;
  font-weight: 500;
}

.status-cell .check-failed {
  color: #ffc107;
  font-weight: 500;
}

/* Recent Checks Log */
#local-storage-log {
  margin-top: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

#local-storage-log h3 {
  margin: 0 0 15px 0;
  color: #343a40;
  font-weight: 600;
}

#local-storage-log table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-family: monospace;
}

#local-storage-log th,
#local-storage-log td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
}

#local-storage-log th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  font-size: 0.9em;
}

#local-storage-log tr:last-child td {
  border-bottom: none;
}

/* Load More Button */
.load-more-button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #495057;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-button:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

/* Submit Button */
#reddit-shadowban-form button[type="submit"] {
  background-color: #4a5568;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#reddit-shadowban-form button[type="submit"]:hover {
  background-color: #2d3748;
}

#reddit-shadowban-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Error Messages */
.error-message {
  background-color: #f8d7da;
  color: #dc3545;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #dc3545;
  border-radius: 4px;
}

/* Success Messages */
.success-message {
  background-color: #f0fff4;
  color: #2f855a;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 10px 0;
  border: 1px solid #9ae6b4;
}

/* Check Summary */
.check-summary {
  background-color: #ebf8ff;
  color: #2c5282;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 15px 0;
  border: 1px solid #bee3f8;
  font-size: 0.95em;
}

/* CAPTCHA Container */
.cf-turnstile {
  margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .shadowban-form-container {
      padding: 15px;
  }

  #reddit_usernames {
      min-height: 120px;
  }

  .shadowban-results-table th,
  .shadowban-results-table td,
  #local-storage-log th,
  #local-storage-log td {
      padding: 8px 10px;
      font-size: 0.9em;
      font-family: monospace;
  }

  .remaining-points-box {
      flex-direction: column;
      text-align: center;
  }

  .remaining-points-label {
      margin-bottom: 5px;
  }
}

/* Add new container styles */
.results-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
}

#progress-container {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    order: -1;
}

.progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #6c757d;
}


.shadowpoints-box {
  font-weight: bold;
}

.reload-check {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.reload-check:hover {
    opacity: 1;
}

.reload-check svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.export-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.export-shadowban-list {
    font-family: inherit;
    background: royalblue;
    color: white;
    padding: 4px 10px;
    padding-left: 0.9em;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 12px !important;
    text-transform: uppercase;
}

.export-shadowban-list span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
}

.export-shadowban-list svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

.export-shadowban-list:hover .svg-wrapper {
    animation: fly-1 0.6s ease-in-out infinite alternate;
}

.export-shadowban-list:hover svg {
    transform: translateX(3em) rotate(45deg) scale(1.1);
}

.export-shadowban-list:hover span {
    transform: translateX(15em);
}

.export-shadowban-list:active {
    transform: scale(0.95);
}

@keyframes fly-1 {
    from {
        transform: translateY(0.1em);
    }

    to {
        transform: translateY(-0.1em);
    }
}

.export-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 5px;
    z-index: 1000;
    min-width: 160px;
    font-size: 15px;
    font-family: monospace;
    margin-top: 57px;
}

.export-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.export-dropdown li {
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.export-dropdown li:hover {
    background: #f5f5f5;
}

.export-shadowban-list svg {
    width: 16px;
    height: 16px;
}

.results-summary {
  text-align: center;
  margin: 20px 0;
  font-size: 16px;
  font-weight: bold;
  font-family: monospace;
  border: 1px solid #bfbfbf;
  width: 300px;
  margin: auto;
  border-radius: 3px;
}

.results-summary .live-count {
    color: #28a745;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(40, 167, 69, 0.1);
}

.results-summary .shadowbanned-count {
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(220, 53, 69, 0.1);
}

.daily-claim-container {
    text-align: center;
    margin-bottom: 20px;
}

.claim-points-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.claim-points-btn:hover {
    background-color: #218838;
}

.claim-points-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.error-message {
    background-color: #fff5f5;
    color: #c53030;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #feb2b2;
}

.success-message {
    background-color: #f0fff4;
    color: #2f855a;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #9ae6b4;
}

.claim-points-reward-btn {
  width: 200px;
  height: 40px;
  background-color: #101218;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.claim-points-IconContainer {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.claim-points-IconContainer svg {
  width: 40%;
  z-index: 3;
}

.claim-points-box-top {
  transition: all 0.3s;
}

.claim-points-text {
  width: 95%;
  height: 100%;
  font-size: 13px;
  color: #6a8ef6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  text-transform: uppercase;
}

.claim-points-reward-btn:hover .claim-points-IconContainer .claim-points-box-top {
  transform: translateY(-5px);
}

.claim-points-reward-btn:hover {
  background-color: #202531;
}

.claim-points-reward-btn:hover .claim-points-coin {
  transform: translateY(-5px);
  transition-delay: 0.2s;
}

.claim-points-coin {
  width: 25%;
  height: 25%;
  background-color: #e4d61a;
  position: absolute;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 1;
  border: 2px solid #ffe956;
  margin-top: 4px;
}

.claim-points-reward-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}
