* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 10px;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 400px;
  width: 100%;
}

.login-card h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.error-msg {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

/* Dashboard */
.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.container.small {
  max-width: 600px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.header h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome {
  color: #764ba2;
  font-weight: bold;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 20px;
  text-decoration: none;
  color: #667eea;
  font-weight: bold;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Table */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 15px;
  padding: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

th {
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: bold;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

/* Status Badges */
.status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85em;
}

.status-pending {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
}

.status-success {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: #0f4c3a;
}

.status-failed {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

/* Form Elements */
label {
  display: block;
  color: #667eea;
  font-weight: bold;
  margin: 15px 0 5px 0;
}

input, select {
  width: 100%;
  padding: 12px;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
}

input:focus, select:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn.secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn.secondary:hover {
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.btn-small {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85em;
  display: inline-block;
  margin: 2px;
  transition: all 0.2s;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.btn-small.secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Code Blocks */
.code {
  background: rgba(102, 126, 234, 0.1);
  padding: 5px 10px;
  border-radius: 8px;
  color: #667eea;
  font-weight: bold;
  border: 2px solid #667eea;
  display: inline-block;
  font-family: 'Courier New', monospace;
}

.code-small {
  background: rgba(102, 126, 234, 0.1);
  padding: 3px 8px;
  border-radius: 5px;
  color: #667eea;
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
}

.card {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card p {
  margin: 10px 0;
  line-height: 1.8;
}

.footer-actions {
  margin-top: 20px;
  text-align: center;
}

.actions {
  white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header h1 {
    font-size: 1.5em;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  table {
    font-size: 0.85em;
  }
  
  th, td {
    padding: 8px;
  }
  
  .btn {
    width: 100%;
    margin: 5px 0;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .login-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .filters {
    flex-direction: column;
  }
  
  .filter-btn {
    text-align: center;
  }
  
  table {
    font-size: 0.75em;
  }
  
  th, td {
    padding: 6px;
  }
  
  .actions {
    display: flex;
    flex-direction: column;
  }
}
