* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    background-image: radial-gradient(circle at 10% 20%, rgba(137, 180, 250, 0.05) 0%, rgba(30, 30, 46, 0) 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(137, 180, 250, 0.5)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(137, 180, 250, 0.8)); }
}

h1 {
    text-align: center;
    color: #89b4fa;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(137, 180, 250, 0.3);
}

.description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #a6adc8;
}

.input-output-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .input-output-container {
        flex-direction: row;
    }
    
    .code-container {
        flex: 1;
    }
    
    .actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 0 20px;
        min-width: 180px;
    }
}

.code-container {
    background-color: #11111b;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #313244;
    transition: all 0.3s ease;
}

.code-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #45475a;
}

.textarea-wrapper {
    position: relative;
}

h2 {
    color: #89b4fa;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

textarea {
    width: 100%;
    height: 350px;
    background-color: #181825;
    color: #cdd6f4;
    border: 1px solid #313244;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    resize: none;
    line-height: 1.4;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #89b4fa;
    box-shadow: 0 0 0 2px rgba(137, 180, 250, 0.3);
}

button {
    background-color: #89b4fa;
    color: #1e1e2e;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #74c7ec;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

#deobfuscateBtn {
    background-color: #f5c2e7;
    min-width: 150px;
}

#deobfuscateBtn:hover {
    background-color: #cba6f7;
}

.small-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: #313244;
    color: #cdd6f4;
}

.small-btn:hover {
    background-color: #45475a;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.features, .disclaimer {
    margin-top: 40px;
    background-color: #11111b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #313244;
}

h3 {
    color: #89b4fa;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #313244;
    padding-bottom: 8px;
}

ul {
    list-style-type: none;
    margin-left: 5px;
}

li {
    margin-bottom: 10px;
    color: #a6adc8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 1.2rem;
}

.disclaimer p {
    color: #a6adc8;
    line-height: 1.5;
}

.loader {
    display: none;
    border: 4px solid #313244;
    border-top: 4px solid #f5c2e7;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 20px;
    color: #a6adc8;
}

.stats-container {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
    background-color: #11111b;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #313244;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #181825;
    border-radius: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #a6adc8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.3rem;
    color: #cba6f7;
    font-weight: bold;
}

button:disabled {
    background-color: #45475a;
    cursor: not-allowed;
    opacity: 0.7;
}

