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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Hero section on home page */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 0.5rem;
}

/* Card styling */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Chart placeholders */
.chart-placeholder, .memo-placeholder, .table-placeholder {
    border-radius: 0.375rem;
    border: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #f8f9fa;
}

/* Button styling */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid #dee2e6;
}

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

/* Search results dropdown */
#searchResults, #tickerResults {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Animation for growth */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

/* For printing the memo PDF */
@media print {
    .navbar, .footer, .btn, form {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .watermark {
        display: block !important;
    }
}
/* Custom slider dot styling */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important; /* Increased from default */
  height: 20px !important; /* Increased from default */
  background: #0d6efd !important; /* Bootstrap primary blue */
  border-radius: 50% !important;
  cursor: pointer !important;
}

.slider::-moz-range-thumb {
  width: 20px !important; /* Increased from default */
  height: 20px !important; /* Increased from default */
  background: #0d6efd !important; /* Bootstrap primary blue */
  border-radius: 50% !important;
  cursor: pointer !important;
}

/* Table header styling for screener page */
.two-line-header {
    text-align: center;
    white-space: normal;
    vertical-align: middle;
    min-width: 110px;
}

.header-content {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Screener results table */
#resultsTable {
    width: 100%;
    border-collapse: collapse;
}

#resultsTable th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.table-responsive {
    overflow-x: auto;
    max-height: 600px;
}
