/* --- General Body and Page Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
    padding-bottom: 60px; /* Add padding to prevent footer from overlapping content */
}

/* --- Floating Fixed Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}
#eesl_logo{
    width: 150px;
    padding-bottom: 0px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 40px 40px;
}

header {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between; /* Aligns title left, search right */
    align-items: center; /* Vertically centers the items */
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
}

.app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}
.app-tile {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 25px 20px;
    width: 160px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.app-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain; /* Ensures the image scales correctly */
}

.app-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #34495e;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .top-bar {
        padding: 15px 20px;
    }

    .container {
        padding: 90px 20px 20px 20px;
    }

    .app-grid {
        gap: 20px;
    }
    
    .app-tile {
        width: calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .app-tile {
        width: 100%;
        padding: 20px;
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f60909; /* A dark color consistent with the theme */
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15); /* Shadow for depth */
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

#searchInput {
    width: 100%;
    max-width: 450px; /* Adjust width as needed */
    padding: 12px 20px;
    margin-top: 15px; /* Space between title and search bar */
    font-size: 1em;
    border: 1px solid #dfe4ea;
    border-radius: 25px; /* Rounded for a modern look */
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#searchInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.app-section {
    margin-bottom: 40px; /* Adds space between categories */
}

.section-title {
    font-size: 1.2em;
    color: #34495e;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}