body{font-family:sans-serif; margin:0; background:#f5f5f5;}
.header{display:flex; justify-content:space-between; align-items:center; padding:10px 16px; background:#333; color:#fff;}
.header a{color:#fff; text-decoration:none;}
.main{padding:16px;}
.card{background:#fff; padding:16px; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.15); margin-bottom:16px;}
.btn{padding:8px 16px; border:none; border-radius:8px; cursor:pointer;}
.btn.primary{background:#0078d7; color:#fff;}
.input{padding:8px; border-radius:6px; border:1px solid #ccc;}
.list{list-style:none; padding:0; margin:0;}
.list li{padding:8px; border-bottom:1px solid #eee; cursor:pointer;}
.list li:hover{background:#f0f0f0;}
.grid{display:grid; gap:16px;}
.grid.twocol{grid-template-columns:1fr 2fr;}
.imgbox{min-height:200px; display:flex; justify-content:center; align-items:center; overflow:auto;}
img{max-width:100%; height:auto; border-radius:8px;}

/*.logo {
  height: 40px;
  background: #eee;
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}*/
/* keep container styles */
.logo {
    height: 40px; /* increase from 40px */
    background: #eee;
    border-radius: 8px;
    padding: 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

    /* new style for the img */
    .logo img {
        max-height: 100%; /* scale inside container */
        width: auto; /* keep aspect ratio */
    }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disable button style while loading */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    #loadingOverlay .spinner {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-top: 4px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    #loadingOverlay .loading-text {
        margin-top: 15px; /* Space between spinner and text */
        font-size: 1.2em;
        color: #555;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.content-hidden {
    display: none;
}

