/* style.css */
.mbtc-container {
   max-width: 1600px; /* Increased width */
   margin: 20px auto; /* Keep original margin */
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   padding: 0 20px; /* Keep original padding */
   background: linear-gradient(135deg, #f8fafc, #ffffff);
   min-height: 600px; /* Set to 600px as requested */
}

.mbtc-wrapper {
   position: relative;
   background: #ffffff;
   border-radius: 16px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04),
               0 4px 12px rgba(0, 0, 0, 0.02);
   overflow: hidden;
   border: 1px solid rgba(226, 232, 240, 0.8);
   margin: 20px 0; /* Keep original margin */
   min-height: 600px; /* Set wrapper to 600px height */
}

.mbtc-glass-effect {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(
       135deg,
       rgba(255, 255, 255, 0.95) 0%,
       rgba(255, 255, 255, 0.85) 100%
   );
   pointer-events: none;
}

.mbtc-header {
   padding: 24px 32px;
   background: #ffffff;
   border-bottom: 1px solid rgba(226, 232, 240, 0.8);
   display: flex;
   justify-content: space-between;
   align-items: center;
   position: relative;
}

.mbtc-title-group {
   display: flex;
   align-items: center;
   gap: 12px;
}

.mbtc-title {
   font-size: 22px;
   font-weight: 700;
   background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   letter-spacing: -0.5px;
}

