/* Modul-feedback widget */

#modul-feedback-container {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 9000;
}
#modul-feedback-container.er-app {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
}
#modul-feedback-container.er-app .modul-feedback-popup {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.modul-feedback-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #2c3e50;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.modul-feedback-toggle:hover {
    background: #34495e;
}
.modul-feedback-toggle.har-gitt {
    background: #27ae60;
}
.modul-feedback-toggle.har-gitt:hover {
    background: #2ecc71;
}

.modul-feedback-popup {
    position: absolute;
    top: 56px;
    right: 0;
    width: 280px;
    background: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    padding: 12px;
}
#modul-feedback-container.er-app .modul-feedback-popup {
    top: auto;
    bottom: 56px;
}

.modul-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
}
.modul-feedback-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.modul-feedback-kategorier {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.modul-feedback-kategorier .mf-kat {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: #333;
}
.modul-feedback-kategorier .mf-kat:hover {
    background: #ececec;
}
.modul-feedback-kategorier .mf-kat.valgt {
    background: #d6efd8;
    border-color: #27ae60;
}

.modul-feedback-stjerner-wrap {
    margin-bottom: 10px;
    text-align: center;
    opacity: 0.75;
}
.modul-feedback-stjerner-wrap small {
    color: #777;
    display: block;
    margin-bottom: 2px;
}

.modul-feedback-stars {
    font-size: 16px;
    text-align: center;
}
.modul-feedback-stars i {
    color: #ccc;
    cursor: pointer;
    margin: 0 2px;
    transition: color 0.1s;
}
.modul-feedback-stars i.hover,
.modul-feedback-stars i.valgt {
    color: #f1c40f;
}

.modul-feedback-kommentar {
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    margin-bottom: 8px;
    resize: vertical;
    font-size: 12px;
}

.modul-feedback-send {
    width: 100%;
}

.modul-feedback-output {
    margin-top: 6px;
}
.modul-feedback-output .alert {
    margin-bottom: 0;
    padding: 6px 8px;
    font-size: 12px;
}
