/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* Header Styles */
header {
    background-color: #E6E6FA; /* Light purple */
    color: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #4B0082; /* Dark purple */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: space-around;
}

header nav ul li a {
    color: #4B0082; /* Dark purple */
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

header nav ul li a:hover {
    background-color: #D8BFD8; /* Light Slate Gray */
}

/* Header Top Styles */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
}

.search-bar input[type="text"] {
    padding: 8px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 200px;
}

.search-bar button {
    background-color: #D8BFD8; /* Light Slate Gray */
    color: #4B0082; /* Dark purple */
    border: none;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* User Profile Styles */
.user-profile {
    background-color: #9370DB; /* Medium Purple */
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info h3 {
    margin: 0;
    font-size: 18px;
}

.user-info p {
    margin: 0;
    font-size: 14px;
}

/* Main Styles */
main {
    padding: 20px;
}

section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Dashboard Styles */
#dashboard {
    display: flex;
    flex-direction: column;
}

.dashboard-welcome {
    background-color: #9370DB; /* Medium Purple */
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dashboard-welcome p {
    margin: 0;
}

.dashboard-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.dashboard-section {
    width: calc(50% - 10px); /* Two columns layout */
    margin-bottom: 20px;
    box-sizing: border-box;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#enrolled-courses, #daily-notices {
    width: 100%; /* Full width for these sections */
}

/* Finance Section */
.finance-cards {
    display: flex;
    justify-content: space-around;
}

.finance-cards .card {
    background-color: #E6E6FA; /* Light purple */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #4B0082; /* Dark purple */
    width: 30%;
}

/* Course Instructors Section */
#course-instructors .instructor-profiles {
    display: flex;
    align-items: center;
}

#course-instructors .instructor-profiles img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Daily Notices Section */
#daily-notices .notices {
    display: flex;
    flex-direction: column;
}

#daily-notices .notices .notice-item {
    background-color: #E6E6FA; /* Light purple */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #4B0082; /* Dark purple */
}

/* Enrolled Courses Section */
#enrolled-courses .course-cards {
    display: flex;
    justify-content: space-around;
}

#enrolled-courses .course-cards .card {
    background-color: #E6E6FA; /* Light purple */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #4B0082; /* Dark purple */
    width: 45%;
}

#enrolled-courses .course-cards .card button {
    background-color: #D8BFD8; /* Light Slate Gray */
    color: #4B0082; /* Dark purple */
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    width: 300px;
}

label {
    margin-top: 10px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #4B0082; /* Dark purple */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button{
    background-color: #4B0082; /* Dark purple */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#academic-results{}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}
/* Flex container styles */
.flex-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
}

.flex-container > * {
    margin-bottom: 10px; /* Add some space between elements */
}

/* Notices Section */
.notices-section {
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden; /* Hide scrollbar */
}

.notices-header {
    background-color: #1e363f; 
    color: white;
    padding: 10px 20px;
}

.notices-header a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.notices-header i {
    margin-right: 10px;
}

.notices-slider {
    overflow: hidden;
    position: relative;
}

.notices-container {
    display: flex;
    white-space: nowrap;
    animation: slideNotices 15s linear infinite; 
    animation-direction: ltr; 
}

.notice {
    padding: 10px 20px;
}

.notice a {
    text-decoration: none;
    color: #eb8a0be5;
    display: block; 
}

.notice a:hover,
.notice a.selected {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

@keyframes slideNotices {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%); /* Adjust based on content width */
    }
}

/* Grid Layout */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.section-box {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section-box h2 {
    margin-top: 0;
}

.section-box button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #f8a203;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.section-box button a {
    color: white;
    text-decoration: none;
}

.section-box button:hover {
    background-color: #f5a106;
}
