/**
 * DiveLog Application Styles
 * Custom CSS for the dive logging application
 */

:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --ocean-blue: #1a73e8;
  --deep-blue: #084298;
  --aqua: #0dcaf0;
  --coral: #ff7f50;
}

/* General styles */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f5f8fa;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
}

/* Navigation bar */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}

/* Stat cards on dashboard */
.stat-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dive list items */
.dive-list-item {
  transition: background-color 0.2s ease;
  border-left: 4px solid transparent;
}

.dive-list-item:hover {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
}

.dive-location {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dive-date {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

.dive-depth {
  font-weight: 700;
  color: var(--deep-blue);
}

.star-rating {
  color: var(--warning-color);
  font-size: 0.85rem;
}

/* Location cards */
.location-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 200px;
}

.location-card:hover {
  transform: translateY(-5px);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  padding: 1.5rem 1rem 1rem;
  color: white;
}

.location-card-title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.location-card-dive-count {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Forms */
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.form-section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Dive details page */
.dive-details-header {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dive-detail-location {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dive-detail-date {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.dive-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.dive-attribute {
  display: flex;
  align-items: center;
}

.dive-attribute-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.dive-attribute-value {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.dive-attribute-label {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

/* Chart containers */
.chart-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  height: 350px;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

/* Footer */
footer {
  margin-top: 3rem;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer h5, footer h6 {
  color: #fff;
  margin-bottom: 1.25rem;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

footer .fab {
  font-size: 1.25rem;
}

/* Equipment list */
.equipment-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.equipment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.equipment-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.equipment-type {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.equipment-details li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.equipment-service-due {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 1rem;
}

.service-due-soon {
  background-color: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.service-due-overdue {
  background-color: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.service-due-ok {
  background-color: rgba(25, 135, 84, 0.2);
  color: #155724;
}

/* Profile page */
.profile-header {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-certification {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.profile-stats {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-stats-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--dark-color);
}

/* Media queries */
@media (max-width: 767.98px) {
  .stat-card {
    margin-bottom: 1rem;
  }
  
  .dive-attribute {
    margin-bottom: 1rem;
  }
  
  .chart-container {
    height: 300px;
  }
  
  .profile-header {
    text-align: center;
  }
  
  .profile-avatar {
    margin: 0 auto 1rem;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .no-print {
    display: none !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  body {
    background-color: #fff;
  }
  
  .chart-container {
    break-inside: avoid;
  }
  
  .dive-details-header {
    box-shadow: none;
    border: 1px solid #ddd;
  }
} 