/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Login page styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-box h1 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 8px;
}

.login-box p {
    color: #718096;
    margin-bottom: 24px;
}

/* Portal header styles */
.portal-header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 24px;
    color: #2d3748;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

#userEmail {
    color: #4a5568;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #5a67d8;
}

/* Portal main content styles */
.portal-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.portal-main h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 24px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.app-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.app-icon i {
    font-size: 24px;
}

.app-icon.blue { background: #4299e1; }
.app-icon.green { background: #48bb78; }
.app-icon.purple { background: #9f7aea; }
.app-icon.orange { background: #ed8936; }
.app-icon.gray { background: #718096; }

.app-info h3 {
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 4px;
}

.app-info p {
    color: #718096;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }

    .portal-main {
        padding: 24px 16px;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        gap: 8px;
    }

    #userEmail {
        /* display: none; */
		font-size : 0.7em;
    }

    .logout-btn {
        padding: 6px 12px;
    }

    .logout-btn span {
        display: none;
    }
}