/* === Secure Data Manager - style.css (Dark Neon Theme) === */

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
}

/* Body */
body {
  background: radial-gradient(circle at top, #0a0f24, #020414 80%);
  color: #dce7ff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 850px;
  width: 100%;
  background: rgba(10, 15, 36, 0.9);
  border-radius: 15px;
  box-shadow: 0 0 20px #00cfff33;
  padding: 30px;
  backdrop-filter: blur(10px);
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}
header img {
  height: 60px;
}
header h1 {
  font-size: 1.8em;
  color: #00cfff;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
#lang-switch {
  margin-top: 10px;
}
.lang-btn {
  background: none;
  color: #00cfff;
  border: 1px solid #00cfff55;
  margin: 0 6px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.lang-btn:hover {
  background: #00cfff33;
}
.lang-btn.active {
  background: #00cfff;
  color: #0e1f3b;
}

/* Description */
#app-desc {
  text-align: center;
  margin: 15px 0 25px 0;
  color: #aac8ff;
}

/* Sections */
section {
  margin: 28px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #0e1f3b;
}
section:last-of-type {
  border-bottom: none;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
label {
  font-weight: 600;
  color: #9fcfff;
}
input, select, textarea {
  background: #081024;
  border: 1px solid #223366;
  border-radius: 8px;
  padding: 10px;
  color: #dce7ff;
  font-size: 1em;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #00cfff;
  box-shadow: 0 0 5px #00cfff55;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
button {
  background: linear-gradient(90deg, #00cfff 60%, #3651fa 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: #0e1f3b;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px #00cfff66;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Entry List */
#data-list, #restore-list {
  list-style: none;
  margin-top: 10px;
  background: #0b142f;
  border-radius: 8px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #112255;
}
#data-list li, #restore-list li {
  background: #0f1c3b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  word-break: break-all;
}
#data-list li:hover, #restore-list li:hover {
  background: #13275f;
}

/* View Button for EntryList */
.view-btn {
  background: linear-gradient(90deg, #00cfff 60%, #3651fa 100%);
  color: #0e1f3b;
  border: none;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.9em;
  cursor: pointer;
  box-shadow: 0 0 8px #00cfff33;
  transition: background 0.2s, color 0.2s;
}
.view-btn:hover {
  background: #00cfff;
  color: #000;
}

/* Entry Viewer */
.entry-viewer {
  background: #09172e;
  border: 1px solid #00cfff33;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  box-shadow: 0 0 10px #00cfff22;
}
.entry-viewer h3 {
  color: #00cfff;
  margin-bottom: 8px;
  font-size: 1.1em;
}
.entry-viewer p {
  color: #cde6ff;
  word-break: break-word;
}
.secret-data {
  background: #061122;
  border: 1px dashed #00cfff44;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  font-family: "Fira Mono", monospace;
  font-size: 0.9em;
  word-break: break-all;
}

/* Footer */
footer {
  text-align: center;
  color: #567;
  margin-top: 25px;
  font-size: 0.9em;
}
footer p {
  color: #789;
}
footer a {
  color: #00cfff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Scrollbar Neon Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b142f;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00cfff 0%, #3651fa 100%);
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 18px;
  }
  header h1 {
    font-size: 1.4em;
  }
  button {
    font-size: 0.9em;
  }
  .view-btn {
    font-size: 0.8em;
  }
}
