/* 輸入框樣式 */
input[type="text"], input[type="number"] {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 200px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* 按鈕樣式 */
button {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* 損益顯示：正為紅、負為綠 */
.profit-positive {
    color: red;
    font-weight: bold;
}

.profit-negative {
    color: green;
    font-weight: bold;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: white;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
}

/* ✅ 新增設計卡片區塊與表格優化 */
.stock-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.styled-table th, .styled-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.styled-table th {
    background-color: #f0f2f5;
    font-weight: bold;
}

.summary {
    font-size: 18px;
    font-weight: 500;
    background-color: #fefefe;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.profit-dividend {
    color: #10b981;
    font-weight: bold;
}
