/* Bootstrap 5 Custom Styles for Rosecoco Platform */

/* Import Bootstrap Icons */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css');

/* Import Bootstrap 5 */
@import 'bootstrap/dist/css/bootstrap.min.css';

/* Custom CSS Variables */
:root {
  --rose-primary: #ec4899;
  --rose-primary-dark: #db2777;
  --rose-secondary: #8b5cf6;
  --rose-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --rose-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  --rose-shadow-hover: 0 6px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--rose-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rose-primary-dark);
}

/* Enhanced Card Styles */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--rose-shadow);
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  box-shadow: var(--rose-shadow-hover);
}

/* Button Enhancements */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--rose-gradient);
  border: none;
}

.btn-primary:hover {
  background: var(--rose-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-success {
  background-color: #10b981;
  border-color: #10b981;
}

.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5em 0.8em;
}

.badge.bg-primary {
  background: var(--rose-gradient) !important;
}

/* Alert Enhancements */
.alert {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--rose-shadow);
}

.alert-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
}

.alert-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

/* Navigation Enhancements */
.nav-pills .nav-link {
  border-radius: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background: var(--rose-gradient);
  color: white;
}

.nav-pills .nav-link:hover:not(.active) {
  background-color: rgba(236, 72, 153, 0.1);
  color: var(--rose-primary);
}

/* Form Enhancements */
.form-control {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 0.2rem rgba(236, 72, 153, 0.25);
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Progress Bars */
.progress {
  border-radius: 10px;
  height: 8px;
  background-color: #e5e7eb;
}

.progress-bar {
  background: var(--rose-gradient);
  border-radius: 10px;
}

/* Offcanvas Enhancements */
.offcanvas {
  border: none;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
  background: var(--rose-gradient);
  color: white;
}

.offcanvas-header .btn-close {
  filter: brightness(0) invert(1);
}

/* List Group Enhancements */
.list-group-item {
  border: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background-color: #f9fafb;
}

.list-group-item.active {
  background: var(--rose-gradient);
  border-color: var(--rose-primary);
}

/* Utility Classes */
.bg-gradient {
  background: var(--rose-gradient) !important;
}

.text-gradient {
  background: var(--rose-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: var(--rose-shadow) !important;
}

.shadow-custom-hover:hover {
  box-shadow: var(--rose-shadow-hover) !important;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.slide-up {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  h4, h5, h6 {
    line-height: 1.3;
  }
}

/* Custom Components */

/* Profile Avatar */
.profile-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--rose-shadow);
}

/* Usage Stats */
.usage-stat {
  background: white;
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.usage-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--rose-shadow);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state .empty-icon i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

/* Loading Spinner */
.spinner-border-primary {
  color: var(--rose-primary);
}

/* Status Indicators */
.status-online {
  color: #10b981;
}

.status-offline {
  color: #6b7280;
}

.status-away {
  color: #f59e0b;
}

/* Review Stars */
.review-stars {
  color: #fbbf24;
}

.review-stars .bi-star-fill {
  color: #f59e0b;
}

/* Availability Status */
.availability-available {
  color: #10b981;
}

.availability-unavailable {
  color: #ef4444;
}

/* Offer Status */
.offer-status-pending {
  background: #fbbf24;
  color: #78350f;
}

.offer-status-accepted {
  background: #10b981;
  color: white;
}

.offer-status-declined {
  background: #ef4444;
  color: white;
}

/* Message Bubbles */
.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1.5rem;
  margin-bottom: 0.5rem;
}

.message-bubble.sent {
  background: var(--rose-gradient);
  color: white;
  margin-left: auto;
}

.message-bubble.received {
  background: #f3f4f6;
  color: #374151;
  margin-right: auto;
}

/* Verification Badge */
.verification-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-size: 0.75rem;
}

/* Safe Area Insets for Mobile */
@supports (padding: max(0px)) {
  .safe-top {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  
  .safe-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}