* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font: normal 16px sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

ul,
nav {
    list-style: none;
}

.header-button {
    text-decoration: none;
    opacity: 0.75;
    color: #fff;
}

.header-button:hover {
    opacity: 1;
}

.logo-small {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}

h1,
h2,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

h3,
p {
    /*font-family: Poppins;*/
    font-family: 'Poppins', sans-serif;
}

strong {
    color: #ff6a3d;
}

.icon-cart {
    position: relative;
    display: inline-block;
}

.icon-cart svg {
    width: 23px;
    height: 23px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.highlight {
    color: #bd1e51;
    font-weight: bold;
}

.status-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1;
}

.status-custom::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-custom.active,
.status-custom.paid {
    background-color: #d4edda;
    color: #155724;
}

.status-custom.active::before,
.status-custom.paid::before {
    background-color: #28a745;
}

.status-custom.used,
.status-custom.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-custom.used::before,
.status-custom.pending::before {
    background-color: #ffc107;
}

.status-custom.expired,
.status-custom.inactive,
.status-custom.cancel {
    background-color: #f8d7da;
    color: #721c24;
}

.status-custom.expired::before,
.status-custom.inactive::before,
.status-custom.cancel::before {
    background-color: #dc3545;
}

.status-custom.complete {
    background-color: #cce5ff;
    color: #004085;
}

.status-custom.complete::before {
    background-color: #007bff;
}

.status-custom.unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-custom.unknown::before {
    background-color: #6c757d;
}

.header-button.btn {
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.no-data {
    background: #f8f9fa;
    border: 2px dashed #c7d1d8;
    border-radius: 12px;
    width: 100%;
}

.no-data-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.no-data-icon i {
    font-size: 3rem;
    color: #6c757d;
}

    .search-custom-input {
        flex: 1;
        border: 1.5px solid #2D7A89;
        padding: 8px 15px;
        font-size: 1rem;
        outline: none;
        transition: 0.3s;
        border-radius: 50px 0 0 50px;
        border-right: none;
    }

.custom-input {
  border-radius: 50px;
          border: 1.5px solid #2D7A89;
        padding: 8px 8px;
        font-size: 1rem;
        outline: none;
        transition: 0.3s; 
        width: 100%;     
}


    .search-custom-input:focus {
        border-color: #1f5964;
        box-shadow: 0 0 6px rgba(45, 122, 137, 0.4);
    }

    .search-custom {
        background-color: #2D7A89;
        color: #fff;
        font-weight: 600;
        border: 1.5px solid #2D7A89;
        border-radius: 0 50px 50px 0;
        padding: 8px 15px;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

    .btn-custom {
        color: #fff;
        font-weight: 600;
        border-radius: 50px;
        padding: 8px 15px;
        border: 2px solid transparent;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background-color: #2D7A89;
        border-color: #2D7A89;
         flex-shrink: 0;
    }

    .search-custom:hover,
    .btn-custom:hover {
        background-color: #C1E0D6;
        border-color: #2D7A89;
        color: #2D7A89;
    }
section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 50px 80px;
    background: linear-gradient(135deg, #f3f8f6, #e6f8f2);
    min-height: 100vh;
}

@media all and (max-width: 768px) {
    section {
        padding: 50px 20px;
    }
}

@media all and (max-width: 576px) {
    section {
        padding: 20px 10px;
    }
}

.grid {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

hr {
    width: 250px;
    height: 3px;
    background-color: #a81818;
    border: 0;
}

section h1 {
    text-transform: capitalize;
    font-size: 35px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

section h3 {
    font-size: 30px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 100;
}

@media (max-width: 575px) {
    section h1 {
        font-size: 28px;
    }

    section h3 {
        font-size: 23px;
    }
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    transition: all 0.3s ease-in-out;
}

.logo-text {
    color: #1D5074;
    font-weight: bold;
}

header h2 {
    font-size: 26px;
    color: #1D5074;
    font-weight: bold;
    margin: 0;
}

header nav ul {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li .header-button {
    text-decoration: none;
    color: #1D5074;
    font-size: 18px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

header nav ul li .header-button:hover {
    color: #153d5a;
    box-shadow: 4px 4px 12px rgba(29, 80, 116, 0.4);
    transform: translateY(-2px);
}

header nav ul li.current .header-button {
    background: linear-gradient(145deg, #1D5074, #153d5a);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2), inset -3px -3px 6px rgba(255, 255, 255, 0.2);
}

header nav ul li .header-button::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    left: 50%;
    bottom: 3px;
    background: #ff9800;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform: translateX(-50%);
}

header nav ul li .header-button:hover::after {
    width: 60%;
}

header nav ul li .header-button.highlight {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    font-weight: 700;
    box-shadow: 4px 4px 10px rgba(255, 87, 34, 0.3);
}

header nav ul li .header-button.highlight:hover {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    transform: translateY(-3px);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(123, 31, 162, 0.1);
    color: #7b1fa2;
}

.sidebar-nav li.active a {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.sidebar-nav i {
    font-size: 20px;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 10px;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    h2 {
        margin-bottom: 0;
    }

    .logo-small {
        height: 30px;
        width: 30px;
    }

    .sidebar-nav a span {
        display: none;
    }

    .sidebar-nav a {
        justify-content: center;
        padding: 12px;
    }
}

header .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header .dropdown {
    position: relative;
}

header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -180px;
    list-style: none;
    background: white;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

header .dropdown-menu li a {
    display: block;
    padding: 5px 16px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

header .dropdown-menu li a:hover {
    background: #f0f0f0;
}

header .dropdown:hover .dropdown-menu {
    display: block;
}

header .nav-item.dropdown .header-button::after {
    display: none !important;
}

#message {
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #2e5939;
    transition: opacity 0.3s ease-in-out;
}

/* Footer */
footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #3e6480;
    padding: 15px 0;
    text-align: center;
    font-size: 20px;
}

footer p {
    color: #f2f2f2;
    font-weight: 300;
    font-size: medium;
}

footer ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

footer ul li a {
    color: #f2f2f2;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer ul li a:hover {
    color: #ffcc00;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
    }

    footer ul li:first-of-type {
        margin-left: 0;
    }

    footer p {
        text-align: center;
        margin-bottom: 20px;
    }
}