/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #050505; color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    height: 100vh; overflow: hidden;
}

.container { display: flex; height: 100%; }

/* SIDEBAR */
.sidebar {
    width: 280px; background: #0d1117;
    border-right: 1px solid #30363d;
    padding: 30px; display: flex; flex-direction: column;
}

.brand { color: #58a6ff; text-decoration: none; font-family: 'Fira Code'; margin-bottom: 40px; display: block; font-size: 0.8rem; }
.info-box h3 { color: #8b949e; font-size: 0.8rem; margin-bottom: 10px; }
.info-box p { font-size: 0.85rem; color: #666; margin-bottom: 10px; line-height: 1.5; }

.status-box { background: #161b22; padding: 20px; border-radius: 8px; border: 1px solid #30363d; margin-top: auto; }
.status-box p { font-size: 0.7rem; color: #888; margin-bottom: 10px; }
.indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.encrypt { background: #58a6ff; box-shadow: 0 0 10px #58a6ff; }
.decrypt { background: #00ff41; box-shadow: 0 0 10px #00ff41; }

/* MAIN */
.tool-area { flex: 1; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto; }

header { text-align: center; margin-bottom: 30px; }
h1 { font-family: 'Fira Code'; font-size: 2.5rem; margin-bottom: 5px; }
.accent { color: #00ff41; }
header p { color: #8b949e; }

/* TABS */
.tabs { display: flex; gap: 10px; margin-bottom: 30px; background: #161b22; padding: 5px; border-radius: 8px; }
.tab-btn {
    background: transparent; border: none; color: #888; padding: 10px 20px; cursor: pointer;
    font-family: 'Fira Code'; font-size: 0.9rem; border-radius: 6px; transition: 0.3s;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { background: #30363d; color: #fff; font-weight: bold; }

/* PANELS */
.panel { display: none; width: 100%; max-width: 500px; flex-direction: column; gap: 20px; }
.panel.active { display: flex; animation: fadeIn 0.3s; }

/* INPUTS */
.upload-box {
    border: 2px dashed #30363d; padding: 30px; text-align: center; border-radius: 8px; cursor: pointer;
    transition: 0.3s; background: #0d1117; color: #888;
}
.upload-box:hover, .upload-box.uploaded { border-color: #00ff41; color: #00ff41; background: #0e150f; }

textarea, input[type="password"] {
    width: 100%; background: #0d1117; border: 1px solid #30363d; padding: 15px;
    color: #fff; border-radius: 6px; font-family: 'Fira Code'; font-size: 0.9rem; resize: vertical;
}
textarea { height: 120px; }
textarea:focus, input:focus { border-color: #58a6ff; outline: none; }

.btn-action {
    background: #238636; color: white; border: none; padding: 15px; border-radius: 6px;
    font-weight: bold; cursor: pointer; font-size: 1rem; transition: 0.3s; display: flex;
    justify-content: center; align-items: center; gap: 10px;
}
.btn-action:hover { background: #2ea043; transform: scale(1.02); }

/* OUTPUT BOX */
.output-box {
    background: #0d1117; border: 1px solid #30363d; padding: 20px; border-radius: 8px; min-height: 100px;
}
.output-box h4 { color: #58a6ff; margin-bottom: 10px; font-size: 0.8rem; }
.placeholder { color: #444; font-style: italic; }
.revealed { color: #00ff41; font-family: 'Fira Code'; word-break: break-all; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 768px) {
    .container { flex-direction: column; overflow: auto; }
    .sidebar { width: 100%; height: auto; }
    .tool-area { padding: 20px; }
}