﻿
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.member-categoryGroup {
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  
}

label {
    display: block;
    margin-bottom: 6px;
    color: #34495e;
    font-weight: 500;
    font-size: 0.9rem;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    /* background: #fafafa; */
    background: #fcfcfc;
}

    input[type="number"]:focus,
    input[type="text"]:focus,
    select:focus {
        outline: none;
        border-color: #3498db;
        background: white;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }




/* Steel Design Specific Styles */
.steel-design-wrapper {
    background-color: var(--background2, #f4f4f4);
    min-height: 100vh;
    padding: 40px 0;
}

/* Enhanced Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary2, #0077cc) 0%, #005aa3 100%);
    color: white;
    padding: 60px 40px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255,255,255,0.05) 50px, rgba(255,255,255,0.05) 100px);
        animation: slidePattern 20s linear infinite;
    }

@keyframes slidePattern {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100px);
    }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 40px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.1rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    gap: 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

    .progress-step.active {
        opacity: 1;
    }

.step-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: white;
    color: var(--primary2, #0077cc);
    border-color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Interface Layout */
.design-interface {
    margin-bottom: 40px;
}

.interface-layout {
    display: flex;
    gap: 24px;
    min-height: 600px;
}

/* Enhanced Navigation Sidebar */
.navigation-sidebar {
    width: 250px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow2, 0 4px 20px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.nav-header {
    background: linear-gradient(135deg, var(--surface, #f8fafc) 0%, #e2e8f0 100%);
    padding: 24px;
    border-bottom: 1px solid rgba(0, 119, 204, 0.1);
}

    .nav-header h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text2, #1a1a1a);
    }

.custom-nav {
    padding: 16px;
}

    .custom-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        margin-bottom: 8px;
        border: none;
        border-radius: 12px;
        background: transparent;
        color: var(--text2, #1a1a1a);
        text-align: left;
        transition: all 0.3s ease;
        position: relative;
    }

        .custom-nav .nav-link:hover {
            background: rgba(0, 119, 204, 0.05);
            color: var(--primary2, #0077cc);
        }

        .custom-nav .nav-link.active {
            background: linear-gradient(135deg, var(--primary2, #0077cc) 0%, #005aa3 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 119, 204, 0.3);
        }

.nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

.nav-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Content Area */
.content-area {
    flex: 1;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow2, 0 4px 20px rgba(0, 0, 0, 0.1));
    overflow: hidden;
}

.tab-content {
    height: 100%;
}

.tab-pane {
    padding: 0;
    height: 100%;
}

/* Tab Headers */
.tab-header {
    background: linear-gradient(135deg, var(--surface, #f8fafc) 0%, #e2e8f0 100%);
    padding: 32px 40px;
    border-bottom: 1px solid rgba(0, 119, 204, 0.1);
}

    .tab-header h2 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text2, #1a1a1a);
        margin: 0 0 8px 0;
    }

    .tab-header p {
        color: var(--secondary2, #656c7c);
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.5;
    }

/* Form Sections */
.form-section {
    padding: 40px;
    border-bottom: 1px solid rgba(0, 119, 204, 0.05);
}

    .form-section:last-child {
        border-bottom: none;
    }

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text2, #1a1a1a);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 1.3rem;
    color: var(--primary2, #0077cc);
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary2, #0077cc);
    margin: 24px 0 16px 0;
}

/* Input Styling */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.project-inputs {
    grid-template-columns: 1fr 1fr 1fr 2fr;
}

.input-group-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .input-group-enhanced.full-width {
        grid-column: 1 / -1;
    }



.input-label {
    font-weight: 600;
    color: var(--text2, #1a1a1a);
    font-size: 0.9rem;
}

.form-input, .form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text2, #1a1a1a);
}

    .form-input:focus, .form-select:focus {
        outline: none;
        border-color: var(--primary2, #0077cc);
        box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
    }

.input-with-unit {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

    .input-with-unit:focus-within {
        border-color: var(--primary2, #0077cc);
        box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
    }

    .input-with-unit .form-input {
        border: none;
        flex: 1;
        padding: 12px 16px;
    }

        .input-with-unit .form-input:focus {
            box-shadow: none;
        }

.input-unit {
    padding: 12px 16px;
    background: var(--surface, #f8fafc);
    color: var(--secondary2, #656c7c);
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* Custom Section Inputs */
.custom-section-inputs {
    margin-top: 24px;
    padding: 24px;
    background: var(--surface, #f8fafc);
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 204, 0.1);
}

/* Segment Layout */
.segment-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 40px;
}

.segment-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.segment-visualization {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.visualization-card {
    background: var(--surface, #f8fafc);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(0, 119, 204, 0.1);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text2, #1a1a1a);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.1rem;
    color: var(--primary2, #0077cc);
}

.plot-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    /*     border: 2px dashed rgba(0, 119, 204, 0.2);
         */
}

.beam-plot {
    /* width: 100%; */
    height: 300px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 204, 0.1);
    margin-top: 20px;
}

.segment-table, .force-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .segment-table th, .force-table th {
        background: linear-gradient(135deg, var(--primary2, #0077cc) 0%, #005aa3 100%);
        color: white;
        padding: 12px 8px;
        text-align: center;
        font-weight: 600;
        font-size: 0.8rem;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

        .segment-table th:last-child, .force-table th:last-child {
            border-right: none;
        }



    .segment-table tbody td input,
    .segment-table tbody td select,
    .segment-table tbody td button {
        font-size: 1rem !important;
        padding: 2px 4px !important;
    }

    /* Or more specifically for the form controls */
    .segment-table tbody .form-control,
    .segment-table tbody .form-select,
    .segment-table tbody .btn {
        font-size: 1rem !important;
        padding: 2px 4px !important;
    }

    .force-table tbody td input,
    .force-table tbody td select,
    .force-table tbody td button {
        font-size: 1rem !important;
        padding: 2px 4px !important;
    }

    /* Or more specifically for the form controls */
    .force-table tbody .form-control,
    .force-table tbody .form-select,
    .force-table tbody .btn {
        font-size: 1rem !important;
        padding: 2px 4px !important;
    }


    .segment-table td, .force-table td {
        padding: 5px 8px;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        border-right: 1px solid #e2e8f0;
        /*    font-weight: 300;
                    font-size: 0.4rem; */
    }

        .segment-table td:last-child, .force-table td:last-child {
            border-right: none;
        }

    .segment-table tbody tr:hover, .force-table tbody tr:hover {
        background: rgba(0, 119, 204, 0.02);
    }

/* Force Method Selection */
.force-method-selection {
    margin-bottom: 0px;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
}

    .radio-option:hover {
        border-color: var(--primary2, #0077cc);
        background: rgba(0, 119, 204, 0.02);
    }

    .radio-option input[type="radio"] {
        display: none;
    }

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary2, #0077cc);
    background: var(--primary2, #0077cc);
}

    .radio-option input[type="radio"]:checked + .radio-custom::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 6px;
        height: 6px;
        background: white;
        border-radius: 50%;
    }

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .radio-content strong {
        color: var(--text2, #1a1a1a);
        font-weight: 600;
    }

    .radio-content span {
        color: var(--secondary2, #656c7c);
        font-size: 0.9rem;
    }

/* Force Sections */
.force-section {
    padding: 0px;
}

/* Diagrams */
.diagrams-section {
    margin-top: 40px;
}

.diagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.diagram-card {
    background: var(--surface, #f8fafc);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 119, 204, 0.1);
}

    .diagram-card h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text2, #1a1a1a);
        margin: 0 0 16px 0;
        text-align: center;
    }

.force-plot {
    width: 100%;
    height: 250px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Tab Navigation */
.tab-navigation {
    padding: 32px 40px;
    background: var(--surface, #f8fafc);
    border-top: 1px solid rgba(0, 119, 204, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--primary2, #0077cc) 0%, #005aa3 100%);
    color: white;
}

    .nav-btn.primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 119, 204, 0.3);
    }

.nav-btn.secondary {
    background: var(--surface, #f8fafc);
    color: var(--text2, #1a1a1a);
    border: 2px solid #e2e8f0;
}

    .nav-btn.secondary:hover {
        background: #e2e8f0;
        transform: translateY(-2px);
    }

.nav-btn.analyze {
    background: linear-gradient(135deg, var(--success, #10b981) 0%, #059669 100%);
    color: white;
}

    .nav-btn.analyze:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    }

.nav-btn.export {
    background: linear-gradient(135deg, var(--accent2, #ea4c89) 0%, #db2777 100%);
    color: white;
}

    .nav-btn.export:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(234, 76, 137, 0.3);
    }

/* Results Section */
.results-controls {
    padding: 32px 40px;
    background: var(--surface, #f8fafc);
    border-bottom: 1px solid rgba(0, 119, 204, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-select {
    min-width: 200px;
}

.results-section {
    padding: 40px;
}

.total-results {
    margin-bottom: 32px;
}

.segment-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--surface, #f8fafc);
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 204, 0.1);
}

    .segment-navigation h3 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text2, #1a1a1a);
    }

.segment-highlight {
    color: var(--primary2, #0077cc);
    font-weight: 700;
}

.segment-controls {
    display: flex;
    gap: 8px;
}

.segment-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text2, #1a1a1a);
}

    .segment-nav-btn:hover {
        border-color: var(--primary2, #0077cc);
        background: var(--primary2, #0077cc);
        color: white;
        transform: scale(1.05);
    }

/*.results-container {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 204, 0.1);
    overflow: hidden;
}*/

.result-display {
    padding: 20px;
}

/* Information Section */
.info-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow2, 0 4px 20px rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(0, 119, 204, 0.1);
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text2, #1a1a1a);
    margin-bottom: 32px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.info-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary2, #0077cc);
    margin-bottom: 16px;
}

.info-block p {
    color: var(--text2, #1a1a1a);
    line-height: 1.6;
    margin: 0;
}

/* Custom Offcanvas */
.custom-offcanvas {
    width: 400px;
    background: white;
    border-right: 1px solid rgba(0, 119, 204, 0.1);
}

    .custom-offcanvas .offcanvas-header {
        background: linear-gradient(135deg, var(--primary2, #0077cc) 0%, #005aa3 100%);
        color: white;
        padding: 24px;
        border-bottom: none;
    }

    .custom-offcanvas .offcanvas-title {
        font-size: 1.3rem;
        font-weight: 700;
    }

.results-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    padding: 10px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .interface-layout {
        flex-direction: column;
    }

    .navigation-sidebar {
        width: 100%;
        position: static;
    }

    .segment-layout {
        grid-template-columns: 1fr;
    }

    .diagram-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .steel-design-wrapper {
        padding: 20px 0;
    }

    .page-header {
        padding: 40px 24px;
        margin-bottom: 24px;
    }

    .progress-indicator {
        flex-wrap: wrap;
        gap: 12px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .project-inputs {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .results-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .segment-navigation {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 32px 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .form-section {
        padding: 24px 20px;
    }

    .tab-header {
        padding: 24px 20px;
    }

    .info-section {
        padding: 24px;
    }
}


