* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0b0f19;
    color: #ffffff;
    min-height: 100vh;
}

.navbar {
    border-bottom: 1px solid #1f2937;
    background: #0b0f19;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo-icon {
    color: #6366f1;
}

.logo-accent {
    color: #6366f1;
}

.back-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: white;
}

main {
    max-width: 950px;
    margin: auto;
    padding: 60px 20px;
}

.tool-hero {
    text-align: center;
    margin-bottom: 40px;
}

.tool-badge {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #30384a;
    border-radius: 20px;
    color: #818cf8;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.tool-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.tool-hero p {
    color: #9ca3af;
    font-size: 16px;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-header span {
    color: #d1d5db;
    font-size: 14px;
    font-weight: bold;
}

textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    background: #0b0f19;
    color: white;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 15px;
    outline: none;
    font-size: 15px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

textarea:focus {
    border-color: #6366f1;
}

.stats {
    display: flex;
    gap: 25px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.stats strong {
    color: #a5b4fc;
}

.case-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    background: #6366f1;
    color: white;
    border: none;
}

.action-btn:hover {
    opacity: 0.9;
}

.secondary-btn {
    background: #1f2937;
    color: white;
    border: 1px solid #374151;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.secondary-btn:hover {
    background: #374151;
}

.message {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    min-height: 18px;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 600px) {

    .tool-hero h1 {
        font-size: 32px;
    }

    .editor-card {
        padding: 16px;
    }

    .case-buttons {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 6px;
    }
}