﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.form-section {
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    gap: 15px;
    margin-left: 15px;
    margin-right: 15px;
}

.form-container {
    background: #f4f4f4;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 auto;
}




.page-header {
    background: linear-gradient(135deg, #0077cc, #005aa3);
    color: white;
    padding: 30px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    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;
    }

.page-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.95;
    max-width: 90%;
    margin: 0 auto;
}

.container1 {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.header1 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    text-align: center;
}

    .header1 h1 {
        font-size: 2rem;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .header1 p {
        font-size: 1rem;
        opacity: 0.9;
    }

.input-section, .results-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #dee2e6;
}

.section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.section-title2 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin: 15px 15px 15px 15px;
}

.form-group {
    margin-bottom: 15px;
}

.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;
}

    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);
    }

.btn1 {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

    .btn1:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    }



    .btn1:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.results-grid {
    display: grid;
    gap: 15px;
}

.result-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

    .result-card h3 {
        color: #2c3e50;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

    .result-item:last-child {
        border-bottom: none;
    }

.result-label {
    font-weight: 500;
    color: #34495e;
}

.result-value {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .status.pass {
        background: #d4edda;
        color: #155724;
    }

    .status.fail {
        background: #f8d7da;
        color: #721c24;
    }

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 3px solid #ffc107;
}

.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 3px solid #17a2b8;
}

.tab-container1 {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: auto;
}

.tab {
    flex: 1;
    padding: 15px 15px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .tab.active {
        background: #3498db;
        color: white;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }



.visualization-section {
    background: white;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    border: 2px solid #dee2e6;
}

.connection-preview {
    border: none;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 0px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}


.results-section {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.report-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    padding: 10px;
}


/*.connection-preview svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

#connection-elevation-container,
#connection-section-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;*/ /* Allow scrolling if SVG is larger */
/*}*/


/* container alignment: pin drawings to top-left and avoid scrollbars messing with vertical position */
#connection-elevation-container,
#connection-section-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* pin to top */
    overflow: hidden; /* avoid scrollbar offsets; if you need scrolling later change carefully */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ensure svg sits flush and uses its own pixel size */
.connection-preview svg {
    display: block;
    max-width: none; /* don't constrain by CSS percentage scaling */
    max-height: none;
    width: auto; /* we'll set explicit px width/height from JS */
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.primary-action {
    background: var(--primary2, #0077cc);
    color: white;
}

    .primary-action:hover {
        background: #005aa3;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 119, 204, 0.3);
    }

.secondary-action {
    background: var(--surface, #f8fafc);
    color: var(--text2, #1a1a1a);
    border: 2px solid #e2e8f0;
}

    .secondary-action:hover {
        background: #e2e8f0;
        transform: translateY(-2px);
    }

.analyze-btn {
    background: linear-gradient(135deg, var(--success, #10b981) 0%, #059669 100%);
    color: white;
}

    .analyze-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    }

.export-btn {
    background: linear-gradient(135deg, var(--accent2, #ea4c89) 0%, #db2777 100%);
    color: white;
}

    .export-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(234, 76, 137, 0.3);
    }

.two-column-table {
    width: 100%;
    border-collapse: collapse;
}

    .two-column-table th {
        background-color: #f0f0f0;
        padding: 8px;
        text-align: left;
        border: 1px solid #ddd;
        font-weight: bold;
    }

    .two-column-table td {
        padding: 6px 8px;
        border: 1px solid #ddd;
        vertical-align: top;
    }

    .two-column-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .two-column-table td:nth-child(1),
    .two-column-table td:nth-child(3) {
        font-weight: 500;
        width: 25%;
    }

    .two-column-table td:nth-child(2),
    .two-column-table td:nth-child(4) {
        width: 25%;
    }

/* Responsive Design */
@@media (max-width: 1200px) {
    /*    .main-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .header h1 {
                font-size: 2.5rem;
            } */
}

@@media (max-width: 768px) {
    .form-container {
        padding: 0px;
        margin: 5px;
    }

    .page-header .input-section .form-section .visualization-section {
        padding: 0px;
        margin: 0px;
    }

    .btn1 {
        /*    background: linear-gradient(135deg, #3498db, #2980b9);
                color: white;
                border: none; */
        padding: 10px 10px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 700;
        /*  cursor: pointer;
                transition: all 0.3s ease;
                width: 100%;
                margin-top: 20px; */
    }
    /*    .tabs {
                display: none;
            } */
}


@@media (max-width: 480px) {
    .tabs {
        display: block;
    }

    .tab {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.7rem;
        font-weight: 700;
        color: black;
    }

    label {
        font-size: 0.7rem;
        font-weight: 500;
    }



    input[type="number"],
    input[type="text"],
    select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e8f4f8;
        border-radius: 8px;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        background: #fafafa;
        color: black;
    }



}


