body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f9;
    color: #333;
    padding: 20px;
}

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

h1, h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 95%;
    max-width: 1200px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Buttons and Forms */
button, input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #2980b9;
}

input[type="text"], input[type="number"], input[type="date"], select {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 5px 0 15px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#createPortfolioForm {
    margin-bottom: 20px;
}

/* Tables */
.portfolio-table, .stocks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fdfdfd;
}

.portfolio-table th, .portfolio-table td, .stocks-table th, .stocks-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.portfolio-table th, .stocks-table th {
    background-color: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
}

.portfolio-row:hover {
    background-color: #e8f4f8;
    cursor: pointer;
}

/* UI elements */
.fa-trash-can {
    color: white;
}

.fa-trash-can:hover {
    color: #f4f7f9;
    cursor: pointer;
}

.edit-portfolio-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.ticker-status {
    padding-left: 5px;
    font-size: 1.2em;
}

.is-invalid {
    border: 1px solid red;
}
.modal-stock-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.modal-stock-table th, .modal-stock-table td {
    padding: 3px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px; /* Reduced font size */
}

.modal-stock-table th {
    background-color: #ecf0f1;
    font-weight: bold;
}