* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: #0a0e14;
  color: #e0e8f0;
  min-height: 100vh;
  padding: 1.5rem;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(20, 28, 40, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand i {
  color: #5865f2;
  font-size: 2rem;
}

.badges {
  display: flex;
  gap: 0.8rem;
}

.badge {
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.green {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.badge.green i {
  font-size: 0.6rem;
  margin-right: 0.4rem;
}

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

.stat {
  background: rgba(20, 28, 40, 0.6);
  backdrop-filter: blur(10px);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat i {
  font-size: 2rem;
  color: #5865f2;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 12px;
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  color: #fff;
}

.stat .label {
  font-size: 0.85rem;
  color: #8899bb;
}

.upload-box {
  background: rgba(20, 28, 40, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px dashed rgba(88, 101, 242, 0.3);
}

.dropzone {
  text-align: center;
  padding: 2rem;
}

.dropzone i {
  font-size: 3rem;
  color: #5865f2;
  margin-bottom: 1rem;
}

.dropzone h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.dropzone p {
  color: #8899bb;
  margin-bottom: 1.5rem;
}

.dropzone input[type="file"] {
  display: none;
}

.btn {
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn.primary {
  background: #5865f2;
  color: white;
}

.btn.primary:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.btn.success {
  background: #2ecc71;
  color: white;
}

.btn.success:hover {
  background: #27ae60;
}

.btn.danger {
  background: #e74c3c;
  color: white;
}

.btn.danger:hover {
  background: #c0392b;
}

.btn.outline {
  background: transparent;
  color: #aabbdd;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn.small {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
}

.info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8899bb;
  font-size: 0.9rem;
}

.info i {
  color: #5865f2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(20, 28, 40, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
}

.card-status {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.card-status.online {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.card-status.offline {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.card-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.card-lang {
  color: #8899bb;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8899bb;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 45px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #141c28;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.modal-header h3 {
  color: #e0e8f0;
}

.close {
  background: none;
  border: none;
  color: #8899bb;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-body pre {
  background: #0a0e14;
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #aabbdd;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #8899bb;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e0e8f0;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #5865f2;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #8899bb;
}

.loading i {
  font-size: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.status-dot.online {
  background: #2ecc71;
  animation: pulse 2s infinite;
}

.status-dot.offline {
  background: #e74c3c;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .info {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .card-actions .btn {
    flex: 0 1 auto;
  }
}
