/* ==== General Styling ==== */
body {
    font-family: 'Inter', 'Helvetica', sans-serif;
    background: #f7f9fc;
    color: #212529;
}

/* Card Styling */
.card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Input Fields */
input.form-control {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
    height: 42px;
    width: 60px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

input.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 6px rgba(13,110,253,0.2);
}

/* Tables */
.table th, .table td {
    vertical-align: middle;
    font-size: 0.95rem;
}



/* Graph Cards */
.graph-wrapper .card {
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.graph-wrapper .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ==== Modern Tabs ==== */
.nav-pills .nav-link {
    border-radius: 12px 12px 0 0;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0;
    border: none;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-pills .nav-link:hover {
    background-color: #e2e6ea;
    color: #0d6efd;
}

/* Tab Content Styling */
.tab-content {
    border-radius: 0 12px 12px 12px;
    padding: 1.25rem;
    background-color: #fff;
    font-size: 0.95rem;
    color: #212529;
    border: none;
}

/* Nested Tabs inside Loads */
#loadSubTab .nav-link {
    border-radius: 8px 8px 0 0;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0;
    border: none;
}

#loadSubTab .nav-link.active {
    background-color: #6c757d;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#loadSubTabContent {
    border-radius: 0 8px 8px 8px;
    padding: 1rem;
    background-color: #f8f9fa;
    border: none;
}

/* Responsive adjustments */
@media(max-width: 768px){
    .main-content { padding: 1rem !important; }
    .graph-wrapper .card { margin-bottom: 1rem; }
    .nav-pills .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .nav-pills { flex-wrap: wrap; }
    .nav-pills .nav-item {
        margin-right: 0.15rem;
        margin-bottom: 0.15rem;
    }
}


.graph-wrapper canvas { 
    width: 100% !important; 
    height: 300px !important; 
}
@media (max-width: 768px) { 
    .graph-wrapper canvas { height: 250px !important; } 
}

.beam-diagram {
    width: 100%;
    height: 300px; 
    border: 1px solid #ccc;
    border-radius: 12px;
    position: relative;
    background: linear-gradient(to bottom, #f9f9f9, #e9ecef);

}
@media (max-width: 768px) {
    .beam-diagram { height: 250px; }
}

