/* css/visning.css */

/* Bruker body-styling fra global.css, men kan legge til spesifikk justering for visningssiden */
body.visning-page {
    /* Legg til denne klassen på body i visning.html */
    background-color: #FFF8F0;
    /* Dus varm farge (kremfarget/lys fersken) */
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.notification-bell {
    font-size: 28px;
    color: #FFA726;
    cursor: pointer;
    position: relative;
}

.notification-bell .dot {
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    border: 2px solid white;
}

.screen-id-header-display {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #555;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.screen-id-header-display #activeScreenIdText {
    font-weight: bold;
    color: #333;
}

.main-container-wrapper {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}

.main-stream-content,
.app-portal-content,
.app-view-container,
.qr-setup-content {
    flex-grow: 1;
    width: 100%;
}

.main-stream-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.image-area {
    flex: 3;
    background-color: #2c3e50;
    /* Mørk bakgrunn for "letterboxing" */
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-area img {
    width: 100%;
    height: 100%;
    /* KORRIGERT HER: Endret fra 'cover' til 'contain' */
    object-fit: contain;
    display: none;
}

.image-area img.active {
    display: block;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.slideshow-btn:hover {
    opacity: 1;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.text-status-area {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.status-post {
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-post h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #555;
}

.status-post p {
    margin-bottom: 5px;
    font-size: 1em;
    line-height: 1.4;
}

.status-post .author {
    font-size: 0.9em;
    color: #777;
    text-align: right;
}

.app-portal-content {
    display: none;
    padding: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.app-portal-content h2 {
    font-size: 1.8em;
    color: #2C3E50;
    margin-bottom: 30px;
}

.app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.app-icon {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.app-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.app-icon i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #FFA726;
}

.app-icon span {
    font-size: 1em;
}

.app-icon span {
    font-size: 1em;
}

.app-view-container {
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.app-view-header {
    background-color: #E0E0E0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-view-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #2C3E50;
}

.app-view-container iframe {
    flex-grow: 1;
    border: none;
    width: 100%;
    height: 100%;
}

.qr-setup-content {
    display: none;
    padding: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qr-setup-content h2 {
    font-size: 1.8em;
    color: #2C3E50;
    margin-bottom: 20px;
}

.qr-setup-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    max-width: 500px;
}

#qrcodeCanvas {
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

#qrcodeCanvas img {
    display: block;
    margin: auto;
}

.screen-id-display {
    font-size: 1em;
    color: #777;
    margin-top: 15px;
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
}

.qr-manual-link-info {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

.qr-manual-link-info strong {
    color: #3498DB;
    word-break: break-all;
    /* For lange URLer */
}


.footer {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Behøver ikke sticky hvis det ikke er scrolling på body */
    z-index: 10;
}

.footer-btn {
    /* Bruker .btn fra global.css som base for farge/hover, men spesifikk størrelse/form her */
    background-color: #FFA726;
    /* Standard oransje for app-velger */
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.footer-btn:hover {
    transform: scale(1.1);
}

#homeBtn {
    background-color: #3498DB;
    /* Blå for hjem */
}

#backToPortalBtn {
    background-color: #2ECC71;
    /* Grønn for tilbake til portal */
}

/* Skjul knapper som standard, vises via JS */
#homeBtn,
#backToPortalBtn {
    display: none;
}


/* css/visning.css */

/* ... (eksisterende CSS-regler for visning.css) ... */

/* NY STYLING FOR SKJERM ID I HEADER */
.screen-id-header-display {
    position: absolute;
    /* Posisjonerer i forhold til header */
    left: 20px;
    /* Plassering til venstre */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #555;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.screen-id-header-display #activeScreenIdText {
    font-weight: bold;
    color: #333;
}

/* Juster header for å gi plass hvis nødvendig, 
   eller hvis du vil ha ID-en et annet sted */
.header {
    justify-content: flex-end;
    /* Standard, bjelle til høyre */
    /* Hvis du vil ha ID og bjelle på hver sin side: */
    /* justify-content: space-between; */
}

/* ... (resten av dine eksisterende CSS-regler for visning.css) ... */