/* Base Styles */
:root {
  /* Warna utama - nuansa biru finansial yang lebih gelap */
  --primary-color: #1E3A8A;
  --primary-light: #3B82F6;
  --primary-dark: #172554;
  
  /* Warna sekunder - nuansa emas untuk aspek "nilai" */
  --secondary-color: #B45309;
  --secondary-light: #F59E0B;
  --secondary-dark: #78350F;
  
  /* Warna aksen untuk bull/bear market */
  --success: #047857; /* Bull market - hijau */
  --success-light: #10B981;
  --danger: #B91C1C;  /* Bear market - merah */
  --danger-light: #EF4444;
  --neutral: #8758FF; /* IDX30 - ungu */
  
  /* Warna latar dan kontras */
  --dark-blue: #0F172A;
  --light-blue: #F1F5F9;
  --white: #FFFFFF;
  
  /* Nuansa abu-abu */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Bayangan */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #374151;
  border: 2px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  color: var(--white);
  border-color: #374151;
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
  transform: translateY(-1px);
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 14px 0;
  /* position is now controlled in fixed-header.css */
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.auth-buttons {
  display: flex;
  gap: 16px;
}

/* Auth Section Styles */
.auth-section {
  padding: 78px 0;
  min-height: calc(100vh - 196px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 16px;
  color: var(--gray-600);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.auth-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color 0.3s;
}

.auth-form .form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

.auth-form .btn-block {
  width: 100%;
  margin-top: 16px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-600);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 14px;
}

.alert-success {
  background-color: rgba(4, 120, 87, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-danger {
  background-color: rgba(185, 28, 28, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--primary-color);
}

.user-dropdown-toggle i {
  margin-left: 5px;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  min-width: 180px;
  z-index: 10;
  display: none;
}

.user-dropdown:hover .user-dropdown-menu {
  display: block;
}

.user-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  transition: background-color 0.3s;
}

.user-dropdown-menu a:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* Profile Styles */
.profile-section {
  padding: 78px 0;
  min-height: calc(100vh - 196px);
  display: flex;
  align-items: center;
}

.profile-info {
  margin-bottom: 32px;
}

.profile-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

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

.profile-item label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.profile-value {
  font-size: 16px;
  color: var(--gray-900);
  font-weight: 500;
}

.profile-actions {
  display: flex;
  justify-content: center;
}

/* History Styles */
.history-section {
  padding: 58px 0;
}

.history-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-button {
  padding: 12px 24px;
  background-color: var(--gray-100);
  border: none;
  border-radius: var(--radius);
  margin: 0 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.history-item {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.history-item-type {
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 14px;
}

.image-type {
  background-color: var(--primary-light);
  color: var(--white);
}

.csv-type {
  background-color: var(--secondary-light);
  color: var(--white);
}

.history-item-date {
  font-size: 14px;
  color: var(--gray-600);
}

.history-item-content {
  padding: 24px;
  display: flex;
  gap: 24px;
}

.history-item-image {
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius);
}

.history-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-item-details {
  flex: 1;
}

.history-item-details h4 {
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--gray-800);
}

.history-item-details p {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--gray-600);
}

.history-item-details strong {
  color: var(--gray-800);
}

.history-item-details .btn {
  margin-top: 16px;
}

.no-history {
  text-align: center;
  padding: 40px;
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
}

.no-history p {
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--gray-600);
}

.history-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* CSV Analysis Detail Styles */
.detail-section {
  padding: 58px 0;
}

.detail-navigation {
  margin-bottom: 32px;
  display: flex;
  justify-content: flex-start;
}

.detail-summary {
  margin-bottom: 40px;
}

.detail-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.detail-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 12px;
}

.detail-summary-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.detail-summary-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.detail-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-800);
}

.detail-section-title {
  margin: 40px 0 24px;
}

