/* =============================================
   Header
   ============================================= */


.headers {
       background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    border-radius: 20px !important;
    padding: 44px 40px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(180, 23, 158, 0.25);
  }
  
  .header-inner {
    max-width: 680px;
    margin: 0 auto;
  }
  
  .title {
      font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white !important;
  }
  
  .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 400;
  }
  
  /* =============================================
     Main Layout
     ============================================= */
  .main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 60px;
  }
  
  /* =============================================
     Drop Zone
     ============================================= */
  .drop-section {
    margin-bottom: 40px;
  }
  
  .drop-zone {
   background: linear-gradient(219deg, #fb0e7630 0%, #91069400 100%) !important;
    border: 3px dashed #f755f5 !important;
    border-radius: 20px !important;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
  }
  
  .drop-zone:hover {
		transform: translateY(-2px);
    background: #fce7ef;
    border-color: #ec4899;
  }
  
  .drop-zone.drag-over {
    background: #fce4f0;
    border-color: #db2777;
    transform: scale(1.01);
  }
  
  .drop-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
  }
  
  .drop-icon svg {
    width: 64px;
    height: 64px;
  }
  
  .drop-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
  }
  
  .drop-hint {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
  }
  
  .browse-btn {
  border: none;
    padding: 14px 28px;
    border-radius: 30px !important;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    transition: .3s;
  }
  
  .browse-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  }
  
  .browse-btn:active {
    transform: translateY(0);
  }
  
  #fileInput {
    display: none;
  }
  
  /* =============================================
     Results Section
     ============================================= */
  .results-section {
		   display:none;

    grid-template-columns:1fr 1fr;

    gap:24px;

    margin-top:25px;
/*     display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none; */
  }
.results-section.visible{

    display:grid;

}
  
/*   .results-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  } */
  
  /* =============================================
     Cards
     ============================================= */
  .card {
       border: 2px solid #f755f5;
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.2s;
  }
  
  .card:hover {
    box-shadow: var(--shadow-card-hover);
  }
  
  .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
    background: #fafbfc;
  }
  
  .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fce7f3, #fce7ef);
    border-radius: var(--radius-sm);
    color: #db2777;
    flex-shrink: 0;
  }
  
  .card-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
  }
  
  .card-body {
       background: linear-gradient(219deg, #fb0e762e 0%, #91069408 100%) !important;
    padding: 20px;
  }
  
  /* =============================================
     Info Card
     ============================================= */
  .info-card {
    align-self: start;
  }
  
  .info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }
  
  .info-divider {
    height: 1px;
    background: var(--color-border);
  }
  
  .info-label {
    font-size: 0.875rem;
    font-weight: 500;
   color: black;
  }
  
  .info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: right;
    max-width: 55%;
    word-break: break-all;
  }
  
  /* Status badges */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  
  .status-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .status-waiting {
    background: #f1f5f9;
    color: #64748b;
  }
  .status-waiting::before { background: #94a3b8; }
  
  .status-processing {
    background: #fef3c7;
    color: #92400e;
    animation: pulse-badge 1.2s ease-in-out infinite;
  }
  .status-processing::before { background: #f59e0b; }
  
  .status-ready {
    background: #dcfce7;
    color: #166534;
  }
  .status-ready::before { background: #22c55e; }
  
  .status-error {
    background: #fee2e2;
    color: #991b1b;
  }
  .status-error::before { background: #ef4444; }
  
  @keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
  
  /* =============================================
     HTML Card
     ============================================= */
  .html-card {
    display: flex;
    flex-direction: column;
  }
  
  .html-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .textarea-wrapper {
    flex: 1;
    position: relative;
  }
  
  #htmlOutput {
       width: 100%;
    height: 260px;
    resize: vertical;
    padding: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: #f8fafc;
    border: 1.5px solid #f755f5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  #htmlOutput:focus {
    border-color: #db2777;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
  }
  
  /* =============================================
     Action Buttons
     ============================================= */
  .action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
  }
  
  .action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  
  .copy-btn {
       background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
  }
  .copy-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  }
  
  .download-btn {
      background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
  }
  .download-btn:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
  }
  
  .clear-btn {
       background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
  }
  .clear-btn:hover {
    background: #fff1f2;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
  }
  
  .action-btn:active {
    transform: translateY(0);
  }
  
  /* =============================================
     Toast Notification
     ============================================= */
  .toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /* =============================================
     Responsive
     ============================================= */
@media (max-width: 768px){
	.main-content{
		padding: 0px !important;
	}
	
}
  @media (max-width: 680px) {
    .header-title {
      font-size: 1.9rem;
    }
  
    .results-section {
      grid-template-columns: 1fr;
    }
  
    .drop-zone {
      padding: 40px 20px;
    }
  
    .drop-title {
      font-size: 1.3rem;
    }
  
    .action-row {
      flex-direction: column;
    }
  
    .action-btn {
      justify-content: center;
      width: 100%;
    }
  }
  