/* Modal Container */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 60px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background */
}

.modal-dialog { max-width: 90vw; margin: 0 auto; }

/* Modal Content */
.modal-content {
  width: 100%;
  max-width: 1400px;
  height: 80vh;

  margin: 5% auto;
  padding: 20px;

  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  color: #e0e0e0;
  animation: fadeIn 0.5s; /* Smooth fade-in animation */
}

.modal-body { height: 96%; padding:0;}
.modal-body p {
  white-space: pre-line;
}

#container {
  width: 100%;
  height: 100%;
}

.modal-header { border: none !important; }
.modal-footer { padding-bottom: 1.1em; border: none !important; }

.prependDiv {
    color: slategrey;
    font-size: smaller;
}

/* Close Button */
button,
.modal-footer button {
    background: rgba(255, 255, 255, 0.12);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover,
.modal-footer button:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
}


/* Style for modal buttons */ 
.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #eee;
    float: right;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-close {
    position: absolute;
    top: 0.5em;
    left: 1em;
    z-index: 1;
    
    color: #ccc;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.btn-close:hover {
    color: #fff;
}



/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* talstil */
.positive { color: green; } .negative { color: red; }
.timestamp { font-size: 0.75em; color: gray; font-style: italic; float: right; }