.detail-section-title h3 {
  font-size: 24px;
  color: var(--gray-800);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

.pattern-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.pattern-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.pattern-tab.active {
  color: var(--primary-color);
}

.pattern-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pattern-item {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.pattern-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pattern-image h5 {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-align: center;
}

.pattern-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.no-patterns {
  padding: 24px;
  background-color: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
  color: var(--gray-600);
}

.csv-preview {
  overflow-x: auto;
  margin-bottom: 32px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background-color: var(--gray-100);
}

.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.data-table th {
  font-weight: 600;
  color: var(--gray-800);
}

.data-table td {
  color: var(--gray-700);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background-color: var(--light-blue);
  background-image: linear-gradient(135deg, var(--light-blue), var(--gray-200));
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-blue);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Analyzer Section dengan nuansa finansial */
.analyzer {
  padding: 80px 0;
  background-color: var(--white);
  position: relative;
}

.analyzer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,10 L70,10 L70,30 L90,30 L90,70 L70,70 L70,90 L30,90 L30,70 L10,70 L10,30 L30,30 Z' fill='%23f1f5f9' fill-opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
}

.analyzer .container {
  position: relative;
  z-index: 1;
}

.analyzer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.upload-container {
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
}

.file-drop-area {
  border: 2px dashed var(--gray-400);
  border-radius: 8px;
  padding: 48px 32px;
  background-color: var(--gray-50);
  margin-bottom: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-drop-area:hover {
  border-color: var(--primary-light);
  background-color: var(--gray-100);
}

.file-message {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 12px;
  display: block;
}

.file-input {
  display: none;
}

.result-container {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.result-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-header h3 {
  color: var(--white);
  font-weight: 600;
}

.result-header .btn {
  color: var(--white);
  background-color: transparent;
  border: 2px solid var(--white);
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
}

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

.result-content {
  padding: 32px;
  display: flex;
  gap: 32px;
}

.image-preview {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.pattern-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background-color: var(--gray-50);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--gray-200);
}

.info-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.pattern-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.confidence {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* Section divider style - konsisten untuk semua section */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
  margin: 0;
  padding: 0;
}

/* Market Data Section */
.market-data {
    padding: 50px 0;
    background-color: var(--gray-100);
    background-image: linear-gradient(0deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

.market-data .section-header {
    margin-bottom: 32px;
}

/* Data cards layout - using vertical stack */
.data-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
    min-width: 0;
}

.data-card:last-child {
    margin-bottom: 0;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.data-card h3 {
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

/* Top performers and trending cards */
.top-performers-card, .trending-card {
    min-height: auto;
    max-height: none;
    overflow: visible;
}

/* Responsive styles */
@media (max-width: 1400px) {
    /* Hanya penyesuaian font dan padding */
}

@media (max-width: 992px) {
    .stock-table th, 
    .stock-table td {
        padding: 5px 4px;
        font-size: 11px;
    }
    
    .stock-name {
        max-width: 160px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 32px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .result-content {
        flex-direction: column;
    }
    
    .indicator-card {
        grid-column: 1;
        grid-row: 1;
    }
    
    .news-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .chart-card {
        grid-column: 1;
        grid-row: 3;
    }
    
    .chart-container {
        height: 350px;
        min-height: 350px;
    }
    
    .patterns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .indicator-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-table th:nth-child(1), 
    .stock-table td:nth-child(1) {
        width: 16%;
    }
    
    .stock-table th:nth-child(2), 
    .stock-table td:nth-child(2) {
        width: 42%;
    }
    
    .stock-table th:nth-child(3), 
    .stock-table td:nth-child(3) {
        width: 20%;
    }
    
    .stock-table th:nth-child(4), 
    .stock-table td:nth-child(4) {
        width: 22%;
    }
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--white);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-100);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon img {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--gray-700);
}

/* Feature icons as text instead of images */
.feature-icon i {
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.feature-icon-ai, .feature-icon-analysis, .feature-icon-market {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light-blue);
}

.about-content {
  display: flex;
  gap: 48px;
  align-items: center;
}

.about-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-700);
  text-align: justify;
  line-height: 1.7;
}

/* About section without image */
.about-text.full-width {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer dengan efek gradien */
footer {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-dark));
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 32px;
  margin-right: 10px;
  filter: brightness(0) invert(1);
  width: auto;
  object-fit: contain;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--gray-300);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .patterns-grid {
    grid-template-columns: 1fr;
  }
}

