.ira .ira-container {
    margin: auto;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ira h1 {
    text-align: center;
    margin-bottom: 10px;
}
.ira tr td {
    border-top: 1px solid #eee;
    padding: 1px 24px !important;
}

.ira .date {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.ira .account-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 0.05rem solid #b8b8b8;
    padding-left: 24px;
}

.ira .account-row-result {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 24px;
}
.ira .account-row-result span{
    max-width: 90px;
    font-size: 20px;
    font-weight: bold;
    color: #1d253f;
    margin: 10px 0;
}
.ira .account-row input[type="text"]{
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 500px;
}
.ira .account-row input.amount {
    padding: 8px !important;
    font-size: 1rem !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    width: 120px !important;
}



.ira .add-account {
    padding: 5px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    float: right;
    margin-right: 5px;
}
.spacer {
    flex-grow: 1;
    visibility: hidden;
}
.ira .add-account:hover {
    background: #28a745;
}

.ira .summary {
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

.ira .form-section {
    margin-bottom: 20px;
}

.ira .form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ira .form-row label {
    flex: 1;
    margin-right: 10px;
}

.ira .form-row input {
    flex: 2;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.ira .save-btn {
    display: block;
    margin: 20px 0;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.ira .login-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.ira .login-button:hover {
    background-color: #28a745;
}
.ira  .alert {
    color: #d9534f;
    font-size: 18px;
    margin-bottom: 20px;
}


.ira .save-btn:hover {
    background: darkgreen;
}

.delete-btn {
    background-color: #ff4d4d; /* Red background */
    color: white; /* White text */
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-btn:hover {
    background-color: #e60000; /* Darker red on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

.delete-btn .icon {
    margin-right: 0; /* Adjust icon margin if needed */
}
@media (max-width: 768px) {
    .ira .account-row {
        gap: 5px;
    }
    .ira .account-row input[type="text"],
    .ira .account-row input[type="number"] {
        flex: 1 1 100%; /* Full width on smaller screens */
    }

    .ira .delete-btn {
        margin-bottom: 5px;
    }
}
@media (max-width: 480px) {
    .ira .delete-btn {
        margin-bottom: 5px;
    }

    .ira .add-account {
        font-size: 0.9rem;
        padding: 8px;
    }
}

.bottom-row {
    display: flex;
    background-color:#f8f8f8 ;
    justify-content: space-between;
}

.bottom-card {
    flex: 1;
    margin: 10px;
    padding: 15px;
    text-align: center;
}

.bottom-card h4 {
    font-size: 15px;
    margin: 0;
}

.bottom-card .value {
    max-width: 90px;
    font-size: 20px;
    font-weight: bold;
    color: #1d253f;
    margin: 5px 0;
    background: #f8f8f8;
}

.bottom-card .info {
    font-size: 14px;
    color: #7a859e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-row,
    .bottom-row {
        flex-direction: column;
    }

    .stat-card,
    .bottom-card {
        margin: 10px 0;
    }
}

input:focus, #content select:focus {
    outline: .2rem solid #ff9100;
}
.ira .form-section input[type="text"],input[type="number"], select {
    width: 100%;
    padding: 5px;
    margin-top: 3px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: solid 0.05rem #f3f3f3;
    box-sizing: border-box;
}

.form-section h3{
    background-color: #f3f3f3;
    color: #0047F5;
    border-bottom:  0.05rem solid #b8b8b8;
    padding: 0.5rem 1.2rem;
}
.ira .loading {
    cursor: not-allowed;
    position: relative;
}

.ira .loading::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}