/**
 * Styles for Base64 to PNG Converter tool
 */

.cc-tool {
  width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cc-tool-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.cc-tool-section {
  margin-bottom: 24px;
}

.cc-tool-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.cc-tool-textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  background: #ffffff;
  color: #2c3e50;
  height: initial;
}

.cc-tool-textarea:focus {
  outline: none;
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.cc-tool-textarea::placeholder {
  color: #95a5a6;
}

.cc-tool-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 32px 0;
}

.cc-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cc-tool-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cc-tool-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cc-tool-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.cc-tool-btn-icon {
  font-size: 20px;
  line-height: 1;
}

.cc-tool-btn-convert {
  background: #28a745;
}

.cc-tool-btn-convert:hover {
  background: #218838;
}

.cc-tool-btn-download {
  background: #17a2b8;
}

.cc-tool-btn-download:hover {
  background: #138496;
}

/* Output section styles */
.cc-tool-output-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 2px solid #d0d0d0;
}

.cc-tool-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  overflow: auto;
}

.cc-tool-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cc-tool-download-section {
  display: flex;
  justify-content: center;
}

/* Error message styles */
.cc-tool-error {
  background: #f8d7da;
  color: #721c24;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
  .cc-tool-container {
    padding: 24px;
  }

  .cc-tool-actions {
    flex-direction: column;
  }

  .cc-tool-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
  }

  .cc-tool-textarea {
    font-size: 14px;
    padding: 12px;
  }

  .cc-tool-image-container {
    min-height: 150px;
    padding: 15px;
  }
}

/* Animation for output section */
.cc-tool-output-section {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
