/* Admin Panel Styles */
:root {
  --primary-color: #4296d2;
  --secondary-color: #2f6d99;
  --success-color: #4CAF50;
  --danger-color: #f44336;
  --warning-color: #ff9800;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --background-color: #f5f7fa;
  --card-background: #fff;
  --sidebar-width: 250px;
  --header-height: 60px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  background: #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(66, 150, 210, 0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  text-shadow: 0 0 10px rgba(66, 150, 210, 0.5);
}

.nav-logo a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(66, 150, 210, 0.8);
}

.admin-footer {
  background: #000;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(66, 150, 210, 0.2);
  margin-top: 40px;
}

.footer-content p {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Login Form */
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-container {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Dashboard Layout */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.dashboard.hidden {
  display: none;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 1.8rem;
  color: var(--text-color);
}

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

/* Content Sections */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(66, 150, 210, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.stat-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stat-content h3 {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.stat-content p {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-container {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Tables */
.table-container {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  table-layout: fixed;
  margin: 0 auto;
}

.data-table th,
.data-table td {
  padding: 1.2em 1em;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  word-break: break-word;
}

.data-table th {
  background: rgba(66, 150, 210, 0.1);
  font-weight: 600;
  color: var(--text-color);
}

.data-table td.wallet-address, .data-table th.wallet-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.data-table td.actions, .data-table th.actions {
  min-width: 70px;
  width: 5%;
  text-align: center;
  white-space: nowrap;
  padding-right: 0.5em;
}

.data-table tbody tr:hover {
  background: rgba(66, 150, 210, 0.05);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-input {
  width: 300px;
}

/* Settings Form */
.settings-form {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.setting-group {
  margin-bottom: 2rem;
}

.setting-group h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Activity Feed */
.activity-feed {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.activity-list {
  max-height: 600px;
  overflow-y: auto;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

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

.btn-secondary {
  background: #f0f0f0;
  color: var(--text-color);
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #d32f2f;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

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

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.close-modal:hover {
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }

  .sidebar-nav li span {
    display: none;
  }

  .main-content {
    margin-left: 60px;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .search-input {
    width: 200px;
  }
}

@media (max-width: 900px) {
  .main-content {
    max-width: 100vw;
    padding: 0.5rem;
  }
  .data-table th, .data-table td {
    padding: 0.7em 0.5em;
  }
  .data-table td.wallet-address, .data-table th.wallet-address {
    max-width: 120px;
  }
}

/* Utility Classes */
.error-message {
  color: var(--danger-color);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.success-message {
  color: var(--success-color);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.hidden {
  display: none !important;
} 