/* ============================================================
   FALAYN - AI-Powered Recruitment Platform
   Beautiful Dark Theme with Purple, Violet, Gold, Ivory
   ============================================================ */

* {
  scroll-behavior: smooth;
}

/* Dot Status Indicator */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s infinite;
}

.dot.green {
  background-color: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.dot.red {
  background-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  border-color: rgba(168, 85, 247, 0.6);
}

/* File Input Styling */
input[type="file"] {
  cursor: pointer;
}

/* Checkbox Styling */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: #a855f7;
}

/* Button Hover Effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Section Containers */
.section-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.section-box:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
}

/* Skill Tags */
.skill-tag {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 146, 60, 0.2) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 146, 60, 0.3) 100%);
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

/* Language Badges */
.language-badge {
  background: linear-gradient(135deg, rgba(34, 197, 234, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(34, 197, 234, 0.3);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.language-badge:hover {
  background: linear-gradient(135deg, rgba(34, 197, 234, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  border-color: rgba(34, 197, 234, 0.5);
}

/* Certification Badge */
.cert-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.cert-badge:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Progress Bar Animation */
#progressBar {
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Success Message Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#success {
  animation: slideInUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-box {
    padding: 16px;
  }
  
  button {
    font-size: 16px;
    padding: 12px 24px;
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #fbbf24 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Backdrop Blur */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Edit Button - Enhanced */
.edit-btn {
  font-size: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.edit-btn:hover {
  background-color: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.6);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.edit-btn:active {
  transform: scale(0.95);
}

/* Ivory Color Accents */
.ivory-text {
  color: #f5f5f0;
}

.ivory-bg {
  background-color: rgba(245, 245, 240, 0.05);
}

.ivory-border {
  border-color: rgba(245, 245, 240, 0.2);
}

/* Enhanced Section Boxes with Ivory */
.section-box-enhanced {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(245, 245, 240, 0.02) 100%);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.section-box-enhanced:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.05);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(245, 245, 240, 0.08) 100%);
  transform: translateY(-2px);
}

/* Experience Section Box */
div[class*="from-purple-500/20"] {
  border: 2px solid rgba(168, 85, 247, 0.35) !important;
  transition: all 0.3s ease;
  position: relative;
}

div[class*="from-purple-500/20"]:hover {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2), inset 0 0 20px rgba(168, 85, 247, 0.08) !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(245, 245, 240, 0.08) 100%) !important;
  transform: translateY(-2px);
}

/* Education Section Box */
div[class*="from-indigo-500/20"] {
  border: 2px solid rgba(99, 102, 241, 0.35) !important;
  transition: all 0.3s ease;
  position: relative;
}

div[class*="from-indigo-500/20"]:hover {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2), inset 0 0 20px rgba(99, 102, 241, 0.08) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(245, 245, 240, 0.08) 100%) !important;
  transform: translateY(-2px);
}

/* Projects Section Box */
div[class*="from-cyan-500/20"] {
  border: 2px solid rgba(6, 182, 212, 0.35) !important;
  transition: all 0.3s ease;
  position: relative;
}

div[class*="from-cyan-500/20"]:hover {
  border-color: rgba(6, 182, 212, 0.6) !important;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.08) !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(245, 245, 240, 0.08) 100%) !important;
  transform: translateY(-2px);
}

/* Ivory Success Message */
.success-message {
  background: linear-gradient(135deg, rgba(34, 197, 234, 0.1) 0%, rgba(245, 245, 240, 0.05) 100%);
  border: 2px solid rgba(245, 245, 240, 0.3);
  border-radius: 16px;
  padding: 32px;
}

/* Text visibility fix */
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
  color: #ffffff !important;
}

textarea::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder {
  color: rgba(168, 85, 247, 0.7) !important;
}

/* Editable Section Indicator */
.editable-section {
  position: relative;
  overflow: hidden;
}

.editable-section::before {
  content: '✏️ Editable';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.editable-section:hover::before {
  opacity: 1;
}

/* Input Focus Enhancement */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
  background-color: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3) !important;
}
