@font-face {
  font-family: 'SolaimanLipi';
  src: url("/static/font/SolaimanLipi.ff930beb82e5.woff2") format('woff2'),
       url("/static/font/SolaimanLipi.3526df2db6cb.woff") format('woff'),
       url("/static/font/SolaimanLipi.55a395669acd.ttf") format('truetype');
  unicode-range: U+0960-09FF;
}
@font-face {
  font-family: 'SutonnyMJ';
  src: url("/static/font/SutonnyMJ.9c1d230171b7.woff2") format('woff2'),
       url("/static/font/SutonnyMJ.ba4670eb0505.woff") format('woff'),
       url("/static/font/SutonnyMJ.1f40a93163d6.ttf") format('truetype');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #fef5f5 0%, #fdf0f1 100%);
    font-family: 'SolaimanLipi','Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    color: #1a2634;
}

.glass-card {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(234, 32, 40, 0.06), 0 0 0 1px rgba(234, 32, 40, 0.04);
    padding: 2rem 1.8rem;
    transition: all 0.2s ease;
}

.header-area {
    text-align: center;
    margin-bottom: 1.2rem;
}

.header-logo {
    width: 256px;
    height: auto;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 2px 6px rgba(234, 32, 40, 0.25));
}

h1 {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.2px;
    margin-bottom: 0.15rem;
    color: #ea2028;
}

.sub {
    color: #8b1a1f;
    font-weight: 500;
    margin-bottom: 2.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* panels */
.panel {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 18px rgba(234, 32, 40, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #fcd5d6;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.2rem 1.5rem 0.3rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-bottom: 1px solid #fde2e4;
}

.panel-title {
    font-weight: 600;
    font-size: 1.2rem;
    background: #fef0f1;
    padding: 0.2rem 0.9rem;
    border-radius: 40px;
    color: #c9181f;
    letter-spacing: -0.2px;
}

.badge {
    font-size: 0.7rem;
    background: #fef0f1;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    color: #a0151a;
    font-weight: 500;
}

textarea {
    width: 100%;
    min-height: 320px;
    padding: 1.4rem;
    font-size: 1.1rem;
    line-height: 1.6;
    border: none;
    resize: vertical;
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', 'Shonar Bangla', 'Kalpurush', 'Siyam Rupali', 'Bangla', 'Segoe UI', monospace;
    background: #fefefe;
    outline: none;
    transition: background 0.2s;
    color: #1f2d3d;
}

textarea:focus {
    background: #fffef7;
    box-shadow: inset 0 0 0 2px #f0b8bb;
}

/* bijoy font styling (ASCII representation) */
.bijoy-font {
    font-family: 'SutonnyMJ', 'Consolas', 'Monaco', 'Fira Code', 'Courier New', monospace !important;
    font-size: 1.3rem;
    font-weight: 500;
}

.action-bar {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid #fde2e4;
    background: #fffafa;
}

button {
    background: #ffffff;
    border: 1px solid #f0c4c6;
    padding: 0.6rem 1.1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', 'Shonar Bangla', 'Kalpurush', 'Siyam Rupali', 'Bangla', 'Segoe UI', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f3b4c;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(2px);
}

button i {
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
}

button.primary {
    background: #ea2028;
    border-color: #ea2028;
    color: white;
    box-shadow: 0 2px 8px rgba(234, 32, 40, 0.25);
}

button.primary:hover {
    background: #c9181f;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(234, 32, 40, 0.35);
}

button:active {
    transform: translateY(1px);
}

button:hover:not(.primary) {
    background: #fef5f5;
    border-color: #f0b8bb;
}

.copy-btn {
    background: #fef0f1;
    border-color: #f0c4c6;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #fde2e4;
}

.display-none {
    display: none !important;
}

.footer-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #a0151a;
    border-top: 1px solid #fcd5d6;
    padding-top: 1.5rem;
}

.footer-note .nayem {
    color: #ea2028;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-note .nayem:hover {
    color: #c9181f;
    text-decoration: underline;
}

@media (max-width: 780px) {
    .converter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    body {
        padding: 1rem;
    }
    .glass-card {
        padding: 1.2rem;
    }
    textarea {
        min-height: 250px;
    }
}

/* tooltip / copy feedback */
.toast-msg {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: rgba(200, 24, 31, 0.92);
}
