/* =========================================
   CONVERTER PRO - ELITE STUDIO V41 (HERO BG)
   ========================================= */

.converter-wrapper {
    background: #020617;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    /* Contains the giant rotating glow */
    isolation: isolate;
    /* Creates a stacking context */
}

/* ✅ HERO BACKGROUND ANIMATION */
.converter-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 51, 102, 0.1) 60deg,
            transparent 120deg,
            rgba(0, 173, 239, 0.08) 240deg,
            transparent 360deg);
    animation: spinBg 25s linear infinite;
    filter: blur(80px);
    /* Soft glowing effect */
    z-index: -1;
    /* Puts it behind content */
    opacity: 0.8;
}

@keyframes spinBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* CONTENT LAYERS (Must sit above the background) */
.converter-header-left,
.converter-main-layout {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.converter-header-left {
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.highlight-text {
    color: #ff3366;
}

/* GRID LAYOUT */
.converter-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    gap: 0;
}

.editor-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* TOOLBAR */
.area-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 12px 0;
    min-height: 32px;
}

.compact-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.text-tool {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    transition: 0.2s;
}

.text-tool:hover {
    color: #ff3366;
}

.clean-select {
    background: rgba(15, 23, 42, 0.6);
    /* Slightly transparent for bg effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* SIZE CONTROLS */
.size-control-label {
    font-size: 10px;
    color: #94a3b8;
    /* Lighter for contrast against glow */
    text-transform: uppercase;
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.size-control-group {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px;
    backdrop-filter: blur(5px);
}

.btn-size {
    background: transparent;
    border: none;
    color: #64748b;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}

.btn-size:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.size-display {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    padding: 0 8px;
    min-width: 35px;
    text-align: center;
}

.action-link {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}

.action-link:hover {
    color: #ff3366;
}

/* INPUT BOXES - Fixed Height */
.minimal-editor {
    height: 450px;
    background: rgba(15, 23, 42, 0.5);
    /* More transparent to see glow */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    color: #fff !important;
    font-size: 14pt;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    resize: none;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
}

.minimal-editor:focus {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 51, 102, 0.3);
}

/* SMART PLACEHOLDER */
.minimal-editor:empty::before {
    content: attr(data-placeholder);
    color: #475569;
    font-style: normal;
    font-weight: 500;
    font-size: 14pt;
    opacity: 0.6;
    pointer-events: none;
}

.minimal-editor span[style*="font-family"] {
    color: #fff !important;
}

.output-geetanjali,
.output-geetanjali * {
    color: #fff !important;
}

/* SWAP ZONE (Centered) */
.swap-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    padding-top: 45px;
}

.swap-icon-only {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-icon-only .material-symbols-outlined {
    font-size: 28px;
}

.swap-icon-only:hover {
    color: #ff3366;
    transform: rotate(180deg) scale(1.2);
}

/* OUTPUT ACTIONS */
.output-actions-area {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Convert Button */
.btn-main-convert {
    width: auto;
    background: linear-gradient(135deg, #ff3366 0%, #ff1149 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
    transition: 0.3s;
}

.btn-main-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
}

/* Download Group */
.download-group {
    display: flex;
    gap: 10px;
}

.btn-download-simple {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn-download-simple:hover {
    border-color: #ff3366;
    color: #ff3366;
}

.pm-style {
    color: #00ADEF;
    border-color: rgba(0, 173, 239, 0.2);
}

.pm-style:hover {
    border-color: #00ADEF;
    color: #00ADEF;
}

/* MOBILE */
@media (max-width: 900px) {
    .converter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .swap-zone {
        height: auto;
        padding: 10px 0;
        transform: rotate(90deg);
    }

    .minimal-editor {
        height: 250px;
    }

    .output-actions-area {
        flex-direction: column;
        gap: 15px;
    }

    .btn-main-convert {
        width: 100%;
        justify-content: center;
    }

    .download-group {
        width: 100%;
    }

    .btn-download-simple {
        flex: 1;
        justify-content: center;
    }
}