/* Import Google Fonts for futuristic look */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Exo+2:wght@300;400;600&display=swap');

/* Base styles for sci-fi theme */
:root {
  --primary: #0ff;
  --secondary: #f0f;
  --accent: #00f7ff;
  --dark: #0a0a1a;
  --darker: #050510;
  --light: #e0e0ff;
  --success: #00ff9d;
  --warning: #ffcc00;
  --error: #ff3860;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Exo 2', sans-serif;
  background: linear-gradient(135deg, var(--darker), #1a1a2e);
  color: var(--light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 20%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Glowing text effect */
.glow {
  text-shadow: 
    0 0 5px var(--primary),
    0 0 10px var(--primary),
    0 0 15px var(--primary),
    0 0 20px var(--accent);
}

/* Container with glassmorphism effect */
.container {
  max-width: 1200px;
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: rotate 20s linear infinite;
}

/* Header styling */
header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

/* Section styling */
.section {
  background: rgba(10, 10, 30, 0.5);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  transition: var(--transition);
}

.section:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  transform: translateY(-5px);
}

.section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}

/* Form styling */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--light);
}

input[type="text"] {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--light);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

input[type="text"]::placeholder {
  color: rgba(224, 224, 255, 0.5);
}

/* Button styling */
button {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--darker);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent);
}

button:active {
  transform: scale(0.95);
}

/* Logout button specific styling */
#welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

#welcome h2 {
  margin: 0;
  font-size: 1.5rem;
}

#logout-btn {
  background: linear-gradient(45deg, #ff3860, #f0f);
  color: white;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ID Cards container */
.id-cards-container h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}

/* ID Card styling */
.id-card {
  background: rgba(10, 10, 30, 0.7);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.id-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.id-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.id-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--light);
  text-align: center;
}

/* Upload area styling */
.upload-area {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  border: 2px dashed var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 255, 0.05);
}

.upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px var(--accent);
}

.upload-text {
  padding: 20px;
}

.upload-text p {
  margin: 5px 0;
  color: var(--light);
}

.file-info {
  font-size: 0.8rem;
  color: rgba(224, 224, 255, 0.7);
}

/* Image preview */
.id-preview {
  max-width: 100%;
  max-height: 100%;
  display: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* File input (hidden) */
.file-input {
  display: none;
}

/* Save button */
.save-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

/* Hidden class */
.hidden {
  display: none;
}

/* Animation for background */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 20px;
  }
  
  #welcome {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Additional futuristic elements */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
  }
}

/* Grid layout for ID cards */
.id-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* Enhanced ID card styling */
.id-card-enhanced {
  background: rgba(10, 10, 30, 0.7);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.id-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.id-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.id-card-enhanced h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--light);
  text-align: center;
}

/* Preview gallery for multiple images */
.preview-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.preview-gallery img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.preview-gallery img:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Add photo button */
.add-photo-btn {
  background: rgba(0, 255, 255, 0.1);
  border: 1px dashed var(--primary);
  color: var(--primary);
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.add-photo-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: scale(1.05);
}
