/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f4f8;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  font-size: 2.8em;
  color: #4A90E2;
  margin-bottom: 40px;
}

.portfolio-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.portfolio-summary h2 {
  font-size: 1.8em;
}

#add-investment-btn {
  background-color: #10b981;
  color: white;
  padding: 12px 25px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#add-investment-btn:hover {
  background-color: #059669;
}

/* Form Styling */
.form-container {
  margin: 30px 0;
  padding: 25px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.form-container h3 {
  margin-bottom: 20px;
  color: #374151;
  font-weight: 600;
}

.form-container label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #6b7280;
}

.form-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.1em;
}

#add-investment {
  background-color: #4A90E2;
  color: white;
  padding: 12px 20px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#add-investment:hover {
  background-color: #357ABD;
}

/* Table Styling */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

thead {
  background-color: #1f2937;
  color: white;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}

th {
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9fafb;
}

tr:hover {
  background-color: #e5e7eb;
}

button {
  background-color: #d9534f;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #c9302c;
}

/* Chart Styling */
canvas {
  max-width: 100%;
  margin-top: 30px;
}



/* Responsive */
@media (max-width: 768px) {
  .portfolio-summary {
    flex-direction: column;
    text-align: center;
  }

  #add-investment-btn {
    margin-top: 15px;
  }

  h1 {
    font-size: 2em;
  }
}
