@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

.plsLogin{
    font-family: "Poppins", sans-serif;
    font-weight: 400; /* Make sure Poppins supports this weight */
    font-style: normal;
}
#dashBoard {
    background-image: url('../Assets/Pictures/Brown\ Minimalist\ Casual\ Fashion\ Collection\ Presentation\ \(1\).jpg');
    height: 600px;
    width: 99%;
    border-radius: 10px;
    background-size: contain;
    
    background-position: top;
    background-blend-mode: lighten;
    position: relative;
    top: 10px;
    box-shadow: 0 0 10px;
}

.deleteFromDashBoardButton{
    position: relative;
    top: -55px;
    left: 1780px;
    height: 70px;
    width: 80px;
    border-radius: 10px;
    background-color: black;
    color: white;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: none;
}
.addToDashBoardButton{
    position: relative;
    top: 510px;
    left: 1790px;
    height: 70px;
    width: 80px;
    border-radius: 10px;
    background-color: black;
    color: white;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
#dashBoard button:hover{
    background-color: rgb(150, 1, 1);
}

.sectionContainer {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #222;
    color: white;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.sectionContainer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.2) 48%, transparent 72%);
}

.sectionImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 240ms ease;
}

#sections > a:hover .sectionContainer {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

#sections > a:hover .sectionImage {
    transform: scale(1.035);
}

.sectionContainer h1 {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    overflow-wrap: anywhere;
}

#sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: min(100% - 32px, 1200px);
    margin: 0 auto 32px;
}

#sections > a {
    display: block;
    min-width: 0;
    border-radius: 8px;
    text-decoration: none;
}

#sections > a:focus-visible {
    outline: 3px solid rgba(153, 13, 20, 0.55);
    outline-offset: 3px;
}

#accessories-section-container{
    width: 100%;
}

/* Popup container styles */
.dashboardPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    background-color: #fff; /* White background for the popup */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    z-index: 99; /* Ensure it appears above other elements */
    font-family: Arial, sans-serif;
}


/* Form label styles */
.dashboardPopup label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333; /* Dark text color for readability */
}

/* Form input styles */
.dashboardPopup input[type="text"],
.dashboardPopup input[type="file"] {
    width: 100%; /* Full width for inputs */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
    box-sizing: border-box; /* Ensure proper sizing */
    font-size: 14px;
}

/* Input hover and focus effects */
.dashboardPopup input[type="text"]:focus,
.dashboardPopup input[type="file"]:focus {
    border-color: #838383; /* Blue border on focus */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 4px rgba(107, 107, 107, 0.5); /* Subtle glow effect */
}

/* Optional: Add a close button */
.dashboardPopup .closePopUpButton {
    position: relative;
    top: -96px;
    background-color: black;
    border-bottom-left-radius: 40px;
    background: none;
    border: none;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    left: 380px;
    transition: all 0.3s ease;
}

.dashboardPopup .closePopUpButton:hover {
    color: #333; /* Darker color on hover */
    transform: scale(1.1);
}
.dashBoardAddButton{
    width: 80px;
    background-color: black;
    color: white;
    border-radius: 10px;
    height: 40px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 600; /* Make sure Poppins supports this weight */
    font-style: normal;
    transition: all 0.3s ease;
    border: none;
}
.dashBoardAddButton:hover{
    background-color: rgb(184, 0, 0);
    transform: scale(1.1);
}


   #productsHeading{
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 100; /* Make sure Poppins supports this weight */
    font-style: normal;
   }
   #sections a{
    text-decoration: none;
   }

   
#dashBoard {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    #sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: calc(100% - 24px);
        margin-bottom: 24px;
    }
    
    .sectionContainer {
        aspect-ratio: 4 / 5;
        min-height: 44px;
        border-radius: 7px;
        box-shadow: 0 2px 9px rgba(0, 0, 0, 0.11);
    }

    .sectionContainer h1 {
        right: 11px;
        bottom: 11px;
        left: 11px;
        font-size: 0.92rem;
        line-height: 1.25;
    }

    #dashBoard {
        height: 300px; /* Ensure visible height */
        width: 100%;
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
        overflow: hidden;
        display: none;
        
        /* Use transform for better mobile animation performance */
        animation: scrollBackground 10s linear infinite;
    }
}

/* Smooth scrolling background animation */
@keyframes scrollBackground {
    0% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}



.fade-out {
    opacity: 0;
    transform: scale(0.98); /* Slight zoom effect during fade */
}

.fade-in {
    opacity: 1;
    transform: scale(1);
}
.addSectionButton{
    height: 50px;
    background-color: black;
    color: white;
    border-radius: 30px;
    margin: 20px;
    position: fixed ;
    right: 123px;
    bottom: -1px; 
    cursor: pointer;
    width: 140px;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: 400; /* Make sure Poppins supports this weight */
    font-style: normal;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px white;
}
.addSectionButton:hover{
    background-color: white;
    color: black;
    transform: scale(1.1);
}
.createPagePopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.75); /* Slightly more opaque */
    display: flex;
    flex-direction: column;
    padding: 50px;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-weight: 300; /* More readable weight */
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Subtle modern shadow */
    text-align: center;
    width: 90%;
    max-width: 400px; /* Makes sure it's not too wide */
    
}

