﻿/* ===== FÆLLES STYLES FOR USER SIDER ===== */
.page-container {
    width: 100%;
    min-height: 100vh;
    background-color: #47493B;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.page-title {
    color: #FAF9F3;
    font-size: 1.5rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1.5rem;
}

/* ===== SØGEFELT ===== */
.search-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    background-color: #FAF9F3;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #47493B;
    box-sizing: border-box;
}

    .search-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(202, 209, 188, 0.3);
    }

    .search-input::placeholder {
        color: #A8A8A8;
    }

/* ===== TOGGLE ===== */
.toggle-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FAF9F3;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ===== MEDARBEJDER LISTE ===== */
.user-list {
    width: 100%;
    max-width: 400px;
    background-color: #FAF9F3;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.2s ease;
}

    .user-row:last-child {
        border-bottom: none;
    }

    .user-row:hover {
        background-color: #F0F0E8;
    }

.user-name {
    color: #47493B;
    font-size: 0.95rem;
    font-weight: 500;
}

.user-arrow {
    color: #47493B;
    font-size: 1.2rem;
}

/* Inaktive brugere vises nedtonet */
.user-inactive .user-name {
    color: #A8A8A8;
}

/* ===== FORMULAR ===== */
.form-container {
    width: 100%;
    max-width: 400px;
    background-color: #FAF9F3;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}

/* ===== KNAPPER ===== */
.btn-primary {
    width: 100%;
    max-width: 400px;
    background-color: #CAD1BC;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #757575;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

    .btn-primary:hover {
        background-color: #B8C0AA;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-danger {
    width: 100%;
    max-width: 400px;
    background-color: #C0392B;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #FAF9F3;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

    .btn-danger:hover {
        background-color: #A93226;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-danger:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-success {
    width: 100%;
    max-width: 400px;
    background-color: #4CAF50;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #FAF9F3;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

    .btn-success:hover {
        background-color: #45A049;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-success:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ===== FEJL OG SUCCES BESKEDER ===== */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

/* ===== MOBIL ===== */
@media (max-width: 480px) {
    .page-container {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .user-row {
        padding: 0.75rem 1rem;
    }

    .form-container {
        padding: 1rem;
    }

    .btn-primary,
    .btn-danger,
    .btn-secondary {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}
