﻿    /* Modal Overlay (Backdrop) */
    .modal-overlay {
      display: none; /* Hidden by default */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      transition: opacity 0.3s ease;
    }


    /* Modal Content Box */
    .modal {
      width: 90%;
      max-width: 500px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      transform: scale(0.9);
      transition: transform 0.3s ease;
	    display: flex;
  flex-direction: column;
  max-height: 80vh; /* Prevents modal from exceeding screen */
    }


    /* Modal Header */
    .modal-header {
      padding: 16px 20px;
      background-color: rgb(134,149,191,0.1);
      border-bottom: 1px solid #eee;
      /*display: flex;
      justify-content: space-between;*/
      align-items: center;
    }


    .modal-title {
      margin: 0;
      font-size: 1.25rem;
      color: #333;
    }


    .modal-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #aaa;
      cursor: pointer;
      padding: 0;
      width: 30px;
      text-align: center;
    }


    .modal-close:hover {
      color: #000;
    }


    /* Modal Body */
    .modal-body {
      padding: 20px;
      color: #1e2126;
  flex: 1;
  max-height: 40vh;
  overflow-y: auto;
    }


    /* Modal Footer */
    .modal-footer {
      padding: 16px 20px;
      background-color: rgb(134,149,191,0.1);
      border-top: 1px solid #eee;
      text-align: right;
    }


    .btn-close, .btn-confirm {
      padding: 8px 16px;
      margin-left: 10px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }


    .btn-close {
      background-color: transparent;
      color: #78664e;
	  border:1px solid #78664e;
    }


    .btn-confirm {
      background-color: #007bff;
      color: white;
    }


    .btn-close:hover {
      background-color: #693a18;
	  color:#fff;
    }


    .btn-confirm:hover {
      background-color: #0056b3;
    }


    /* Show Modal */
    .modal-overlay.show {
      display: flex;
      opacity: 1;
    }


    .modal-overlay.show .modal {
      transform: scale(1);
    }