/* Patterns Info Section */
.patterns-info {
  padding: 60px 0;
  background-color: var(--gray-50);
  position: relative;
}

.patterns-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232563eb' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.patterns-info .container {
  position: relative;
  z-index: 1;
}

.patterns-info .section-header {
  margin-bottom: 40px;
}

/* Grid layout 2x2 untuk desktop */
.patterns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.pattern-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  padding: 24px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Style untuk pola bullish & bearish */
.pattern-card:nth-child(odd) {
  border-top: 3px solid var(--danger);
}

.pattern-card:nth-child(even) {
  border-top: 3px solid var(--success);
}

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

.pattern-card h3 {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-blue);
  margin: 0 0 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-300);
}

.pattern-card p {
  margin-bottom: 16px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.5;
}

.trading-signal {
  margin-top: auto;
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-200);
}

.trading-signal-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .patterns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .patterns-grid {
    grid-template-columns: 1fr;
  }
}

/* Chart Card special styling */
.chart-card {
  grid-column: span 2;
}

@media (max-width: 992px) {
  .chart-card {
    grid-column: auto;
  }
}

.chart-container {
  width: 100%;
  height: 100%;
  min-height: 350px;
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--gray-50);
  box-shadow: inset 0 0 0 1px var(--gray-200);
  flex-grow: 1;
}

.timestamp-display {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--gray-500);
  margin-left: 8px;
}

/* Market Indicators */
.market-indicators {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.indicator {
  padding: 16px;
  border-radius: var(--radius-lg);
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.indicator:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.indicator-header span:first-child {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 14px;
}

.indicator-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.indicator-chart.mini {
  height: 50px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.indicator-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.update-time {
  color: var(--gray-500);
  font-size: 12px;
  display: flex;
  align-items: center;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.update-time::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-light);
  margin-right: 5px;
  animation: pulse 2s infinite;
}

/* News tanggal dinamis */
#news-date-1, #news-date-2, #news-date-3 {
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .chart-card {
    grid-column: auto;
  }
  
  .chart-container {
    height: 280px;
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .market-indicators {
    gap: 12px;
  }
  
  .indicator {
    padding: 12px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .data-card {
    padding: 16px;
  }
}

/* News styling */
#news-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 350px;
  flex-grow: 1;
}

/* Stock Table Styling */
.stock-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    margin-bottom: 0;
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stock-table th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--gray-200);
    letter-spacing: 0.5px;
    font-size: 12px;
    text-transform: uppercase;
}

.stock-table th:nth-child(1), 
.stock-table td:nth-child(1) {
    width: 10%;
}

.stock-table th:nth-child(2), 
.stock-table td:nth-child(2) {
    width: 55%;
    text-align: left;
}

.stock-table th:nth-child(3), 
.stock-table td:nth-child(3) {
    width: 15%;
    text-align: right;
}

.stock-table th:nth-child(4), 
.stock-table td:nth-child(4) {
    width: 20%;
    text-align: right;
}

.stock-table td {
    padding: 6px 6px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    transition: background-color 0.2s ease;
    font-size: 12px;
}

.stock-table tbody tr:hover {
    background-color: var(--gray-50);
}

.stock-code {
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}

.stock-name {
    color: var(--gray-700);
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-weight: 400;
    padding-right: 5px;
}

.stock-price {
    font-weight: 600;
    text-align: right;
    color: var(--gray-800);
    font-variant-numeric: tabular-nums;
}

.stock-change {
    font-weight: 600;
    text-align: right;
    width: 100px;
}

