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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2942 0%, #2c3e50 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.measurement-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.sidebar {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.sidebar h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.employees-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.employee-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.employee-item:hover {
    border-color: #2874A6;
    transform: translateX(5px);
}

.employee-item.active {
    background: #2874A6;
    color: white;
    border-color: #2874A6;
}

.employee-item .name {
    font-weight: 600;
    margin-bottom: 3px;
}

.employee-item .id {
    font-size: 12px;
    opacity: 0.7;
}

.empty-message {
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    padding: 20px;
}

.main-form {
    min-width: 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 250px;
    height: auto;
}

.logo-container-small {
    text-align: center;
    margin-bottom: 20px;
}

.logo-small {
    max-width: 225px;
    height: auto;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

h1 {
    color: #2d3748;
    font-size: 28px;
    margin-bottom: 10px;
}

h3 {
    color: #4a5568;
    font-size: 18px;
    margin: 25px 0 15px 0;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.subtitle {
    color: #718096;
    margin-bottom: 30px;
}

.customer-badge {
    background: #2874A6;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2874A6;
    box-shadow: 0 0 0 3px rgba(40, 116, 166, 0.1);
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    color: #4a5568;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary {
    background: #2874A6;
    color: white;
}

.btn-primary:hover {
    background: #1F618D;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 116, 166, 0.3);
}

.btn-secondary {
    background: #17A589;
    color: white;
}

.btn-secondary:hover {
    background: #138D75;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(23, 165, 137, 0.3);
}

.btn-link {
    background: transparent;
    color: #2874A6;
    padding: 10px;
    text-decoration: none;
    font-size: 14px;
}

.btn-link:hover {
    background: #f7fafc;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.logout-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 900px) {
    .measurement-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        max-height: 300px;
    }
    
    .card {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: 24px;
    }
}

/* Forbedret select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    flex: 0 0 auto;
    min-width: 120px;
}
