/* =========================================
   Admin Panel CSS — Complete
========================================= */

.admin-hidden {
  display: none !important;
}

/* ==================== ADMIN TOOLBAR ==================== */
#admin-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.admin-toolbar-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ==================== MODALS ==================== */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.admin-modal-content {
  background: #111;
  width: 400px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.admin-modal-content.admin-large {
  width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.admin-modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.admin-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.admin-close:hover {
  color: white;
}

.admin-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.admin-modal-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: flex-end;
}

/* ==================== FORM ELEMENTS ==================== */
.admin-form-group {
  margin-bottom: 15px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #aaa;
}

.admin-input {
  width: 100%;
  background: #222;
  border: 1px solid #333;
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.admin-input:focus {
  outline: none;
  border-color: #555;
  background: #2a2a2a;
}

textarea.admin-input {
  resize: vertical;
  min-height: 80px;
}

/* ==================== BUTTONS ==================== */
.admin-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-btn.primary {
  background: #256CF9;
  color: white;
}

.admin-btn.primary:hover {
  background: #1b53c7;
}

.admin-btn.secondary {
  background: #333;
  color: white;
}

.admin-btn.secondary:hover {
  background: #444;
}

.admin-btn.danger {
  background: #dc3545;
  color: white;
}

.admin-btn.danger:hover {
  background: #b02a37;
}

/* ==================== ADMIN PROJECT CONTROLS ==================== */
.admin-project-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.admin-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ==================== DRAG & DROP ZONE ==================== */
.drop-zone {
  border: 2px dashed #444;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  background: #1a1a1a;
}

.drop-zone:hover {
  border-color: #666;
  background: #222;
  color: #aaa;
}

.drop-zone.drag-over {
  border-color: #256CF9;
  background: rgba(37, 108, 249, 0.1);
  color: #256CF9;
}

.drop-zone-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.drop-zone-text {
  font-size: 0.9rem;
}

.drop-zone-sub {
  font-size: 0.75rem;
  color: #555;
  margin-top: 5px;
}

/* ==================== IMAGE PREVIEWS ==================== */
#image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview-wrapper {
  position: relative;
  display: inline-block;
}

.image-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
}

.image-remove-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

.image-remove-btn:hover {
  transform: scale(1.1);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.admin-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #111;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin-toast-show {
  transform: translateX(0);
  opacity: 1;
}

.admin-toast-success {
  border-left: 3px solid #28a745;
}

.admin-toast-error {
  border-left: 3px solid #dc3545;
}

.admin-toast-info {
  border-left: 3px solid #256CF9;
}

.admin-toast-icon {
  font-size: 1.1rem;
  font-weight: bold;
}

.admin-toast-success .admin-toast-icon {
  color: #28a745;
}

.admin-toast-error .admin-toast-icon {
  color: #dc3545;
}

.admin-toast-info .admin-toast-icon {
  color: #256CF9;
}

.admin-toast-msg {
  flex: 1;
}
