/* Apply border-box sizing universally */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0; /* Remove body padding */
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0; /* Vertical padding only */
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0; /* Remove bottom padding if not needed */
}

.site-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #333; /* Ensure contrast */
}

/* Language Switcher */
.lang-switcher {
    font-size: 0.9em;
    display: flex; /* Align label and select nicely */
    align-items: center;
}

.lang-switcher label {
    margin-right: 5px; /* Space between label and select */
    color: #555; /* Match button text color */
}

#langSelect { /* Style the dropdown */
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit; /* Use Roboto */
    font-size: 0.9em;
    cursor: pointer;
    margin-left: 5px;
    /* Add more styling as needed, e.g., height, focus outline */
    transition: border-color 0.2s ease;
}

#langSelect:focus {
    border-color: #2BDAEC; /* Use primary color on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 218, 236, 0.25); /* Optional focus glow */
}

.lang-switcher span {
    margin-right: 5px;
}

/* Main Content & App Grid */
main.container {
    flex-grow: 1; /* Ensure footer stays at bottom */
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between cards */
}

.app-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-card img.app-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    align-self: flex-start; /* Align icon to the top-left */
    object-fit: contain; /* Prevent distortion */
}

.app-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
}

.app-card p {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1; /* Push link to the bottom */
    margin-bottom: 15px;
}

.app-card a.app-link {
    display: inline-block;
    background-color: #2BDAEC;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start; /* Align link button */
}

.app-card a.app-link:hover {
    background-color: #1FAAB8; /* Darker shade */
}

/* Footer */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px 0;
    margin-top: 40px; /* Space above footer */
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    .site-header h1 {
        margin-bottom: 10px;
        text-align: center;
    }
    .lang-switcher {
        margin-top: 10px;
    }
    .app-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}