/* -------------- General Styles -------------- */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    padding: 20px;
}

/* Title and Heading styles */
h1,
h2 {
    color: #444;
}

/* Button Styles */
.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

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

.btn-secondary {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

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

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

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: left;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

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

/* -------------- Labels and Strategy Styles -------------- */
.labels-container {
    margin: 20px 0;
    text-align: left;
}

.label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.label-red {
    background-color: #dc3545;
}

.label-green {
    background-color: #28a745;
}

.openTime {
    font-size: 11px;
    color: white;
    background-color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.strategyTitle {
    font-size: 26px;
    color: black;
    font-weight: bold;
    margin-top: 20px;
    padding: 5px 10px;
}

/* -------------- Profit/Loss and Underlying Price Styles -------------- */
.profitLoss_Label,
.underlying_Label {
    font-size: 11px;
    padding: 5px 10px;
    display: inline-block;
    border: 1px solid black;
}

.profitLoss_Label {
    color: white;
    background-color: #000;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.profitLoss_Dollar {
    color: white;
    background-color: #000;
    padding: 5px 10px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: inline-block;
    border: 1px solid black;
    margin-left: -5px;
    /* Adjust for seamless connection */
}

.underlying_Label {
    color: black;
    background-color: white;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-left: 10px;
}

.underlying_Dollar {
    color: white;
    background-color: black;
    padding: 5px 10px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: inline-block;
    border: 1px solid black;
    margin-left: -5px;
    /* Adjust for seamless connection */
}

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

.loss {
    background-color: red;
}

/* -------------- Live Indicator Styles -------------- */
.live-indicator {
    font-size: 11px;
    color: white;
    background-color: red;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    animation: blinker 1s linear infinite;
}

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

/* -------------- Animation Styles -------------- */
.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);
    }
}

.update-cascade {
    animation: cascade 0.8s ease-out;
}

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

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* -------------- Black Top Bar Styling -------------- */
/* Black Top Bar Styling */
.top-bar {
    background-color: #000;
    color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    /* Distribuir espacio entre el encabezado y el botón */
    align-items: center;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilo del encabezado dentro de la franja negra */
.header-title {
    font-size: 24px;
    margin: 0;
    padding-left: 20px;
    /* Ajuste para dar espacio entre el borde y el texto */
    color: white;
    /* Asegura que el texto sea blanco */
}

/* Donation button in the top bar */
.top-bar .donation-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;
    margin-right: 20px;
}

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


/* -------------- Modal Styles for Donation -------------- */
.donation-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.8);
}

.donation-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.donation-modal-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.donation-modal p {
    font-size: 16px;
    margin-bottom: 20px;
}

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

.donation-modal .close-donation:hover,
.donation-modal .close-donation:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.donation-modal-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 10px 20px;
    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;
}

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

/* -------------- Enlarged Chart Icon -------------- */
.enlarge-icon {
    cursor: pointer;
    font-size: 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 5px;
    margin-left: 10px;
}

#enlargedChart {
    width: 100%;
    height: 100%;
}