/* DNAR Complete UI Overhaul - Iterations 4-10 */
/* This file contains the complete UI transformation to match classic DNA Romance look */

:root {
  /* DNA Romance Brand Colors */
  --dnar-pink: #f72c93;
  --dnar-blue: #0f75bd;
  --dnar-dark: #050505;
  --dnar-light: #f8f9fa;
  --dnar-gradient: linear-gradient(135deg, #0f75bd 0%, #f72c93 100%);
}

/* ITERATION 4: Typography & Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #222;
}

a {
  color: var(--dnar-pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dnar-blue);
}

/* ITERATION 5: Forms & Input Styling */
.form-control,
.form-select {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dnar-pink);
  box-shadow: 0 0 0 0.25rem rgba(247, 44, 147, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--dnar-pink);
  border-color: var(--dnar-pink);
}

/* ITERATION 6: Dashboard & Profile Improvements */
.dashboard-container {
  background: var(--dnar-light);
  min-height: 100vh;
  padding: 30px 0;
}

.dashboard-sidebar {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.sidebar-profile {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.sidebar-profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid var(--dnar-pink);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #666;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--dnar-gradient);
  color: white;
}

.sidebar-nav i {
  margin-right: 12px;
  font-size: 18px;
}

/* ITERATION 7: Modal & Popup Styling */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  background: var(--dnar-gradient);
  color: white;
  border: none;
  padding: 20px 30px;
}

.modal-title {
  font-weight: 700;
  font-size: 20px;
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding: 20px 30px;
}

/* ITERATION 8: Table & List Improvements */
.table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.table thead th {
  background: var(--dnar-gradient);
  color: white;
  border: none;
  padding: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: rgba(247, 44, 147, 0.05);
}

.table td {
  padding: 15px;
  vertical-align: middle;
  border-color: #f0f0f0;
}

/* ITERATION 9: Alert & Notification Styling */
.alert {
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.notification-badge {
  position: relative;
  display: inline-block;
}

.notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--dnar-pink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ITERATION 10: Final Polish & Animations */
.page-transition {
  animation: pageLoad 0.5s ease-out;
}

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

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 44, 147, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(247, 44, 147, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 44, 147, 0);
  }
}

/* Progress bars */
.progress {
  height: 8px;
  border-radius: 4px;
  background: #f0f0f0;
  overflow: hidden;
}

.progress-bar {
  background: var(--dnar-gradient);
  transition: width 0.6s ease;
}

/* Tooltips */
.tooltip-inner {
  background: var(--dnar-dark);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--dnar-gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dnar-pink);
}

/* Footer improvements */
footer {
  background: var(--dnar-dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

footer h5 {
  color: var(--dnar-pink);
  font-weight: 700;
  margin-bottom: 20px;
}

footer a {
  color: #ccc;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

/* Mobile menu improvements */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 0 0 16px 16px;
    margin-top: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print styles */
@media print {
  .no-print,
  .navbar,
  .sidebar,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
*:focus {
  outline: 2px dashed var(--dnar-pink);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 3px solid var(--dnar-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .form-control,
  .form-select {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}