/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Main container to control width and center content */
.main-container {
    width: 100%;
    max-width: 1200px;
    /* Limits content width on very large screens */
    margin: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

/* Tabs container styling */
.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    background-color: #f4f4f4;
    padding: 0;
    width: 100%;
}

/* Individual tab styling */
.tab {
    flex: 1;
    /* Makes tabs stretch evenly across the screen */
    padding: 15px;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-bottom: none;
    text-align: center;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Active tab styling */
.tab.active {
    background-color: #ffffff;
    border-bottom: 2px solid white;
    font-weight: bold;
    color: #333;
}

/* Hover effect for tabs */
.tab:hover {
    background-color: #bbb;
}

/* Content container */
.tab-content {
    display: none;
    padding: 20px;
    border-top: 1px solid #ccc;
    min-height: 500px;
    /* Ensures a minimum height */
}

/* Active content styling */
.tab-content.active {
    display: block;
}

/* Flex container for tabs and contents */
.tab-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Full viewport height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab {
        padding: 10px;
        font-size: 14px;
    }

    .tab-content {
        padding: 15px;
    }
}

/* Form container styling */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Individual form row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Label styling */
label {
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

/* Input field styling */
input[type="text"],
input[type="button"] {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

/* Button styling */
input[type="button"] {
    width: auto;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="button"]:hover {
    background-color: #45a049;
}

/* The container that holds all the order legs */
.ironCondorLegs {
    max-height: 500px; /* Set a maximum height to allow scrolling */
    overflow: auto; /* Enable vertical scrolling */
    padding: 10px;
    border: 1px solid #ccc; /* Optional: border for visual separation */
    border-radius: 8px;
    background-color: #f9f9f9;
    display:none;
    font-family: 'Courier New', monospace;
}

/* Styling for the row that holds each order leg */
.order-leg {
    display: flex; /* Use flexbox to align items in a row */
    justify-content: space-between; /* Space out each column */
    margin-bottom: 0px; /* Space between order legs */
    padding: 1px;
    border: 1px solid #ddd; /* Border around each leg */
    border-radius: 8px;
    background-color: #fff; /* Background for each leg */
}

/* Styling for each column within an order leg */
.order-leg div {
    flex: 1; /* Makes each column take up equal space */
    padding: 1px;
    text-align: center; /* Centers the text in each column */
    font-size: 12px; /* Smaller font size for cell content */
    margin: 5px 0; /* Space between lines of information */
}

/* Make column headers bold */
.order-leg .header {
    font-weight: bold;
    text-align: center;
}

/* Styling for the quote result */
#quoteResult {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}


.long {
    background-color: red;
    color: white;
}

.short {
    background-color: green;
    color: white;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0;
    padding: 10px;
    background-color: #f7f9fc; /* Light background for the whole grid */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    display:none
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: #ffffff; /* White background for each item */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.summary-item:nth-child(odd) {
    background-color: #f1f4f8; /* Slightly darker background for odd items */
}

.summary-item:hover {
    background-color: #e9eff5; /* Hover effect for interactivity */
}

.summary-label {
    font-weight: bold;
    color: #333; /* Darker color for contrast */
}

.summary-value {
    text-align: right;
    color: #0073e6; /* Accent color for values */
    font-weight: 500; /* Slightly bold for emphasis */
}
