@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400&display=swap');

:root {
    --primary-color: #f3a745;
    --primary-dark: #1F252E;
}

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.3s, color 0.3s;

}
    .header-right button {
        color: white;
        background: linear-gradient(45deg, #ff8a00, #e52e71);
        font-weight: bold;
        border-radius: 25px;
        padding: 10px 20px;
        margin-right: 10px;
        border: none;
        cursor: pointer;
        transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .header-right button i {
        margin-right: 8px;
        transition: transform 0.3s ease;
    }

    .header-right button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 300%;
        height: 300%;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    .header-right button:hover::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .header-right button:hover {
        background: linear-gradient(45deg, #e52e71, #ff8a00);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .header-right button:active {
        transform: scale(0.95);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    @keyframes button-click {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(0.95);
        }
        100% {
            transform: scale(1);
        }
    }

    .header-right button.click-animation {
        animation: button-click 0.3s forwards;
    }

.container {
    padding: 0 8.4rem;
}

.img-w {
    width: 100%;
}

.img-logo {
    width: 35%;
}

header {
    position: relative;
    box-shadow: 0 4px 17px rgba(0, 0, 0, .1);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100
}

/* Header base */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

/* Logo */
.page-header .img-logo {
  max-width: 100%;
  height: auto;
}

/* Nav */
.page-header ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.page-header ul li a {
  display: flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 30px;
  transition: background .2s, color .2s;
}

/* Hamburger toggle hidden by default */
.page-header .mainicon {
  display: none;
  cursor: pointer;
}
.mobile-controls {
    display: none;
}

.mode.desktop-mode {
    display: flex;
    align-items: center;
    margin-left: 15px;
}
/* Mobile */
@media (max-width: 768px) {

    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .img-logo {
        width: 50%;
        order: 1;
    }
    
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        order: 2;
    }

    .mode.desktop-mode {
        display: none;
    }
    
    /* Show mobile mode toggle */
    .mode.mobile-mode {
        display: flex;
        align-items: center;
    }
    
    ul {
        order: 3;
        width: 100%;
    }
    
    .header-right {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

  .page-header .mainicon {
    display: block;
  }
  /* hide nav by default */
  .page-header ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
  }
  /* when checkbox #click is checked */
  #click:checked + .mainicon + ul {
    max-height: 500px; /* enough to show all items */
  }
    .page-header ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,.1);
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* When checkbox is checked (menu clicked) */
    #click:checked ~ ul {
        max-height: 100vh; /* Enough to show all items */
        padding: 1rem 0;
    }
    
    .page-header ul li {
        width: 100%;
        text-align: center;
    }
    
    .page-header ul li a {
        width: 80%;
        padding: 1rem 0;
        margin: 0.2rem auto;
        justify-content: center;
    }
    
    .dark-mode .page-header ul {
        background: var(--primary-dark);
    }
    
    /* Hide the checkbox */
    #click {
        display: none;
    }
    
    /* Menu icon styling */
    .mainicon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .menu i {
        font-size: 1.8rem;
        transition: transform 0.3s ease;
    }
    
    /* Animation when menu is clicked */
    #click:checked + .mainicon .menu i {
        transform: rotate(90deg);
    }
}
@media (max-width: 480px) {
    .img-logo {
        width: 22%;
    }
    
    .mobile-controls {
        gap: 10px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo a {
    color: #244D61;
    text-decoration: none;
}

ul {
    display: flex;
    list-style-type: none;
    background-color: transparent;
    overflow: hidden;
}

li a {
    display: inline-block;
    padding: .3rem 1rem;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: .7px;
    border-radius: 36px;
    line-height: 2;
    transition: .3s;
}

li a.active,
li:not(:last-child) a:hover {
    color: var(--primary-color);
}


#click {
    display: none;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.menu {
    display: none;
}

.menu i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.menu:hover i {
    transform: scale(1.1);
}

.mode {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mode i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.mode:hover i {
    transform: scale(1.1);
}

.main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(277px, 1fr));
    row-gap: 2rem;
    align-items: center;
}

.main h1 {
    font-size: 4rem;
    font-weight: 600;
}

.main p {
    line-height: 1.7;
    font-size: 1.15rem;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.7rem;
}

.social a {
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #244D61;
    font-size: 1.5rem;
    border: 1.6px solid #244D61;
    border-radius: 50%;
    padding: 0.39rem;
    text-align: center;
}

.social a:hover {
    color: #fff;
    background-color: #244D61;
    box-shadow: 0 0 20px #244D61;
    transition: all .3s ease-in-out;
}

.main h3 {
    font-size: 1.5rem;
}

.images2::before, .images::before {
    content: "";
    position: absolute;
    width: 100%;
    height: calc(100% - 130px);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 6px;
    z-index: -1;
    background: linear-gradient(145deg, #e2e8ec, #ffffff);
    box-shadow: 5px 5px 15px #D1D9E6, -5px -5px 15px #ffffff;
}


.images {
    width: 80%;
    margin-left: auto;
    position: relative;
    z-index: -1;
}

.images2 {
    width: 80%;
    position: relative;
    z-index: -1;
}

.dark-mode {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.dark-mode .exclude-dark-mode .login-card {
    color: #000000;
}

.exclude-white-mode  {
    color: #ffffff;
}

.mode input {
    display: none;
}

:is(.dark-mode) {
    .social a {
        color: var(--primary-color);
        border: 1.6px solid var(--primary-color);
    }

    .social a:hover {
        color: var(--primary-dark);
        background-color: var(--primary-color);
        box-shadow: 0 0 20px var(--primary-color);
    }

    .logo a {
        color: #fff;
    }

    .images::before {
        background: linear-gradient(145deg, #1f252e, #2e3239);
        box-shadow: 10px 10px 19px #1c1e22, -10px -10px 19px #1b1f27;
    }

}

.dark-mode header {
    box-shadow: 0 4px 17px rgb(80 80 80 / 31%);
    background: var(--primary-dark);
}

.text-danger {
    color: red;
}
.button-container {
    display: flex;
    justify-content: center;
    padding: 20px; 
}

.rounded-submit-button {
    background-color: #4CAF50; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 15px; 
    cursor: pointer; 
    transition: background 0.3s; 
}

.rounded-submit-button:hover {
    background-color: #3e8e41; 
}

small {
    display: block;
    color: #666;
    font-size: 0.8em;
}

.hidden {
    display: none;
}

.hiddenRow {
    padding: 0 !important; /* Removes padding */
    background-color: #f9f9f9; /* Light background for the dropdown */
}

.card-body {
    padding: 10px 20px; /* Padding for content inside dropdown */
}

/* Styling for the dropdown toggle button */
.table .btn {
    margin-right: 5px; /* Space between buttons */
}

/* No border collapse to ensure clean borders */
.table {
    border-collapse: separate;
}

.gold-category {
    color: #D4AF37;
    background-color: #FFF8DC;
    font-weight: bold;
    border-radius: 5px;
    align-items: center;
}
.gold-category i {
    margin-right: 5px;
}

.stat-box {
    background-color: #fff;
    margin: 10px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.stats {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 10px;
}

.stat-box {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.stat-box:hover {
    transform: translateY(-10px);
}
.stat-box h4 {
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}
.stat-box .stats {
    font-size: 2em;
    margin-top: 10px;
    text-align: center;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#totalWeight, #totalZakat {
    animation: fadeIn 2s;
}


@media screen and (max-width: 1024px) {
    .container {
        padding: 0 4.4rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.6rem;
    }
}

@media screen and (max-width:600px) {

    header {
        height: auto;
    }

    ul {
        background: #fff;
        width: 100%;
        height: 100vh;
        position: absolute;
        display: flex;
        flex-direction: column;
        text-align: center;
        top: 3.4rem;
        left: -100%;
        z-index: 111111;
    }

    .menu {
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        color: #244D61;
    }

    #click:checked~ul {
        left: 0%;
        transition: all 0.3s ease;
    }

    .dark-mode .menu {
        color: var(--primary-color);
    }
    

    .dark-mode ul {
        background: var(--primary-dark);
    }

    .mode {
        position: absolute;
        right: 4rem;
    }

    .logout {
        position: absolute;
        right: 4rem;
    }

    .images {
        width: 100%;
        margin: auto;
    }

    .main {
        margin-top: 2rem;
    }
}

.keep-color, .keep-color h1, .keep-color h2, .keep-color p, .keep-color button, .keep-color  {
    color: #ffffff; 
    background-color: transparent; 
}

.keep-color h1 span {
    color: var(--primary-color); 
}

.keep-color button {
    background-color: #f3a745;
    color: white;
}
