body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    padding: 20px 20px 20px 70px; /* Ajuste para la barra superior */
}

h1, h2 {
    color: #444;
}

/* Button container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Button styles */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
    border: none;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #218838;
}

/* Icon styles */
.icon-img {
    width: 20px;
    height: 20px;
}

/* Modal styles */
.modal, .donation-modal, .modal-enlarge {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content, .donation-modal-content, .modal-content-enlarge {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 10px;
    overflow: hidden;
    max-width: 1800px;
}

.modal-content {
    min-height: 400px;
}

.donation-modal-content {
    max-width: 500px;
}

.close, .close-enlarge, .close-donation, .close-settings-modal, .close-error-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close-enlarge:hover, .close-donation:hover, .close-settings-modal:hover, .close-error-modal:hover,
.close:focus, .close-enlarge:focus, .close-donation:focus, .close-settings-modal:focus, .close-error-modal:focus {
    color: black;
    text-decoration: none;
}

textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
}

/* Label styles */
.label, .label-time, .profitLoss_Label, .profitLoss_Dollar, .underlying_Label, .underlying_Dollar {
    font-size: 14px;
    padding: 5px 10px;
    display: inline-block;
    border: 1px solid black;
    border-radius: 5px;
}

.profitLoss_Label, .profitLoss_Dollar {
    background-color: #000;
    color: white;
}

.profitLoss_Dollar {
    margin-left: -5px;
}

.underlying_Label {
    background-color: white;
    color: black;
}

.underlying_Dollar {
    background-color: black;
    color: white;
    font-weight: bold;
    margin-left: -5px;
}

/* Profit/Loss background */
.profit {
    background-color: green;
}

.loss {
    background-color: red;
}

/* Live Indicator */
.live-indicator {
    font-size: 14px;
    color: white;
    background-color: red;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.market-live {
    background-color: green;
    animation: blinker 1s linear infinite;
}

.market-closed {
    background-color: red;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Glow Effect */
.update-glow {
    animation: glow 0.5s ease-in-out;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.75);
        transform: scale(1.1);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* Cascading Effect */
.update-cascade {
    animation: cascade 0.8s ease-out;
}

@keyframes cascade {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Top Bar */
.top-bar {
    background-color: #000;
    color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-title {
    font-size: 24px;
    padding-left: 20px;
}

/* Donation Button */
.top-bar .donation-button, .donation-modal-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.top-bar .donation-button:hover, .donation-modal-button:hover {
    background-color: #ff4500;
}

/* Strategy and Performance */
.strategy-info-section, .difference-info-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px;
}

.labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strategy-and-performance {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Icon Styles */
.enlarge-icon, .settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    color: #333;
}

.enlarge-icon:hover, .settings-icon:hover {
    background-color: #333;
    color: white;
}

.enlarge-icon i, .settings-icon i {
    font-size: 16px;
    margin-right: 5px;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.strategy {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
}
