/* Permanent Fixes for Astra Theme */
.mt-b64i-wrapper .mt-b64i-btn {
    color: white !important;
}
.mt-b64i-wrapper .mt-b64i-btn-secondary {
    color: #6b7280 !important;
}
.mt-b64i-wrapper .mt-b64i-animated-title {
    color: transparent !important;
}

/* Main Tool Styles */
.mt-b64i-wrapper {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.6;
}
.mt-b64i-wrapper *, .mt-b64i-wrapper *::before, .mt-b64i-wrapper *::after { margin: 0; padding: 0; box-sizing: border-box; }
.mt-b64i-wrapper .mt-b64i-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }.mt-b64i-wrapper .mt-b64i-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 16px;
  background: #ffffff;
  transition: border 0.3s ease;
}

/* Hover Effect */
.mt-b64i-wrapper .mt-b64i-container:hover {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) border-box;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .mt-b64i-wrapper .mt-b64i-container {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
}

.mt-b64i-wrapper .mt-b64i-header { text-align: center; margin-bottom: 3rem; }
.mt-b64i-wrapper .mt-b64i-animated-title { font-size: 2.2rem; font-weight: 700; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; animation: mt-b64i-float 3s ease-in-out infinite; }
.mt-b64i-wrapper .mt-b64i-header p { font-size: 1rem; color: #6b7280; font-weight: 400; }
@keyframes mt-b64i-float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.mt-b64i-wrapper .mt-b64i-main-card, .mt-b64i-wrapper .mt-b64i-preview-container { background: rgba(255, 255, 255, 0.95); border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); padding: 2rem; margin-bottom: 2rem; transition: all 0.3s ease; }
.mt-b64i-wrapper .mt-b64i-main-card:hover, .mt-b64i-wrapper .mt-b64i-preview-container:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); }
.mt-b64i-wrapper .mt-b64i-input-section { margin-bottom: 2rem; }
.mt-b64i-wrapper .mt-b64i-input-label { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; display: block; color: #1f2937; }
.mt-b64i-wrapper .mt-b64i-textarea-container { position: relative; margin-bottom: 1rem; }
.mt-b64i-wrapper .mt-b64i-base64-input { width: 100%; min-height: 120px; padding: 1.2rem; border: 2px solid #e5e7eb; border-radius: 12px; background: #f9fafb; font-family: 'Courier New', monospace; font-size: 0.9rem; resize: vertical; transition: all 0.3s ease; }
.mt-b64i-wrapper .mt-b64i-base64-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); background: white; }
.mt-b64i-wrapper .mt-b64i-drag-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1)); border: 2px dashed #3b82f6; border-radius: 12px; display: none; align-items: center; justify-content: center; font-weight: 600; color: #3b82f6; backdrop-filter: blur(5px); }
.mt-b64i-wrapper .mt-b64i-drag-overlay.active { display: flex; }
.mt-b64i-wrapper .mt-b64i-button-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.mt-b64i-wrapper .mt-b64i-btn { padding: 0.75rem 1.5rem; border: none !important; border-radius: 12px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; }
.mt-b64i-wrapper .mt-b64i-btn-primary { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.mt-b64i-wrapper .mt-b64i-btn-secondary { background: white !important; border: 2px solid #e5e7eb !important; }
.mt-b64i-wrapper .mt-b64i-btn-success { background: linear-gradient(135deg, #10b981, #059669) !important; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.mt-b64i-wrapper .mt-b64i-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.mt-b64i-wrapper .mt-b64i-error-message, .mt-b64i-wrapper .mt-b64i-success-message { padding: 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500; display: none; }
.mt-b64i-wrapper .mt-b64i-error-message { background: linear-gradient(135deg, #fee2e2, #fecaca); border: 1px solid #ef4444; color: #dc2626; }
.mt-b64i-wrapper .mt-b64i-success-message { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border: 1px solid #10b981; color: #047857; }
.mt-b64i-wrapper .mt-b64i-error-message.show, .mt-b64i-wrapper .mt-b64i-success-message.show { display: block; animation: mt-b64i-slideIn 0.3s ease; }
@keyframes mt-b64i-slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mt-b64i-wrapper .mt-b64i-preview-section { margin-top: 2rem; }
.mt-b64i-wrapper .mt-b64i-preview-container { text-align: center; display: none; }
.mt-b64i-wrapper .mt-b64i-preview-container.show { display: block; animation: mt-b64i-fadeIn 0.5s ease; }
@keyframes mt-b64i-fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.mt-b64i-wrapper .mt-b64i-preview-image { max-width: 100%; max-height: 500px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); margin-bottom: 1rem; }
.mt-b64i-wrapper .mt-b64i-image-info { background: linear-gradient(135deg, #f9fafb, #f3f4f6); border-radius: 12px; padding: 1rem; margin-bottom: 1.5rem; text-align: left; }
.mt-b64i-wrapper .mt-b64i-image-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: #1f2937; }
.mt-b64i-wrapper .mt-b64i-image-info p { font-size: 0.9rem; color: #6b7280; margin: 0.25rem 0; }
.mt-b64i-wrapper .mt-b64i-loading .mt-b64i-spinner { width: 16px; height: 16px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: mt-b64i-spin 1s linear infinite; }
@keyframes mt-b64i-spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) { .mt-b64i-wrapper .mt-b64i-button-group { flex-direction: column; } }
/* Key Features Section Styles */
.mt-b64i-wrapper .mt-b64i-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.mt-b64i-wrapper .mt-b64i-feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.mt-b64i-wrapper .mt-b64i-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.mt-b64i-wrapper .mt-b64i-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}
.mt-b64i-wrapper .mt-b64i-feature-icon.mt-b64i-primary { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.mt-b64i-wrapper .mt-b64i-feature-icon.mt-b64i-secondary { background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899); }
.mt-b64i-wrapper .mt-b64i-feature-icon.mt-b64i-tertiary { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.mt-b64i-wrapper .mt-b64i-feature-card h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }
.mt-b64i-wrapper .mt-b64i-feature-card p { font-size: 0.9rem; color: #6b7280; line-height: 1.5; }
@media (max-width: 768px) {
    .mt-b64i-wrapper .mt-b64i-features-grid { grid-template-columns: 1fr; gap: 1rem; }
}