/* ───── WP Modern Downloads Styles ───── */
.wp-downloads-wrapper {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    color: #333;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 30px;
    margin: 40px 0px 40px 0px;
}

/* Top-level folder tabs */
.top-folder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}
.top-folder-tab {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.top-folder-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Folder content wrapper */
.folder-content {
    background: #f1f1f1;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin:30px;
}

/* Back button */
.back-to-top {
  margin-bottom:15px;
  padding: 10px 20px;
  background:transparent;
  color: #424242;
  border: 2px solid #646464;
  border-radius:20px;
  float:right;
  cursor:pointer;
  font-weight:600;
  border-radius: 30px !important;
}
.back-to-top:hover {
    background: #5a6268;
        color: black !important;
}

/* Current folder name */
.current-folder-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 18px !important;

}

/* Grid layouts */
.subfolders-row, .folder-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

/* Folder card */
.folder-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
}
.folder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.folder-icon i {
    font-size: 36px;
    color: #006dd2b5;
}
.folder-icon{
  font-size:32px;color:#e5c88e; transition:all 0.3s ease;
}
.folder-name {
    margin-top: 10px;
    font-weight: 600;
    font-size: 1em;
    color: #444;
}

/* File card */
.file-card { width:220px; padding:8px; border:1px solid #eee; border-radius:8px; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,0.1); position:relative; }
.file-thumb.pdf-thumb {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* File thumbnails */
.folder-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-card:hover {
    transform: scale(1.05) !important; /* Slight zoom */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15)!important; /* Optional: enhance shadow on hover */
    cursor: pointer;
}
.file-card:hover{
    transform: scale(1.05) !important; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15)!important;
    cursor: pointer;
    background:rgb(247 247 247) !important;
}
/* File thumbnails */
.file-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.generic-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}
.generic-thumb i {
    font-size: 28px;
    color: #888;
}
.pdf-thumb {
    width: 100%;
    height: 120px;
    background: #a89998;
    border-radius: 8px;
}

/* File title */
.file-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95em;
    word-break: break-word;
}

/* File actions */
.file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
.icon-btn {
    background: #ff7e5f;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}
.icon-btn:hover {
    background: #feb47b;
}

/* File info box tooltip */
.file-info-tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    z-index: 999;
    max-width: 220px;
    font-size: 0.85em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Warning text */
.wp-download-warning {
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    padding: 15px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ffeeba;
}

.icon-btn.download-btn {
    background: #007cba !important;
    color: white;
    border: none;
    padding: 0px 14px 0px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px;
}

.icon-btn.info-btn{
    background: #6c757d!important;
    color: white;
    border: none;
    padding: 0px 14px 0px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px;
}

.icon-btn.download-btn:hover {
    background: #005f8d!important;  /* darker blue for hover */
    color: #ffffff!important;
}

.icon-btn.info-btn:hover {
    background: #495057!important;  /* darker gray */
    color: #ffffff!important;


}
.icon-btn.view-btn {
    background: #af4d4df0 !important;  
    color: white;
    border: none;
    padding: 0px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Hover effect */
.icon-btn.view-btn:hover {
    background:  #9c4444f0 !important;
    color: #ffffff !important;
}
.icon-btn {
    transition: all 0.2s ease;
}
/* Responsive adjustments */
@media(max-width:768px){
    .top-folder-tabs { gap: 10px; }
    .folder-card, .file-card { padding: 12px; }
    .file-thumb { height: 100px; }
}
@media(max-width:480px){
    .top-folder-tab { padding: 8px 14px; font-size: 0.9em; }
    .back-to-top { padding: 6px 12px; font-size: 0.85em; }
}

.top-folder-tab.active {
 
    font-weight: bold;
background: #5c6bbb !important;
    color: #fff !important;
    border: 3px solid #f1f3ff !important;
}

.top-folder-tab:hover {


background: #5c6bbb !important;
    color: #fff !important;
    border: 2px solid #8c9be9 !important;
}

button.top-folder-tab {
    padding: 10px 20px;
    background: transparent;
 
    color: #5c6bbb;
    border: 1px solid #1b31a7;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    font-size: 15px;
}
  .top-folder-tabs{
  display:flex; 
  gap:30px; 
  margin-bottom:20px; 
  flex-wrap:wrap;
  justify-content: center;
  }

/* Initial hidden state */
.wp-downloads-wrapper {
    opacity: 0;
    transform: translateY(50px); /* Start lower */
    animation: fadeInUp 1s ease-out forwards; /* Animate on load */
}

/* Keyframes for fade in + up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-folder-tab {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpTab 0.6s ease-out forwards;
}

/* Tab animation keyframes */
@keyframes fadeInUpTab {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger the animation using nth-child */
.top-folder-tab:nth-child(1) {
    animation-delay: 0.3s;
}
.top-folder-tab:nth-child(2) {
    animation-delay: 0.6s;
}
.top-folder-tab:nth-child(3) {
    animation-delay: 0.9s;
}
.top-folder-tab:nth-child(4) {
    animation-delay: 1.2s;
}
.top-folder-tab:nth-child(5) {
    animation-delay: 1.5s;
}
.folder-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.back-to-top {
    position: fixed; /* or wherever your button is positioned */
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateX(100px); /* start off-screen to the right */
    animation: slideInRight 0.5s ease-out forwards;
    animation-delay: 0.3s; /* optional: delay for nicer timing */
    z-index: 999;
}

/* Keyframes for sliding in from right */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.current-folder-name {
    opacity: 0;
    transform: translateX(-50px); /* start off-screen to the left */
    animation: slideInLeft 0.5s ease-out forwards;
    animation-delay: 0.2s; /* optional: adjust delay for sequencing */
}

/* Keyframes for sliding in from left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.folder-empty-message {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeinUpBig 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Define the fadeInUpBig keyframes */
@keyframes fadeinUpBig {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.folder-card {
    opacity: 0;
    transform: translateY(50px); /* start lower */
    animation: fadeInUpBig 0.8s ease-out forwards;
}

/* Keyframes for fade in + up */
@keyframes fadeInUpBig {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger the animation for multiple cards */
.folder-card:nth-child(1) { animation-delay: 0.2s; }
.folder-card:nth-child(2) { animation-delay: 0.4s; }
.folder-card:nth-child(3) { animation-delay: 0.6s; }
.folder-card:nth-child(4) { animation-delay: 0.8s; }
/* add more as needed */
.current-folder-name.active {
    animation: slideInLefts 0.5s ease-out forwards;
    animation-delay: 0.2s; /* optional delay */
}

.back-to-top.active {
    animation: slideInRights 0.5s ease-out forwards;
    animation-delay: 0.3s; /* optional delay */
}

/* Keyframes for sliding in */
@keyframes slideInLefts {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRights {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.folder-card:hover .fa-folder::before {
    content: "\f07c"; /* Open folder icon */
}
.folder-card{
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 10px;
    cursor: pointer;
    border: 1px solid #efefef;
}

.file-info-tooltip {
  position: absolute;
  background: rgba(40, 40, 40, 0.95);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-size: 13px;
  line-height: 1.4;
  max-width: 220px;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.file-info-tooltip p {
  margin: 4px 0;
}

.file-info-tooltip strong {
  color: #c6ab72;
  font-weight: 600;
}