/* Styles spécifiques à l'interface d'administration */

/* Login Section */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-medium) 100%);
}

.login-container {
  max-width: 500px;
  width: 100%;
  background: linear-gradient(145deg, var(--background-light), var(--background-medium));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.login-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  background: rgba(255, 0, 64, 0.1);
  border-bottom: 1px solid rgba(255, 0, 64, 0.2);
}

.login-header h1 {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-form {
  padding: 2rem;
}

.login-info {
  padding: 1.5rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-info h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.login-info ul {
  list-style: none;
  padding: 0;
}

.login-info li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.login-info li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Dashboard */
.admin-dashboard {
  padding-top: 80px;
}

.dashboard-header {
  padding: 2rem 0;
  background: var(--background-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.dashboard-title h1 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary-color), #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Dashboard Stats */
.dashboard-stats {
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: linear-gradient(145deg, var(--background-light), var(--background-medium));
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 64, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 64, 0.3);
}

.stat-content h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* NFT Management */
.nft-management {
  padding: 3rem 0;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.management-header h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: var(--text-primary);
}

.management-controls {
  display: flex;
  gap: 1rem;
}

.search-input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 0, 64, 0.1);
}

.filter-select {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}

/* NFTs Table */
.nfts-table-container {
  background: linear-gradient(145deg, var(--background-light), var(--background-medium));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.nfts-table {
  width: 100%;
  border-collapse: collapse;
}

.nfts-table th {
  background: rgba(255, 0, 64, 0.1);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-primary);
}

.nfts-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.nfts-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.nft-preview {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-small);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.nft-name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-id {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nft-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn-small {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn-small:hover {
  background: rgba(255, 0, 64, 0.2);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.action-btn-small.edit {
  color: #4ecdc4;
}

.action-btn-small.edit:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
}

.action-btn-small.delete {
  color: #ff6b6b;
}

.action-btn-small.delete:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
}

/* No NFTs Message */
.no-nfts-message {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, var(--background-light), var(--background-medium));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-nfts-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-nfts-message h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.no-nfts-message p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--background-medium);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content.large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 0, 64, 0.05);
}

.modal-header h3 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-body {
  padding: 1.5rem;
}

/* Form Styles */
.nft-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section h4 {
  font-family: var(--font-primary);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 0, 64, 0.1);
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Attributes */
.attribute-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.remove-attribute-btn {
  padding: 0.5rem;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid #ff6b6b;
  border-radius: var(--border-radius-small);
  color: #ff6b6b;
  cursor: pointer;
  transition: var(--transition);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-attribute-btn:hover {
  background: #ff6b6b;
  color: white;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Error Messages */
.error-message {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  padding: 1rem;
  border-radius: var(--border-radius-small);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.success-message {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid #4ecdc4;
  color: #4ecdc4;
  padding: 1rem;
  border-radius: var(--border-radius-small);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.loading-spinner-small {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 0, 64, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .management-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .management-controls {
    width: 100%;
    flex-direction: column;
  }
  
  .search-input {
    min-width: auto;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .nfts-table-container {
    overflow-x: auto;
  }
  
  .nfts-table {
    min-width: 600px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .attribute-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    max-height: 95vh;
  }
}

@media (max-width: 480px) {
  .login-container {
    margin: 1rem;
  }
  
  .login-form,
  .login-info {
    padding: 1.5rem;
  }
  
  .dashboard-title h1 {
    font-size: 2rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .table-actions {
    flex-direction: column;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-dashboard {
  animation: fadeInUp 0.6s ease-out;
}

/* Validation States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #4ecdc4;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.field-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

