/* Custom styles for Kotak Mahindra Bank Technical Analysis */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header styles */
header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.navbar-brand {
  font-weight: 700;
}

/* Card styles */
.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-weight: 600;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Progress bars */
.progress {
  height: 25px;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.progress-bar {
  font-weight: 600;
}

/* Price and indicator values */
.display-6 {
  font-size: 1.8rem;
}

/* Responsive images */
.img-fluid {
  border-radius: 5px;
  max-width: 100%;
  height: auto;
}

/* Section styling */
section {
  padding: 3rem 0;
}

section:nth-child(even) {
  background-color: #f8f9fa;
}

/* Footer */
footer {
  background-color: #212529;
  color: #fff;
  padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Animation for price targets */
@keyframes highlight {
  0% { background-color: rgba(25, 135, 84, 0); }
  50% { background-color: rgba(25, 135, 84, 0.2); }
  100% { background-color: rgba(25, 135, 84, 0); }
}

.price-target {
  animation: highlight 2s ease-in-out infinite;
  padding: 0.25rem;
  border-radius: 4px;
}

/* Tooltip styling */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Indicator badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

/* Table styling */
.table-indicators {
  width: 100%;
}

.table-indicators th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.table-indicators td {
  vertical-align: middle;
}

/* Print styles */
@media print {
  .navbar, footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .img-fluid {
    max-width: 100% !important;
    height: auto !important;
  }
}
