/* Container to center everything */
.container {
    position: relative;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal background overlay */
.modal {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), visibility 0.5s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(4px);
    /* Add this to ensure min-height is 100vh for vertical centering */
    min-height: 100vh;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), visibility 0s 0s;
}

/* Modal content box with cool animation */
.modal-content {
    position: relative;
    background: linear-gradient(135deg, #fff 60%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 12px 48px 0 rgba(0,0,0,0.25), 0 1.5px 6px 0 rgba(0,0,0,0.08);
    width: 80vw;
    max-width: 98vw;
    min-width: 0;
    height: 70vh;
    top: 15vh;
    max-height: 70vh;
    min-height: 200px;
    padding: 2.5em 2em 2em 2em;
    opacity: 0;
    transform: scale(0.85) translateY(60px) rotateX(20deg);
    animation: modalPopIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid #e0eaff;
    margin: 0 auto;
    box-sizing: border-box;
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(60px) rotateX(20deg);
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px) rotateX(0deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

.close-btn, .close {
    color: #aaa;
    position: absolute;
    right: 1.2em;
    top: 1.2em;
    font-size: 2.2em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 10001;
    background: none;
    border: none;
    outline: none;
}
.close-btn:hover, .close:hover {
    color: #007bff;
    transform: scale(1.2) rotate(10deg);
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 1.2em;
    font-size: 1.5em;
    color: #2a3a4a;
    letter-spacing: 0.02em;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.07);
    animation: fadeInText 1s 0.2s both;
}
@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content input[type="text"], .modal-content input[type="search"] {
    width: 95%;
    padding: 0.8em 1em;
    border-radius: 8px;
    border: 1.5px solid #b6d0f7;
    font-size: 1.1em;
    margin-bottom: 1.2em;
    background: #f7fbff;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    animation: fadeInText 1s 0.3s both;
}
.modal-content input[type="text"]:focus, .modal-content input[type="search"]:focus {
    border: 1.5px solid #007bff;
    box-shadow: 0 2px 12px #e3f0ff;
}

.modal-content button, .modal-content .btn {
    background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7em 2.2em;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    cursor: pointer;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    transition: background 0.2s, transform 0.2s;
    animation: fadeInText 1s 0.4s both;
}
.modal-content button:hover, .modal-content .btn:hover {
    background: linear-gradient(90deg, #0056b3 60%, #00aaff 100%);
    transform: scale(1.07);
}

#modalResult {
    margin-top: 1.2em;
    width: 100%;
    min-height: 2em;
    font-size: 1.1em;
    color: #2a3a4a;
    animation: fadeInText 1s 0.5s both;
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .modal-content {
        width: 95vw;
        max-width: 98vw;
        min-width: 0;
        height: 80vh;
        max-height: 80vh;
        padding: 1.2em 0.5em 1.5em 0.5em;
    }
}
@media (max-width: 600px) {
    .modal-content {
        width: 99vw;
        max-width: 99vw;
        min-width: 0;
        height: 95vh;
        max-height: 95vh;
        padding: 0.7em 0.2em 1em 0.2em;
        border-radius: 10px;
    }
    .modal-content input[type="text"], .modal-content input[type="search"] {
        font-size: 1em;
    }
    .modal-content button, .modal-content .btn {
        font-size: 1em;
        padding: 0.7em 1.2em;
    }
}

/* 
main {
}
.gridcontainer {
  
  width: 100%;
}
.dashrow {
  display: grid;
  gap: 0.5rem;
}
.row1 {
  grid-template-columns: 2fr 1fr 1fr 2fr 2fr;
}

.row2 {
  grid-template-columns: 4fr 1fr 1fr 2fr;
  margin-top: 0.5rem;
}

.row3 {
  grid-template-columns: 2fr 2fr 4fr;
  margin-top: 0.5rem;
} */

.visual {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 4rem;
  border-radius: 6px;
  box-shadow: 2px 3px 8px rgb(0, 0, 0, 0.25);
  transition: all 150ms ease-in;
}

.visual:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 6px 8px rgb(0, 0, 0, 0.45);
  color: black;
  backdrop-filter: blur(8px);
  cursor: pointer;
  scale: 1.2;
  z-index: 2;
}


.mtable {
    border: 1px solid rgb(108, 108, 108);
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    padding: 10px;
}
.mtable td, .table th {
    border: 1px solid rgb(108, 108, 108);
    padding: 20px;
}
.micon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.micon img {
    width: 24px;
    height: 24px;
}

/* Make sure the outer container takes up the full available space */
.mcontainer {
  height: 280px; /* You can change this to whatever height you need */
  width: 100%; /* Take up the full width of the parent */
}

/* The grid itself */
.mparent {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
  grid-template-rows: repeat(2, 1fr); /* 2 equal-height rows */
  height: 100%; /* Full height of the .container */
  width: 100%; /* Full width of the .container */
}

.mchild {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc; /* Optional for visualization */
  background-color: #f0f0f0; /* Optional for visualization */
}
