:root {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --card-color: #1e1e1e;
  --input-bg: #2c2c2c;
  --primary: #1e88e5;
  --primary-hover: #1565c0;
  --heading-color: #90caf9;
}

body.light {
  --bg-color: #f4f4f4;
  --text-color: #222;
  --card-color: #ffffff;
  --input-bg: #ffffff;
  --primary: #1976d2;
  --primary-hover: #1565c0;
  --heading-color: #1976d2;
}

body {
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

h1 {
  text-align: center;
  color: var(--heading-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--card-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card h2 {
  margin-top: 0;
  color: var(--heading-color);
}

.actions a, .actions button, .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  margin: 5px 3px 0 0;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none; /* <-- elimină sublinierea */
}

.actions a:hover, .actions button:hover, .btn:hover {
  background: var(--primary-hover);
}

input, button, textarea {
  width: 100%;
  background: var(--input-bg);
  color: var(--text-color);
  border: 1px solid #555;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

label {
  display: block;
  margin: 10px 0 5px;
}

#theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--card-color);
  color: var(--text-color);
  border: 1px solid #444;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  height: auto;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.login-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-box button {
  margin-top: 15px;
  padding: 8px 20px;
  width: auto; /* ca să nu se întindă pe tot layout-ul */
  align-self: center; /* centrat în containerul flex */
}
.save-btn {
  width: auto;
  padding: 8px 16px;
  float: right;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}
form {
  display: flex;
  flex-direction: column;
}
.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  margin-left: 5px;
  font-size: 16px;
  vertical-align: middle;
}
.copy-btn:hover {
  color: var(--primary);
}
.field-row {
  margin-bottom: 12px;
}

.field-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}


.text-part {
  flex-grow: 1;
  font-family: monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.icon-group {
  display: flex;
  gap: 6px;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.copy-btn:hover {
  color: var(--primary);
}
.user, .password {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 10px;
  font-size: 14px;
}

.btn:hover {
  opacity: 0.9;
}
.tag {
  display: inline-block;
  background: #4caf50;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.favicon {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 4px;
}
.card {
  position: relative; /* 👈 pentru a poziționa faviconul în colț */
}
.card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 10;
}
.note {
  font-size: 13px;
  color: #ccc;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #555;
  white-space: pre-wrap;
  word-break: break-word;
}







