* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container h1 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #00d9ff;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 350px;
}

#loginForm input {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: #16213e;
  color: #fff;
}

#loginForm input::placeholder {
  color: #888;
}

#loginForm button {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: #00d9ff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

#loginForm button:hover {
  background: #00b8d9;
}

.error {
  color: #ff4757;
  margin-top: 10px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
}

header h1 {
  font-size: 1.5rem;
  color: #00d9ff;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.settings-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #0f3460;
  color: #00d9ff;
  cursor: pointer;
  font-weight: bold;
}

.settings-btn:hover {
  background: #1a4a7a;
}

#logoutBtn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #ff4757;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.success {
  color: #2ed573;
  margin-top: 10px;
}

/* Content */
.content {
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.view h2 {
  margin-bottom: 20px;
  color: #00d9ff;
}

/* Boards Grid */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.board-card {
  background: #16213e;
  border-radius: 12px;
  padding: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.board-card:hover {
  transform: translateY(-5px);
  border-color: #00d9ff;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.board-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.board-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.board-card .stats {
  color: #888;
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.back-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #0f3460;
  color: #00d9ff;
  cursor: pointer;
  font-size: 14px;
}

.back-btn:hover {
  background: #1a4a7a;
}

.breadcrumb span {
  font-size: 1.2rem;
  color: #888;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #00d9ff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

.add-btn:hover {
  background: #00b8d9;
}

/* Groups List */
.groups-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-card {
  background: #16213e;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.group-card:hover {
  background: #1a4a7a;
}

.group-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.group-info p {
  color: #888;
  font-size: 0.9rem;
}

.group-actions {
  display: flex;
  gap: 10px;
}

.delete-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #ff4757;
  color: #fff;
  cursor: pointer;
}

/* Images List */
.images-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.image-card {
  background: #16213e;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-info {
  flex: 1;
}

.image-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  word-break: break-all;
}

.image-info .meta {
  color: #888;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.image-actions {
  display: flex;
  gap: 10px;
}

.download-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #00d9ff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.download-btn:hover {
  background: #00b8d9;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #16213e;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #00d9ff;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content input,
.modal-content textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  background: #0f3460;
  color: #fff;
}

.modal-content textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.cancel-btn {
  background: #444;
  color: #fff;
}

.modal-buttons button[type="submit"] {
  background: #00d9ff;
  color: #000;
}

/* Progress */
.progress {
  background: #0f3460;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  height: 30px;
}

.progress-bar {
  height: 100%;
  background: #00d9ff;
  width: 0%;
  transition: width 0.3s;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px;
  color: #888;
}
