/* ===== Global Dark Theme ===== */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 24px;
  background: #1e1e1e; /* dark gray background */
  color: #f5f5f5;       /* soft white text */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ===== Company Header ===== */
.company-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 20px 20px;
  border-bottom: 1px solid #3a3a3a;
  width: 100%;
  max-width: 1100px;
}

.company-title {
  font-size: 38px;
  font-weight: 700;
  color: #00b4d8;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.company-tagline {
  font-size: 16px;
  color: #aaa;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ===== YouTube Section ===== */
.youtube-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-left: 4px solid #ff0000;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 35px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.youtube-icon {
  font-size: 40px;
  color: #ff0000;
  flex-shrink: 0;
  background: rgba(255, 0, 0, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-content {
  flex: 1;
}

.youtube-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5f5f5;
  margin: 0 0 8px 0;
}

.youtube-desc {
  font-size: 14px;
  color: #aaa;
  margin: 0 0 14px 0;
  line-height: 1.6;
}

.youtube-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(145deg, #ff4444, #cc0000);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.youtube-btn:hover {
  background: linear-gradient(145deg, #ff6666, #ee0000);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* ===== Chart Heading ===== */
.chart-heading {
  text-align: center;
  color: #00b4d8;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 16px;
}



/* ===== Title ===== */
h1 {
  text-align: center;
  color: #00b4d8; /* cyan accent */
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Controls section ===== */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

label {
  font-size: 15px;
  color: #ccc;
}

/* ===== Dropdown and Buttons ===== */
select,
button {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

select {
  background-color: #333;
  color: #f5f5f5;
}

select:hover {
  background-color: #444;
}

/* ===== Buttons with accent styling ===== */
button {
  background: linear-gradient(145deg, #00b4d8, #0077b6);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 180, 216, 0.4);
}

button:hover {
  background: linear-gradient(145deg, #00d4ff, #0096c7);
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.97);
}

/* ===== Chart container ===== */
#chart {
  width: 95%;
  max-width: 1100px;
  height: 650px;
  margin: 0 auto;
  border-radius: 12px;
  background: #262626;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ===== Buttons Row for Multiple Charts ===== */
.chart-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.chart-buttons button {
  background: linear-gradient(145deg, #4e9af1, #005f99);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.chart-buttons button:hover {
  background: linear-gradient(145deg, #5fb3f7, #0077b6);
  transform: translateY(-2px);
}

.chart-buttons button:active {
  transform: scale(0.97);
}

/* ===== Back button for chart subpages ===== */
.back-btn {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 18px;
  background: linear-gradient(145deg, #444, #333);
  border-radius: 8px;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: linear-gradient(145deg, #555, #444);
  color: #00d4ff;
}
/* ===== Chart Links Section ===== */
.chart-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 20px 30px;
  margin-top: 40px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.chart-buttons h3 {
  color: #ddd;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

.chart-buttons button {
  background: linear-gradient(145deg, #5c9ef3, #0f6ac4);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  width: 80%;
  max-width: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.chart-buttons button:hover {
  background: linear-gradient(145deg, #69b6ff, #0a84e1);
  transform: translateY(-2px);
}

.chart-buttons button:active {
  transform: scale(0.97);
}

/* ===== Stock Data Table ===== */
.stock-table-wrapper {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto 25px auto;
}

.stock-table-title {
  color: #00b4d8;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.stock-table thead tr {
  background: #00b4d8;
  color: #fff;
}

.stock-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stock-table td {
  padding: 10px 20px;
  font-size: 14px;
  color: #ddd;
  border-bottom: 1px solid #3a3a3a;
}

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

.stock-table tbody tr:hover {
  background: #333;
  transition: background 0.2s ease;
}

/* ===== Portfolio Images Section ===== */
.images-section {
  width: 95%;
  max-width: 1100px;
  margin: 40px auto 10px auto;
  text-align: center;
}

.images-title {
  color: #00b4d8;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.images-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.image-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  flex: 1;
  min-width: 280px;
}

.image-label {
  color: #aaa;
  font-size: 14px;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.portfolio-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== Company Email ===== */
.company-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #00b4d8;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.company-email:hover {
  color: #00d4ff;
  text-decoration: underline;
}
/* ===== AI Model Description Section ===== */
.model-description {
  width: 95%;
  max-width: 1100px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-left: 4px solid #00b4d8;
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 35px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.model-description-title {
  color: #00b4d8;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.model-description-text {
  color: #bbb;
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  text-align: justify;
}
/* ===== Portfolio Description Section ===== */
.portfolio-description {
  width: 95%;
  max-width: 1100px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-left: 4px solid #4e9af1;
  border-radius: 12px;
  padding: 24px 32px;
  margin-top: 40px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.portfolio-description-title {
  color: #4e9af1;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.portfolio-description-text {
  color: #bbb;
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  text-align: justify;
}

/* ===== Retirement Section ===== */
.retirement-section {
  width: 95%;
  max-width: 1100px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-left: 4px solid #00c896;
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.retirement-title {
  color: #00c896;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.retirement-desc {
  color: #bbb;
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 24px 0;
  text-align: justify;
}

.retirement-download-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(145deg, #00c896, #009e75);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3);
  margin-bottom: 32px;
  display: block;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.retirement-download-btn:hover {
  background: linear-gradient(145deg, #00e6aa, #00b888);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.4);
}

/* ===== Spreadsheet Preview ===== */
.spreadsheet-preview {
  margin-top: 32px;
  border-top: 1px solid #3a3a3a;
  padding-top: 24px;
}

.preview-title {
  color: #00c896;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.preview-desc {
  color: #aaa;
  font-size: 14px;
  margin: 0 0 16px 0;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.preview-tab {
  padding: 8px 16px;
  background: #333;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.preview-tab:hover {
  background: #444;
  color: #fff;
}

.preview-tab.active {
  background: #00c896;
  color: white;
  border-color: #00c896;
}

.spreadsheet-container {
  width: 100%;
  overflow-x: auto;
  background: #1e1e1e;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  min-height: 200px;
}

.spreadsheet-container table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.spreadsheet-container th {
  background: #00c896;
  color: white;
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

.spreadsheet-container td {
  padding: 7px 12px;
  border-bottom: 1px solid #2e2e2e;
  color: #ccc;
  white-space: nowrap;
}

.spreadsheet-container tr:hover td {
  background: #2a2a2a;
}