* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inloggningssidan */
.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
}

.login-box h1 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.login-box label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.login-box input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 0.7rem;
    background: #2c6fad;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-box button:hover {
    background: #245d94;
}

.error {
    background: #fde8e8;
    color: #c0392b;
    padding: 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Portalsidan */
.portal {
    width: 100%;
    max-width: 900px;
    padding: 1rem;
    align-self: flex-start;
    margin-top: 2rem;
}

.portal header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2c6fad;
    margin-bottom: 2rem;
}

.portal header h1 {
    font-size: 1.5rem;
}

.logout {
    font-size: 0.9rem;
    color: #2c6fad;
    text-decoration: none;
}

.logout:hover {
    text-decoration: underline;
}

/* App-kort på portalsidan */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    border-left: 4px solid #2c6fad;
    transition: box-shadow 0.15s;
}

.app-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-card h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #2c6fad;
}

.app-card p {
    font-size: 0.85rem;
    color: #666;
}
