* {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 0;
    color: #000000;
    min-height: 100vh;
    padding: 0;
    --primary-color: #2196f3;
    --dark-bg: #ffffff; /*1a1a1a*/
    --light-bg: #f5f5f5;
    --border-color: #333;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #000000;
    border: 2px solid #000000;
}

.editor-container {
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.section {
    border-bottom: 1px solid var(--border-color);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
}

#bginputoutput {
    background-color: #6D0075;
    color: white;
    padding: 3px;
}

#resultdata {
    background-color: #200A21;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    flex-grow: 1;
    margin-left: 1rem;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

textarea {
    width: 100%;
    min-height: 170px;
    padding: 1.5rem;
    background: var(--dark-bg);
    border: none;
    color: #000000;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.convert-btn {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.convert-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.output-section {
    position: relative;
}

#output {
    width: 100%;
    min-height: 170px;
    padding: 1.5rem;
    background: var(--dark-bg);
    border: none;
    color: #000000;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    background: #4CAF50;
    color: white;
}

.copy-btn:hover {
    background: #45a049;
}

.clear-btn {
    background: #ff4444;
    color: white;
}

.clear-btn:hover {
    background: #cc0000;
}

.notification {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.active {
    bottom: 20px;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #resultdata {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    textarea {
        min-height: 120px;
        padding: 1rem;
    }

    .toolbar {
        padding: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .toolbar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .toolbar button {
        align-self: flex-end;
    }
}