/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #0a0f1f;
    color: #fff;
    padding: 10px;
}


/* ================= iOS GLASS NAV ================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 31, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}

.nav.nav--small {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* HEADER */

.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding: auto;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}

.nav.nav--small .header {
    padding: 4px 0;
}

.header img {
    width: 20%;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}

.nav.nav--small .header img {
    width: 68px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #3a8eff;
    transition: all 0.35s ease;
}

.nav.nav--small .logo {
    font-size: 15px;
}


/* ICON BAR */

.icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 10px auto;
    padding: 14px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}

.nav.nav--small .icons {
    padding: 8px;
    margin: 4px auto;
    border-radius: 18px;
}

.icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
}

.nav.nav--small .icon {
    width: 30px;
    height: 30px;
}

.icon svg {
    width: 16px;
    height: 16px;
}

.nav.nav--small .icon svg {
    width: 13px;
    height: 13px;
}


/* TITLE */

.dashboard-header {
    font-size: 18px;
    margin: 12px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.nav.nav--small .dashboard-header {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}


/* ================= CARDS ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding-bottom: 40px;
    justify-content: start;
    /* left aligned */
}

.card {
    background: #0f1630;
    border: 1px solid #2a355f;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card p {
    margin: 6px 0;
    font-size: 14px;
}

.img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}


/* BUTTONS */

.btn {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.btn a {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
}

.view {
    background: #28a745;
}

.delete {
    background: #dc3545;
}


/* ================= MODAL ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #0f1630;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
}

.modal-images img {
    width: 100%;
    border-radius: 10px;
}

.close {
    font-size: 24px;
    cursor: pointer;
}

.filters {
    display: flex;
    gap: 12px;
    margin: 18px auto;
    padding: 14px;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
    justify-content: space-around;
}


/* INPUT & SELECT BASE */

.filters input,
.filters select {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}


/* PLACEHOLDER */

.filters input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}


/* HOVER */

.filters input:hover,
.filters select:hover {
    border-color: #3a8eff;
}


/* FOCUS */

.filters input:focus,
.filters select:focus {
    border-color: #3a8eff;
    box-shadow: 0 0 0 2px rgba(58, 142, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
}


/* WIDTH CONTROL */

.filters input {
    width: 85%;
}

.filters select {
    width: calc(50% - 6px);
}


/* MOBILE FIX */

@media (max-width: 480px) {
    .filters select {
        width: 85%;
    }
}

.filter-wrapper {
    text-align: center;
    margin-bottom: 8px;
}


/* TOGGLE BUTTON */

.filter-toggle {
    width: 20%;
    padding: 12px;
    background: linear-gradient(135deg, #3a8eff, #2563eb);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-toggle:hover {
    opacity: 0.9;
}


/* FILTER BOX ANIMATION */

.title-bar {
    display: flex;
    justify-content: space-around;
}

.filters {
    transition: all 0.35s ease;
    overflow: hidden;
}


/* HIDDEN STATE */

.filters.hidden {
    display: none;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}


/* VISIBLE STATE */

.filters:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

.ads-slider {
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.ads-slider img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.ads-slider img.active {
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer{
    padding:25px 20px;
    margin-top:40px;
    color:#cfd5ff;
}

.footer-container{
    max-width:1100px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.footer h3{
    margin:0 0 6px 0;
    font-size:20px;
    color:#6c7bff;
}

.footer p{
    margin:0;
    font-size:14px;
}

.footer-right a{
    color:#9aa4ff;
    text-decoration:none;
    margin-left:18px;
    font-size:14px;
    transition:.2s;
}

.footer-right a:hover{
    color:#6c7bff;
}

@media(max-width:600px){
    .footer-container{
        Justify-content: center;
        align-items:flex-start;
        gap:12px;
    }
    .footer-right a{
        margin-left:0;
        margin-right:15px;
    }
}