.gsi-portal-tabs-container {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}
       button#openAddCategory{
        font-family: "Montserrat", sans-serif;
       }
      /* Always bouncing */


.gsi-portal-tabs-container {
    display: flex;
   
    max-width: 100%;
   gap:20px
}
        
  
         .gsi-sidebar {
            width: 240px;
            flex-shrink: 0;
            border-radius: 24px;
            display: flex;
            flex-direction: column;
            padding: 20px 0px;
            min-height: 500px;
        }
        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
              font-family: "Montserrat", sans-serif;
             font-optical-sizing: auto;
        }
        
        .sidebar-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
              font-family: "Montserrat", sans-serif;
           font-optical-sizing: auto;
        }
        
        .category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
 
        
        .category-item:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }
        button.gsiCatDelete {
                background-color: #f95454;
                color: #fff;
            }
            .catbuttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
        .category-icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
        span.editCategory i {
    font-size: 12px;
}
        .category-name {
            font-weight: 500;
            font-size: 16px;
        }
        
        /* Main Content Styles */
       .gsi-main-content {
            flex: 1;
            overflow-y: auto;
        }
        
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 7.5px -2px rgba(0, 0, 0, .25);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}
        
      
        
      .documents-container {
            padding: 0 15px;
            border: 1px solid #ddd;
            border-radius: 20px;
            box-shadow: 0 0 7.5px -2px rgba(0, 0, 0, .25);
        }
        
        /* Document Item Styles */
        .document-item {
            display: flex;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid #e2e8f0;
            transition: all 0.2s ease;
        }
        
        .document-item:last-child {
            border-bottom: none;
        }
        
        .document-item.selected {
            background: #f0fff4;
        }
        
        .document-checkbox {
            margin-right: 16px;
            position: relative;
        }
        
        .document-check {
            width: 18px;
            height: 18px;
            margin: 0;
            cursor: pointer;
            opacity: 0;
            position: absolute;
        }
        
        .document-check + label {
            display: block;
            width: 18px;
            height: 18px;
            border: 2px solid #cbd5e0;
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            background: #fff;
            transition: all 0.2s ease;
        }
        
        .document-check:checked + label {
            background: #48bb78;
            border-color: #48bb78;
        }
        
        .document-check:checked + label::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 12px;
            font-weight: bold;
        }
        
     .document-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }
       .document-title {
            color: #2d3748;
            font-size: 16px;
            font-weight: 500;
        }
        
        .document-download-btn {
            background: #4299e1;
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .document-download-btn:hover {
            background: #3182ce;
            transform: translateY(-1px);
            color: #fff;
            text-decoration: none;
        }
        
        .no-documents {
            text-align: center;
            padding: 60px 20px;
            color: #a0aec0;
        }
        
        .no-documents i {
            font-size: 3rem;
            margin-bottom: 16px;
            display: block;
        }
        
        .no-documents p {
            margin: 0;
            font-size: 16px;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .gsi-portal-tabs-container {
                flex-direction: column;
            }
            
            .gsi-sidebar {
                width: 100%;
                max-height: 300px;
                overflow-y: auto;
                min-height: unset;
            }
            
            .category-item.active::after {
                display: none;
            }
            .content-header, .documents-container {
                padding-left: 20px;
                padding-right: 20px;
                flex-direction: column;
                gap: 5px;
            }
        }
        
        @media (max-width: 576px) {
            .content-header h2 {
                font-size: 20px;
            }
            
            .document-item {
                padding: 12px 0;
            }
            
            .document-title {
                font-size: 13px;
            }
        }
		
	.content-header h2 {
            text-align: center;
            color: #000;
            margin: 0;
            font-size: 20px;
            padding: 10px;
        }

    .content-header h2 {
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 27.43px;
    text-align: left;
    color: #584c4e;
}

.document-content a i {
    color: #5f5b40;
    font-size: 20px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 40px);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
}

.icon-grid i {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.icon-grid i:hover,
.icon-grid i.selected {
    background: #007cba;
    color: #fff;
}
#addCategoryPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
     transform: translate(-50%, -50%) rotateY(-90deg);
    transform-origin: left center;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);

    z-index: 1000;
}
#addCategoryPopup{
    position: fixed;
    top: 50%;
    left: 50%;
  width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #ccc;
    transform: translate(-50%, -50%) rotateY(-90deg);
    transform-origin: left center;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
}
#addCategoryPopup.show {
    transform: translate(-50%, -50%) rotateY(0deg);
    opacity: 1;
}
.popup_overly {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    animation: popupFadeIn 0.3s ease-out;
    position: relative;
}
span.gsi_close_icon {
    position: absolute;
    top: -5px;
    right: 9px;
    font-size: 32px;
    color: #ef5656;
    font-weight: 700;
    transform: rotate(45deg);
    cus: revert;
    cursor: pointer;
}
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup_overly h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.popup_overly label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

#gsiCatName {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#gsiCatName:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#gsiCatName::placeholder {
    color: #aaa;
}

.popup_overly button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-top: 15px;
}

#saveCategory {
    background-color: #3498db;
    color: white;
}

#saveCategory:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

#closeAddCategory {
    background-color: #e0e0e0;
    color: #555;
}

#closeAddCategory:hover {
    background-color: #bdc3c7;
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 480px) {
    .popup_overly {
        padding: 20px;
        margin: 20px;
    }
    
    .popup_overly h3 {
        font-size: 1.3em;
    }
    
    .popup_overly button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

.gsi-Footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #00000052;
    border: 1px solid #ccc;
    z-index: 9999;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    backdrop-filter: blur(6px);
    display: none;
}

.popup.show {
    display: flex;
    max-height: 100%;
   
}

.gsi_close_icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

.gsiIcon {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.gsiIcon span {
    cursor: pointer;
}
.gsiIcon span.gsiPostDelete {
    color: #69727d;
    font-size: 20px;
}
.gsiIcon span.editGsiPost {
    color: #69727d;
    font-size: 20px;
}
.popup-content {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 20px;
    position: relative;
    border-radius: 10px;
}

form#gsiPostForm input {
    width: 100%;
    border: 1px solid #ddd;
    outline: none;
}

button#upload_pdf {
    width: 100%;
    margin-top: 10px;
    border: 0;
    background: dodgerblue;
    color: #fff;
}



form#gsiPostForm [type="submit"] {
        width: 100%;
    margin-top: 10px;
    border: 0;
    background: dodgerblue;
    color: #fff;
}

a.document-title i {
    color: #69727d;
    font-size: 20px;
}

span.document-title,span.document-actions {
    font-size: 14px;
    font-weight: 700;
}

button#openAddCategory {
    font-family: Roboto;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

/* Bounce keyframes */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* On hover: stop bounce + glow */
button#openAddCategory:hover {
  animation-play-state: paused; /* stops bounce */
  transform: scale(1.05); /* optional slight grow */
}

.categoryList {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left !important;
    gap: 5px;
}
