/* Modal Background - Improved UI */
#globalSearchModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.65); /* darker, more stylish */
    justify-content: center;
    align-items: flex-start;
    padding-top: 90px;
    z-index: 1100000;
    animation: fadeInModalBg 0.3s ease;
}
@keyframes fadeInModalBg {
    from { background: rgba(30, 41, 59, 0); }
    to { background: rgba(30, 41, 59, 0.65); }
}
.global-search-box h3{
    font-size: 1.1rem ;
}

/* Search Box - Card Style */
.global-search-box {
    width: 440px;
    max-width: 95vw;
    background: linear-gradient(135deg, #fafcff 90%, #e9f0fb 100%);
    padding: 36px 28px 25px 28px;
    border-radius: 18px;
    box-shadow: 0 16px 64px 0 rgba(20,40,100,0.15), 0 1.5px 8px rgba(25,25,112,0.11);
    border: 1px solid #e3eafa;
    position: relative;
    animation: popInGlobalSearch 0.24s cubic-bezier(.48,1.62,.48,1) 1;
}

@keyframes popInGlobalSearch {
    0% { transform: scale(.92) translateY(30px); opacity: .2;}
    100% { transform: scale(1) translateY(0); opacity: 1;}
}

/* Input - Enhanced */
#globalSearchInput {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #bad1fd;
    border-radius: 7px;
    margin-bottom: 16px;
    font-size: 1.13rem;
    background: #f7fafc;
    transition: border-color 0.14s;
    box-shadow: 0 1.5px 8px rgba(190,205,255,.05);
    outline: none;
}
#globalSearchInput:focus {
    border-color: #3c83f6;
    background: #fff;
}

/* Suggestions List - More Stylish */
#globalSearchSuggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 226px;
    overflow-y: auto;
    border: 1.5px solid #e3eafa;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(68,100,200,0.07);
    margin-bottom: 12px;
    scrollbar-color: #aac0e7 #f5f7fb;
    scrollbar-width: thin;
}

#globalSearchSuggestions li {
    padding: 11px 14px;
    cursor: pointer;
    font-size: 1.09rem;
    color: #223344;
    border-bottom: 1px solid #f1f5fa;
    transition: background 0.11s, color 0.11s;
    border-radius: 5px;
    margin: 0 6px;
}
#globalSearchSuggestions li:last-child {
    border-bottom: none;
}

#globalSearchSuggestions li:hover,
#globalSearchSuggestions li.active {
    background: linear-gradient(90deg, #e0edfb 90%, #e4f3ff 100%);
    color: #1443b6;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Close Button */
#globalSearchClose {
    margin-top: 14px;
    display: block;
    width: 100%;
    padding: 11px 0;
    background: linear-gradient(90deg, #3c83f6 60%, #67a2ff 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1.02rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,60,180,.04);
    transition: background .14s;
    outline: none;
    letter-spacing: 0.02em;
}
#globalSearchClose:hover, #globalSearchClose:focus {
    background: linear-gradient(90deg, #265dc5 70%, #5495f8 100%);
    color: #e6eefe;
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
  animation: pop 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 10px;
}

.modal-content button {
  margin-top: 15px;
  padding: 8px 20px;
  border: none;
  background: #28a745;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
