.manager-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 100px;
}

/* Login Screen */
.manager-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.login-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-box h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
}

.login-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-box input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 16px;
}

.login-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-box button {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-box button:hover {
  background: var(--accent-hover);
}

.error-msg {
  color: #ff4444;
  font-size: 14px;
  margin-top: 12px;
}

/* Dashboard */
.manager-dashboard {
  padding-top: 20px;
}

.manager-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-btn:hover {
  color: var(--text-primary);
}

/* Form */
.tab-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Image Preview */
.images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.preview-item .thumbnail-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.upload-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.publish-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  margin-top: 24px;
}

.publish-btn svg {
  width: 20px;
  height: 20px;
}

.publish-btn:hover {
  background: var(--accent-hover);
}

.publish-btn:disabled {
  background: var(--bg-tertiary);
  cursor: not-allowed;
}

.publish-status {
  margin-top: 12px;
  font-size: 14px;
}

/* Posts List */
.posts-list {
  display: grid;
  gap: 12px;
}

.post-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.post-item-info {
  flex: 1;
}

.post-item-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.post-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.post-item-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: var(--bg-primary);
}

.action-btn.delete {
  color: #ff4444;
}

.action-btn.delete:hover {
  background: #ff4444;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .manager-container {
    padding: 16px 16px 100px;
  }
  
  .login-box {
    padding: 32px 24px;
  }
  
  .tab-content {
    padding: 20px;
  }
  
  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-item-actions {
    width: 100%;
  }
  
  .action-btn {
    flex: 1;
  }
}
