:root {
    --primary: #00f2ff;
    --secondary: #00ff88;
    --bg: #0b0e14;
    --glass: rgba(255, 255, 255, 0.05);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 1.5rem 0;
}

header nav li {
    margin: 0;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
    padding-bottom: 5px;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

header nav a:hover {
    color: var(--primary);
}

header nav a:hover::after {
    width: 100%;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 50%, #1a202c 0%, #0b0e14 100%);
    color: white;
    font-family: 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-top: 80px;
    box-sizing: border-box;
}

.glass-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: 2px;
}

h1 span {
    color: var(--primary);
}

.subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    resize: none;
    transition: 0.3s;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-encrypt {
    background: var(--primary);
    color: #000;
}

.btn-decrypt {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.result-area {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    border-left: 4px solid var(--primary);
}

.result-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 10px;
}

.copy-btn {
    padding: 2px 8px;
    font-size: 0.7rem;
    background: #333;
    color: #ccc;
    border-radius: 4px;
}

#outputText {
    margin: 0;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.6;
    min-height: 1.6em;
}