/* Reset and base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a3c5e;
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

header nav ul li a:hover {
    text-decoration: underline;
}

header #btn_LoginRegister {
    background-color: #f4c430;
    color: black;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
}

header #btn_LoginRegister:hover {
    background-color: #e0b028;
}

/* Layout structure */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Aside styles */
#leftAside, #rightAside {
    width: 200px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    margin: 20px 0;
}

#leftAside {
    /* Placeholder for AI recommendations */
}

#rightAside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#rightAside_a a {
    display: block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

#rightAside_a a:hover {
    text-decoration: underline;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Button styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Performance table styles */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    display: table !important;
    visibility: visible !important;
    border: 1px solid #ddd;
}

.performance-table th, .performance-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.performance-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.performance-table .show-more {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.performance-table .show-more:hover {
    text-decoration: underline;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    header nav ul {
        display: none; /* Hide nav items by default on mobile */
    }

    header h1:hover + nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #1a3c5e;
        width: 100%;
    }

    header nav ul li {
        margin: 10px 0;
    }

    main {
        height: 50vh;
        overflow-y: auto;
        margin: 10px;
    }

    #leftAside, #rightAside {
        width: 100%;
        margin: 10px 0;
    }

    #rightAside {
        position: fixed;
        top: 55%;
        right: 0;
        width: 200px;
        z-index: 1000;
        background-color: #f4f4f4;
        padding: 10px;
    }
}