/* ================================
   USER DROPDOWN STYLES
   ================================ */

.user-status {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

/* Dropdown del Usuario */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-radius: 2px;
}

.user-profile-info {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 4px;
}

.user-email {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.user-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-type-badge.free {
  background: #e2e8f0;
  color: #4a5568;
}

.user-type-badge.registered {
  background: #bee3f8;
  color: #2c5282;
}

.user-type-badge.premium {
  background: #fbb6ce;
  color: #97266d;
}

.user-type-badge.admin {
  background: #9ae6b4;
  color: #22543d;
}

.user-menu {
  padding: 8px 0;
}

.user-menu-item {
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: #4a5568;
}

.user-menu-item:hover {
  background: #f7fafc;
  color: #2d3748;
}

.user-menu-item .icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.user-menu-item .text {
  flex: 1;
  text-align: left;
}

.user-menu-item#logout-btn:hover {
  background: #fed7d7;
  color: #c53030;
}

.user-usage-info {
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid #e9ecef;
}

.usage-item {
  margin-bottom: 12px;
}

.usage-item:last-child {
  margin-bottom: 0;
}

.usage-label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.usage-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.usage-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.usage-progress.warning {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.usage-progress.danger {
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
}

.usage-text {
  font-size: 0.8rem;
  color: #6c757d;
  float: right;
}

/* Dark theme adjustments */
body.theme-dark .user-dropdown {
  background: #2d3748;
  color: #e2e8f0;
}

body.theme-dark .user-dropdown::before {
  background: #2d3748;
}

body.theme-dark .user-name {
  color: #e2e8f0;
}

body.theme-dark .user-email {
  color: #a0aec0;
}

body.theme-dark .user-menu-item {
  color: #a0aec0;
}

body.theme-dark .user-menu-item:hover {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .user-usage-info {
  background: #1a202c;
  border-color: #4a5568;
}

/* Light theme adjustments */
body.theme-light .user-dropdown {
  background: #f8f9fa;
  color: #2d3748;
}

body.theme-light .user-dropdown::before {
  background: #f8f9fa;
}

/* Rosa theme adjustments */
body.theme-rosa .user-dropdown {
  background: #fdf2f8;
  color: #2d3748;
}

body.theme-rosa .user-dropdown::before {
  background: #fdf2f8;
}

body.theme-rosa .user-type-badge.premium {
  background: #f3e8ff;
  color: #6b46c1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-dropdown {
    min-width: 280px;
    right: -10px;
  }
  
  .user-dropdown::before {
    right: 30px;
  }
  
  .user-profile-info {
    padding: 16px;
  }
  
  .user-menu-item {
    padding: 10px 16px;
  }
  
  .user-usage-info {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .user-dropdown {
    min-width: 250px;
    right: -20px;
  }
  
  .user-dropdown::before {
    right: 40px;
  }
  
  .user-profile-info {
    padding: 12px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .user-menu-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .user-usage-info {
    padding: 10px 12px;
  }
} 