.mbtc-pill {
   background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
   color: white;
   padding: 6px 12px;
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.mbtc-shortcut {
   display: flex;
   align-items: center;
   gap: 8px;
   background: #f8fafc;
   padding: 8px 16px;
   border-radius: 12px;
   border: 1px solid rgba(226, 232, 240, 0.8);
}

kbd {
   background: #f1f5f9;
   border-radius: 6px;
   padding: 4px 8px;
   font-size: 13px;
   font-family: inherit;
   color: #1e293b;
   font-weight: 600;
   border: 1px solid rgba(203, 213, 225, 0.8);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mbtc-shortcut-label {
   color: #64748b;
   font-size: 13px;
   font-weight: 500;
}

.mbtc-editor-container {
   position: relative;
   min-height: 500px; /* Set to provide good editor space */
   background: #ffffff;
}

.mbtc-editor-background {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   overflow: hidden;
}

.mbtc-gradient-sphere {
   position: absolute;
   border-radius: 50%;
   filter: blur(60px);
   opacity: 0.08;
}

.sphere-1 {
   background: linear-gradient(135deg, #60a5fa, #3b82f6);
   width: 250px;
   height: 250px;
   top: -80px;
   right: -80px;
}

.sphere-2 {
   background: linear-gradient(135deg, #f472b6, #ec4899);
   width: 200px;
   height: 200px;
   bottom: -40px;
   left: -40px;
}

.sphere-3 {
   background: linear-gradient(135deg, #34d399, #10b981);
   width: 180px;
   height: 180px;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
}

.mbtc-input {
   width: 100%;
   min-height: 380px; /* Set to good size within the 600px container */
   padding: 32px;
   border: none;
   font-size: 16px;
   line-height: 1.6;
   resize: vertical;
   color: #334155;
   background: transparent;
   position: relative;
   z-index: 2;
}

.mbtc-input:focus {
   outline: none;
}

.mbtc-input::placeholder {
   color: #94a3b8;
   opacity: 0.8;
}

.mbtc-footer {
   padding: 20px 32px;
   background: #ffffff;
   border-top: 1px solid rgba(226, 232, 240, 0.8);
   position: relative;
}

.mbtc-stats {
   display: flex;
   align-items: center;
   gap: 24px;
}

.mbtc-stat-item {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 14px;
   color: #64748b;
   font-weight: 500;
}

.mbtc-icon {
   opacity: 0.7;
}

.mbtc-stat-divider {
   width: 1px;
   height: 20px;
   background: rgba(226, 232, 240, 0.8);
}

/* AI Button Styles */
.mbtc-ai-btn {
   background: linear-gradient(135deg, #3b82f6, #2563eb);
   color: white;
   border: none;
   padding: 8px 16px;
   font-weight: bold;
   transition: all 0.3s ease;
}

.mbtc-ai-btn:hover {
   background: linear-gradient(135deg, #2563eb, #1d4ed8);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mbtc-ai-icon {
   font-style: normal;
   font-weight: bold;
}

/* Modal Styles */
.mbtc-modal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   z-index: 1000;
   backdrop-filter: blur(4px);
}

.mbtc-modal-content {
   position: relative;
   background: white;
   margin: 10% auto;
   padding: 24px;
   width: 80%;
   max-width: 600px;
   border-radius: 16px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mbtc-modal-close {
   position: absolute;
   right: 24px;
   top: 20px;
   font-size: 24px;
   cursor: pointer;
   color: #64748b;
   transition: color 0.2s ease;
}

.mbtc-modal-close:hover {
   color: #1e293b;
}

#mbtc-ai-input {
   width: 100%;
   min-height: 150px;
   margin: 20px 0;
   padding: 16px;
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   font-size: 16px;
   resize: vertical;
}
.mbtc-loading {
   display: none;
   text-align: center;
   margin-top: 20px;
}

.mbtc-loading-dots {
   display: flex;
   justify-content: center;
   gap: 8px;
   margin-bottom: 12px;
}

.mbtc-loading-dots div {
   width: 12px;
   height: 12px;
   background: #3b82f6;
   border-radius: 50%;
   animation: mbtc-loading 1.4s infinite ease-in-out;
}

.mbtc-loading-dots div:nth-child(2) {
   animation-delay: 0.2s;
}

.mbtc-loading-dots div:nth-child(3) {
   animation-delay: 0.4s;
}

@keyframes mbtc-loading {
   0%, 100% {
       transform: scale(0.6);
       opacity: 0.4;
   }
   50% {
       transform: scale(1);
       opacity: 1;
   }
}
/* Notification Styles */
.mbtc-notification {
   position: fixed;
   right: -300px;
   top: 20px;
   padding: 12px 20px;
   border-radius: 8px;
   background: white;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   z-index: 1100;
   opacity: 0;
   max-width: 300px;
}

.mbtc-notification.success {
   border-left: 4px solid #10b981;
   background: #f0fdf4;
}

.mbtc-notification.error {
   border-left: 4px solid #ef4444;
   background: #fef2f2;
}

.mbtc-notification.info {
   border-left: 4px solid #3b82f6;
   background: #eff6ff;
}

/* Tooltip Styles */
.mbtc-tooltip {
   position: absolute;
   background: #1e293b;
   color: white;
   padding: 6px 12px;
   border-radius: 6px;
   font-size: 12px;
   pointer-events: none;
   white-space: nowrap;
   z-index: 1000;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mbtc-tooltip::after {
   content: '';
   position: absolute;
   bottom: -4px;
   left: 50%;
   transform: translateX(-50%);
   border-width: 4px;
   border-style: solid;
   border-color: #1e293b transparent transparent transparent;
}

/* Loading Animation Refinements */
.mbtc-loading-dots div {
   animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* Modal Improvements */
.mbtc-modal-content {
   transform: translateY(20px);
   opacity: 0;
   animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
   to {
       transform: translateY(0);
       opacity: 1;
   }
}

/* Focus States */
.mbtc-ai-input:focus,
.mbtc-input:focus {
   outline: none;
   border-color: #3b82f6;
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Improvements */
@media (max-width: 768px) {
   .mbtc-container {
       max-width: 100%;
       padding: 0 20px;
       margin: 20px auto;
   }
   
   .mbtc-wrapper {
       margin: 20px 0;
   }
   
   .mbtc-editor-container {
       min-height: 400px;
   }
   
   .mbtc-input {
       min-height: 300px;
   }
}

@media (max-width: 640px) {
   .mbtc-modal-content {
       width: 90%;
       margin: 20px auto;
   }

   .mbtc-notification {
       width: 90%;
       max-width: none;
       left: 50%;
       transform: translateX(-50%);
   }
}