.change-positive, .change-negative {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3px 8px;
    border-radius: var(--radius);
    width: 100%;
    font-weight: 600;
    font-size: 13px;
}

.change-positive {
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
}

.change-negative {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
}

.change-positive::before {
    content: "▲";
    display: inline-block;
    margin-right: 4px;
    font-size: 10px;
}

.change-negative::before {
    content: "▼";
    display: inline-block;
    margin-right: 4px;
    font-size: 10px;
}

/* Loading indicator */
.loading-data {
    padding: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    animation: pulse 1.5s infinite ease-in-out;
}

/* Media queries to ensure responsive layout */
@media (max-width: 1200px) {
    .top-performers-card, .trending-card {
        flex: 1 1 100%;
    }
}

.no-data, .error-message {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
}

.no-data {
    color: var(--gray-600);
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Table header styling */
.header-gainers th {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-bottom: 2px solid var(--success-light);
}

.header-losers th {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-bottom: 2px solid var(--danger-light);
}

.header-trending th {
    background-color: rgba(27, 59, 138, 0.08);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-dark);
}

/* Menambahkan styling khusus untuk trending-card */
.trending-card {
    background-color: var(--light-blue);
}

/* Styling khusus untuk card */
.top-performers-card.data-card:nth-child(1) {
    background-color: rgba(16, 185, 129, 0.05);
}

.top-performers-card.data-card:nth-child(2) {
    background-color: rgba(239, 68, 68, 0.05);
}

/* Add styles for pattern detection from CSV */
.pattern-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.pattern-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    height: 100%;
}

.pattern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pattern-card h4 {
    background-color: var(--gray-100);
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.pattern-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--gray-200);
}

.pattern-details {
    padding: 15px;
    background-color: var(--gray-100);
}

.pattern-details p {
    margin-bottom: 5px;
    font-size: 14px;
}

.download-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.download-buttons .btn {
    flex: 1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.clear-results-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.clear-results-container .btn {
    min-width: 150px;
}

/* CSV upload section styling */
.csv-instructions {
    margin-bottom: 24px;
    color: var(--gray-700);
    font-size: 15px;
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--gray-200);
}

/* Loading indicator */
#csv-loading {
    margin: 24px 0;
    text-align: center;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--gray-700);
    font-size: 16px;
    margin: 0;
}

/* Alert styles */
.alert {
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
}

.alert-success {
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success-light);
}

.alert-danger {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-light);
}

.alert-info {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pattern-images-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .pattern-images-container {
        grid-template-columns: 1fr;
    }
}

/* Download Market Data Styles */
.download-market-data {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-subheader {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subheader h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.section-subheader p {
    color: #4a5568;
    font-size: 0.95rem;
}

.download-market-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Make the stock search span all columns on smaller screens */
@media (max-width: 768px) {
    .download-market-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
    background-color: #fff;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Data Preview Styles */
.data-preview {
    margin-top: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.preview-header {
    padding: 1rem;
    background-color: #edf2f7;
    border-bottom: 1px solid #e2e8f0;
}

.preview-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
}

.preview-details {
    margin: 0;
    font-size: 0.85rem;
    color: #4a5568;
}

.preview-table-container {
    overflow-x: auto;
    max-height: 350px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background-color: #edf2f7;
    color: #4a5568;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.more-data-message {
    text-align: center;
    font-style: italic;
    color: #718096;
    padding: 0.75rem !important;
    background-color: #f1f5f9;
}

#data-preview-loading.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
}

#data-preview-loading .spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.preview-error {
    padding: 1rem;
    color: #e53e3e;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin: 1rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
}

.preview-error .error-message {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #e53e3e;
}

.preview-error .error-solution {
    color: #4a5568;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #fed7d7;
    padding-top: 0.75rem;
}

.preview-error .error-solution ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    list-style-type: disc;
}

.preview-error .error-solution li {
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .download-market-form {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .preview-table-container {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .download-market-data {
        padding: 1rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
} 