.createPagePopup input {
    height: 30px;
    margin: 10px 0;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border 0.3s ease-in-out;
}

.createPagePopup input:focus {
    border-color: #007bff; /* Modern blue highlight */
    outline: none;
}
.apparelTypeCheckBox{
    margin: 0px;
}
.createPagePopup label {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    width: 100px;
}

.addPageButton,
#uploadButton {
    width: 99%;
    cursor: pointer;
    border-radius: 10px;
    background-color: black;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
}

.addPageButton:hover,
#uploadButton:hover {
    background-color: grey;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.selectCatagory {
    height: 40px;
    width: 95%;
    border: 1px solid #000;
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    background-color: white;
    margin-top: 12px;
}

.selectCatagory:hover {
    border-color: #007bff;
}
.createPagePopupContainer{
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.336);
    z-index: 100;
    backdrop-filter: blur(5px);
    display: none;
}
.closeAddPageButton{
    background-color: #000000;
    border: none;
    width: 50px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 10px;
    padding-left: 10px;
    padding-bottom: 5px;
    position: relative;
    top: -50px;
    left: 400px;
    transition: all 0.3s ease;
}
.closeAddPageButton:hover{
    background-color: grey;
}
.closeAddPageButton svg{
    fill: white;
    height: 40px;
    cursor: pointer;
   
}
.catagory_image_container{
    display: flex;
}
.type_addPageButton_container{
    display: flex;
}

.apparelTypeContainer{
    display: flex;
    position: absolute;
    top: 150px;
    left: 50px;
    justify-content: center;
    align-items: center;
}
.apparelTypeContainer label{
    margin-right: 10px; 
}
.deleteProductPage{
    position: absolute;
    top:25px;
    right: 30px;
    background-color: rgb(0, 0, 0);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 10px white;
}
.deleteProductPage:hover{
    background-color: grey;
}
.deleteProductPage svg{
    height: 40px;
    fill: white;
}
.dropdown-menu {
    position: fixed;
    
    padding: 10px;
    z-index: 1000;
    width: 150px;
    display: none;
}
.dropdown-menu button {
    width: 100%;
    background: none;
    border: none;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    color: red;
    background-color: rgb(255, 255, 255);
}
.dropdown-menu button:hover {
    background-color: #8d8d8d;
}
.editPageCoverButton{
    position: absolute;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    cursor: pointer;
    top: 5px;
    right: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
}
.editPageCoverButton svg{
    height: 40px;
    fill: grey;
    border-radius: 50%;
    padding: 5px;
}
.editPageCoverButton svg:hover{
    fill: grey;
    box-shadow: 0 0 10px white;
}
.custom-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.edit-page-modal {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 400; /* Make sure Poppins supports this weight */
  font-style: normal;
  position: relative;
}

.page-title-input {
  width: 90%;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.closeEditPageButton{
    border: none;
    position: absolute;
    top: 10px;
    right: 7px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0);
}
.closeEditPageButton svg{
    fill: rgb(0, 0, 0);
    height: 30px;
    cursor: pointer;
}
.closeEditPageButton svg:hover{
    fill: red;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-btn {
  background-image: linear-gradient(135deg, #ff4d4d, #990000);
  color: white;
}

.cover-btn {
  background-image: linear-gradient(135deg, #5dade2, #21618c);
  color: white;
}

.save-btn {
  background-image: linear-gradient(135deg, #58d68d, #1e8449);
  color: white;
}

.btn:hover {
  opacity: 0.9;
}

@media (max-width: 600px){
    button{
        display: none;
      }
    #loginPopup button{
        display: block;
    }
    #notificationButton{
        display: block;
    }
}

/* Preserve the original large homepage cards outside the mobile layout. */
@media (min-width: 769px) {
    #sections {
        position: relative;
        left: -1px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: auto;
        margin: 0;
    }

    #sections > a {
        border-radius: 30px;
    }

    .sectionContainer {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 95%;
        height: 450px;
        aspect-ratio: auto;
        margin: 10px;
        border-radius: 30px;
        box-shadow: 0 0 10px rgb(173, 173, 173);
    }

    .sectionContainer::after {
        display: none;
    }

    .sectionContainer h1 {
        position: absolute;
        inset: 50% 20px auto;
        transform: translateY(-50%);
        font-size: 2rem;
        font-weight: 100;
        text-align: center;
        text-shadow: 0 0 30px black;
    }

    #sections > a:hover .sectionContainer {
        transform: none;
        box-shadow: 0 0 20px rgb(0, 0, 0);
    }

    #accessories-section-container {
        grid-column: span 2;
        width: 103%;
    }
}

@media (max-width: 340px) {
    #sections {
        grid-template-columns: 1fr;
        width: calc(100% - 28px);
    }

    .sectionContainer {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sectionContainer,
    .sectionImage {
        transition: none;
    }
}
