/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Body Styling */
body {
    background: linear-gradient(to right, #e3f2fd, #fefefe);
    color: #2c3e50;
}

/* Layout Wrapper */
.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar (Loaded via fragment) */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 40px;
    background-color: #ecf0f1;
    overflow-y: auto;
}

/* Headings */
.main-content h1,
.main-content h2,
.main-content h3 {
    color: #2980b9;
}

/* Form Table Styling */
.table select,
.table input {
    width: 100%;
}

/* Result Table Styling */
.table-bordered th {
    background-color: #3498db;
    color: white;
    text-align: center;
}

.table-bordered td {
    background-color: #ffffff;
    vertical-align: middle;
    font-size: 15px;
}

/* Buttons */
.btn-primary {
    background-color: #2980b9;
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1e6ea7;
}

.btn-success {
    background-color: #27ae60;
    border: none;
}

.btn-success:hover {
    background-color: #1f8a4c;
}

/* Result Container */
#resultContainer {
    animation: fadeIn 0.5s ease-in-out;
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
