:root {
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --text-main: #000000;
  --text-muted: #666666;
  --accent: #000000;
  --border: #000000;
  --radius: 12px;
}

* {
  box-sizing: border_box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.center-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 2px solid #000;
  width: 100%;
  margin-bottom: 30px;
}
.auth-card {
  max-width: 400px;
  text-align: center;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
p {
  color: var(--text-muted);
  line-height: 1.6;
}
a {
  color: var(--text-main);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #000;
}
input:focus {
  outline: none;
  background: #f9f9f9;
}

.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}
.btn:hover {
  background: #333;
}
.btn-block {
  width: 100%;
}
.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}
.btn-outline:hover {
  background: #f0f0f0;
}

.btn-retry {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}
.btn-retry:hover {
  background: #000;
  color: #fff;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
}

th {
  text-align: left;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 0 15px;
}

td {
  background: white;
  padding: 20px;
  vertical-align: middle;

  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;

  border-right: 2px solid #000 !important;

  border-radius: 12px !important;
}

tr td:first-child {
  border-left: 2px solid #000;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

tr td:nth-child(4) {
  border-right: 2px solid #000;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

tr td:nth-child(5) {
  background: transparent;
  border: none;
  padding-left: 15px;
  width: 50px;
}

.btn-delete-text {
  display: inline-block;

  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;

  background: #ff3b30;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.btn-delete-text:hover {
  transform: scale(1.05);
  background: #d00;
}

.text-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #333;
  line-height: 1.5em;
  max-height: 3em;
  margin-bottom: 8px;
  max-width: 400px;
}

.view-all-link {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}
.view-all-link:hover {
  color: #000;
}

.badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #000;
}
.local {
  background: #eee;
  color: #000;
  border-color: #000;
}
.cloud {
  background: #000;
  color: #fff;
  border-color: #000;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}
.modal-text-box {
  background: #f9f9f9;
  padding: 20px;
  border: 2px solid #000;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 13px;
  margin: 20px 0;
  white-space: pre-wrap;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
}
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.btn-delete {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: 0.2s;
}

.btn-delete:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  cursor: pointer;
}
