/* Base64 Converter Styles */

.converter-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.converter-card {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.converter-description {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
}

.file-input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.file-input:hover {
  border-color: #667eea;
}

.file-input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

#convertBtn {
  width: 100%;
  margin-bottom: 30px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.loading-overlay.active {
  display: flex;
  opacity: 1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Output Group */
#outputGroup {
  display: none;
}

.output-group {
  margin-top: 30px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.output-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a2e;
}

#copyBtn {
  flex-shrink: 0;
}

.base64-output {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  background: #f8f9fa;
  color: #1a1a2e;
  word-break: break-all;
  transition: all 0.3s ease;
}

.base64-output:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* Copy Status */
.copy-status {
  display: none;
  margin-top: 15px;
  padding: 12px 15px;
  background: #d4edda;
  color: #155724;
  border-radius: 10px;
  border: 1px solid #c3e6cb;
  font-weight: 600;
  text-align: center;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .converter-section {
    padding: 60px 0;
  }

  .converter-card {
    padding: 30px;
    border-radius: 15px;
  }

  .output-header {
    flex-direction: column;
    align-items: stretch;
  }

  #copyBtn {
    width: 100%;
  }

  .base64-output {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .converter-card {
    padding: 20px;
    margin: 0 10px;
  }

  .converter-description {
    font-size: 1rem;
  }

  .file-input,
  #convertBtn {
    padding: 10px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
