/* Reset some default browser styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f6f8;
  color: #00ff66;
  line-height: 1.6;
  background-image: url('/css/img/background3.jpg'); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  background-attachment: fixed;

}
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent; 
}
.content-wrap {
  flex: 1;
}

/*Navigation bar */
/* Header / Nav */
header {
  background: rgba(0,0,0,0);
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transition: background 0.5s ease;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container nav {
  display: flex;
  gap: 30px;
}

/* Navigation buttons */
.nav-container nav a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;           
  background-color: #00ff66;     
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Hover effect for nav buttons */
.nav-container nav a:hover {
  background-color: #72deec80;    
  transform: scale(1.05);        
  box-shadow: 0 4px 15px rgba(9, 246, 49, 0.975); /* Glow effect */
}
.message-container {
  margin: 20px 0;
  padding: 10px;
}

/* Success message */
.success-message {
  color: #ffffff;                  /* Bright text */
  background: linear-gradient(90deg, #038922, #2ecc71); /* Gradient green */
  border: 3px solid #1c7430;       /* Dark green border */
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 900;                /* Extra bold */
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* subtle shadow */
  animation: popIn 0.5s ease-in-out;
}

/* Error message */
.error-message {
  color: #ffffff; 
  background: linear-gradient(90deg, #ec2812, #b81807); /* Gradient red */
  border: 3px solid #721c24;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: popIn 0.5s ease-in-out;
}

/* Main container */
main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
}

/* Heading */
main h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2rem;
  color: white;
}

/* Welcome text */
main p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

table thead {
  background: #1e1e2f;
  color: #fff;
}

table th,
table td {
  padding: 12px 15px;
  text-align: center;
  font-size: 0.95rem;
}

table tr {
  border-bottom: 1px solid #ddd;
}

table tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background: #049db1c3;
  transform: scale(1.01);
  transition: 0.2s;
}

/* Positive/Negative change colors */
td[style*="green"] {
  color: #28a745 !important;
  font-weight: 600;
}

td[style*="red"] {
  color: #dc3545 !important;
  font-weight: 600;
}
/* Smooth price and change updates */
.stock-table td {
    transition: color 0.5s ease, background-color 0.5s ease;
}

/* TradingView widget spacing */
.tradingview-widget-container {
  margin: 20px 0;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  background-color: #045a65d8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  font-weight: bolder;
  color: white
}

.stock-table th,
.stock-table td {
  border: 1px solid #ddd;
  padding: 12px;
}

.stock-table th {
  background: #00ff66; 
}

.stock-table img {
  border-radius: 4px;
}

/* Footer */
p {
  text-align: center;
  margin-top: 15px;
}

p a {
  color: #00cc66;
  text-decoration: none;
  font-weight: bold;
}

p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: 2rem;
  background-color: #72deec80;
  color: #ffffff;            
  text-align: center;
  padding: 1rem 0;
  width: 100%;                     
  bottom: 0;                 
  font-weight: bold;         
  font-size: 1rem;           
}
