
/* --- 3.0.0 PERFECT STYLES (Full Widget) --- */

.nevol-nasdaq-wrapper {
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    padding: 20px;
    border: 1px solid transparent; 
    max-width: 100%;
}

.nevol-exchange {
    font-size: 16px; font-weight: 400; margin-bottom: 5px; line-height: 1.2;
}

.nevol-price {
    font-size: 42px; font-weight: 700; line-height: 1.1; word-wrap: break-word;
}

/* Chart Canvas Area */
.nevol-chart-canvas-wrapper {
    width: 100%;
    position: relative;
    /* Height is set dynamically by Elementor control, default 200px in CSS for fallback */
    min-height: 150px; 
}

.nevol-data-row {
    display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 10px 0;
}
.nevol-label { font-size: 16px; font-weight: 400; color: #666; }
.nevol-value { font-size: 16px; font-weight: 600; text-align: right; color: #333; }
.nevol-time-row { margin-top: 15px; font-size: 13px; color: #888; text-align: right; border-top: 1px solid #eee; padding-top: 10px; }
.nevol-attribution { margin-top: 5px; font-size: 10px; color: #aaa; text-align: right; }

/* --- VERTICAL LAYOUT --- */
.nevol-nasdaq-wrapper { display: flex; flex-direction: column; }
.nevol-header { order: 1; margin-bottom: 10px; }
.nevol-chart-wrapper { order: 2; margin-bottom: 25px; text-align: center; }
.nevol-details { order: 3; }

/* --- HORIZONTAL LAYOUT (Flipped: Data Left, Chart Right) --- */
[class*="nevol-layout-horizontal"] .nevol-nasdaq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Chart area wider */
    grid-template-areas: 
        "header chart"
        "details chart";
    gap: 0 30px;
    align-items: start;
}

[class*="nevol-layout-horizontal"] .nevol-chart-wrapper {
    grid-area: chart;
    margin-bottom: 0;
    align-self: stretch; /* Fill height */
    display: flex;
    align-items: center; /* Center chart vertically in its cell */
}
[class*="nevol-layout-horizontal"] .nevol-chart-canvas-wrapper {
    width: 100%; /* Ensure canvas takes full width of cell */
}

[class*="nevol-layout-horizontal"] .nevol-header {
    grid-area: header;
    margin-bottom: 0;
    align-self: end; 
    padding-bottom: 15px;
}
[class*="nevol-layout-horizontal"] .nevol-details {
    grid-area: details;
    align-self: start;
}
[class*="nevol-layout-horizontal"] .nevol-price {
    font-size: 36px;
}

/* Mobile Fallback */
@media (max-width: 600px) {
    [class*="nevol-layout-horizontal"] .nevol-nasdaq-wrapper {
        display: flex;
        flex-direction: column;
    }
    [class*="nevol-layout-horizontal"] .nevol-chart-wrapper { margin-bottom: 20px; }
    [class*="nevol-layout-horizontal"] .nevol-header { padding-bottom: 0; margin-bottom: 10px; }
}

/* --- SIMPLE WIDGET STYLES (From 3.2.1) --- */
.nevol-simple-wrapper { width: 100%; }
.nevol-simple-box {
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #3D41D6; 
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
.nevol-simple-title { margin: 0 0 10px 0; font-size: 18px; font-weight: 500; line-height: 1.2; text-transform: uppercase; color: inherit; }
.nevol-simple-price { margin: 0; font-size: 50px; font-weight: 700; line-height: 1; color: inherit; }
