/* ════════════════════════════════════════════════
   Premium Product Dimension Calculator CSS
   ════════════════════════════════════════════════ */

.calc-section {
    padding: 60px 0 100px;
    background: linear-gradient(175deg, rgba(3,8,14,0.95) 0%, rgba(6,28,54,0.85) 60%, rgba(3,8,14,0.98) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background Glowing Orbs */
.calc-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    pointer-events: none;
}

.calc-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.08) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    pointer-events: none;
}

/* Page Header */
.calc-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #00f2fe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.calc-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 12px;
}

.calc-title span {
    background: linear-gradient(90deg, #00f2fe, #3a86ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-subtitle {
    max-width: 650px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* Glassmorphism Panel Cards */
.calc-card {
    background: rgba(6, 19, 32, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.calc-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.05);
}

/* Selection Section */
.selection-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.selection-box {
    flex: 1;
    min-width: 250px;
}

.selection-box label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.custom-select {
    width: 100%;
    background: rgba(4, 10, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300f2fe' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
}

.custom-select:hover {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.custom-select:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.custom-select:disabled {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.25);
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.15)' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Reset Button */
.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #f43f5e;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: auto;
}

.btn-reset:hover {
    background: #f43f5e;
    color: #fff;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
    transform: translateY(-2px);
}

/* Interactive Config Layout */
.input-row {
    margin-bottom: 24px;
}

.input-row label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.results-banner {
    background: rgba(0, 242, 254, 0.08);
    border: 1px dashed rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #00f2fe;
    margin-top: 10px;
    display: none;
}

.results-banner span {
    font-size: 1.05rem;
    font-weight: 800;
}

/* Diagram Column Styling */
.diagram-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: rgba(4, 10, 20, 0.4);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.diagram-image {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: all 0.5s ease;
}

/* Output Live parameters */
.parameter-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border-left: 3px solid #00f2fe;
    padding-left: 10px;
}

.parameter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.parameter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.parameter-item:last-child {
    border-bottom: none;
}

.parameter-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.parameter-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00f2fe;
}

.parameter-value.highlight {
    color: #ff9f1c;
    text-shadow: 0 0 10px rgba(255, 159, 28, 0.2);
}

/* Dynamic Grid Preview */
.grid-preview-container {
    margin-top: 20px;
    background: rgba(4, 10, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: none;
}

.grid-preview-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

.grid-system {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.grid-system .row {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.grid-system .row ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 8px;
}

.grid-system .row ul li {
    flex: 1;
    height: 35px;
    background-color: #ed3237; /* Red platform */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.grid-system .row ul li.bgcolor333 {
    background-color: #222530; /* Dark/Black pit platform */
    border-color: rgba(58, 134, 255, 0.3);
}

/* Dynamic Tables Details Section */
.details-section {
    margin-top: 40px;
    display: none;
    animation: fadeSlideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.table-box {
    background: rgba(4, 10, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
}

.table-box h5 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

/* Button See Data */
.btn-table-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: linear-gradient(135deg, #00f2fe 0%, #3a86ff 100%);
    color: #040d16;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-table-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
    color: #040d16;
}

/* Responsive adjust */
@media (max-width: 767.98px) {
    .calc-card {
        padding: 20px;
    }
}
