* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
     padding-top: 90px;
}

/* Navigation Bar */
.navbar {
    background: #1a1a2e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    margin: 0 auto;
    padding: 10px 20px 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - Left Side */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 80px;
    width: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo a:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(2px 2px 8px rgba(255, 215, 0, 0.5));
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;

    /* ⭐ ADDED → Ensures menu stays right */
    margin-left: auto;
}

.nav-item {
    position: relative;
}

/* Dropdown Menu for Home1 */
.home-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1001;
}

.home-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-link:hover {
    background: transparent;
    color: #ffd700;
    padding-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    display: block;
    border-radius: 25px;
    background: transparent;
}

.nav-link:hover {
    background: transparent;
    color: #ffd700;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        height: auto;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 70px;
        width: 70px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #1a1a2e;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        margin: 5px 20px;
        border-radius: 10px;
    }

    .nav-link:hover {
        background: transparent;
        color: #ffd700;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .home-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-link {
        padding: 10px 40px;
        font-size: 14px;
    }
}
/* Additional Styles for Aesthetic Enhancements */
  TOPBAR
--------------------------------*/
.topbar {
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.icon-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.username {
    font-size: 14px;
    font-weight: 600;
}

/* ------------------------------
   LAYOUT
--------------------------------*/
.layout {
    display: flex;
    margin-top: 60px; /* space for topbar */
}

/* ------------------------------
   SIDEBAR
--------------------------------*/
.sidebar {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    height: calc(100vh - 80px);
    padding: 20px 0;
    position: fixed;
    top: 80px;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .s-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.sidebar .s-link:hover {
    background: #f1f5f9;
}

.sidebar .s-link.active {
    background: #e2e8f0;
    font-weight: 600;
}

/* ------------------------------
   MAIN CONTENT
--------------------------------*/
.content {
    margin-left: 220px;
    padding: 25px;
    width: calc(100% - 220px);
}

/* Page Titles */
.page h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.sub {
    color: #64748b;
    margin-bottom: 20px;
}

/* Hide inactive pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ------------------------------
   SUMMARY GRID
--------------------------------*/
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.summary-box {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.summary-box h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.summary-box .value {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.label {
    font-size: 13px;
    color: #94a3b8;
}

/* ------------------------------
   CARDS (UI blocks)
--------------------------------*/
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

/* ------------------------------
   ACTIVITY LIST
--------------------------------*/
.activity-list,
.fake-list {
    list-style: none;
    padding-left: 0;
}

.activity-list li,
.fake-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
}

.activity-list li:last-child,
.fake-list li:last-child {
    border-bottom: none;
}

/* ------------------------------
   BANK CARD UI
--------------------------------*/
.bank-card {
    width: 320px;
    height: 180px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
}

.chip {
    width: 45px;
    height: 30px;
    background: gold;
    border-radius: 6px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.holder {
    font-size: 14px;
}

/* ------------------------------
   GOALS SECTION
--------------------------------*/
.goal-box {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    margin: 10px 0;
}

.progress span {
    height: 8px;
    background: #3b82f6;
    display: block;
    border-radius: 6px;
}

.note {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
}

/* ------------------------------
   BUTTONS
--------------------------------*/
.btn {
    padding: 10px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
}

.btn:hover {
    background: #1e40af;
}

/* ------------------------------
   EXTRA BOXES
--------------------------------*/
.box {
    background: #ffffff;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
}

.box h3 {
    margin-bottom: 10px;
}

/* Progress bar for spending */
.progress-bar {
    background: #e2e8f0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar span {
    height: 100%;
    background: #10b981;
    display: block;
}

/* ------------------------------
   SECURITY PAGE
--------------------------------*/
.additional {
    margin-top: 15px;
}

/* ===============================
   MOBILE RESPONSIVE MEDIA QUERIES
=============================== */

/* Tablet Screens (768px and below) */
@media screen and (max-width: 768px) {
    /* Adjust layout for tablet */
    .layout {
        flex-direction: column;
    }

    /* Sidebar becomes horizontal or collapsible */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: auto;
        left: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
    }

    .sidebar .s-link {
        padding: 10px 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Content adjusts to full width */
    .content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }

    /* Adjust summary grid */
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .page h1 {
        font-size: 22px;
    }

    /* Adjust bank card size */
    .bank-card {
        width: 100%;
        max-width: 280px;
    }

    /* Topbar adjustments */
    .search-input {
        display: none;
    }

    .top-right {
        gap: 10px;
    }
}

/* Mobile Screens (480px and below) */
@media screen and (max-width: 480px) {
    /* Body padding adjustment */
    body {
        padding-top: 80px;
    }

    /* Topbar adjustments */
    .topbar {
        height: 50px;
        padding: 0 10px;
    }

    .logo {
        font-size: 16px;
    }

    .top-right {
        gap: 8px;
    }

    .icon-btn {
        padding: 4px;
    }

    .profile {
        padding: 4px 8px;
        gap: 4px;
    }

    .username {
        display: none;
    }

    /* Sidebar adjustments for mobile */
    .sidebar {
        padding: 8px 0;
        overflow-x: auto;
        border-bottom: 1px solid #e2e8f0;
    }

    .sidebar .s-link {
        padding: 8px 12px;
        font-size: 13px;
        gap: 8px;
    }

    /* Content adjustments */
    .content {
        padding: 15px 10px;
        margin-left: 0;
        margin-top: 0;
    }

    /* Summary grid - single column */
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-box {
        padding: 15px;
    }

    .page h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .sub {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Card adjustments */
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    /* Bank card adjustments */
    .bank-card {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        padding: 15px;
    }

    .card-number {
        font-size: 16px;
    }

    .holder {
        font-size: 12px;
    }

    /* Button adjustments */
    .btn {
        padding: 8px 10px;
        font-size: 13px;
        margin-right: 5px;
        margin-bottom: 8px;
    }

    /* Goal box adjustments */
    .goal-box {
        padding: 15px;
        margin-bottom: 12px;
    }

    /* Activity list adjustments */
    .activity-list li,
    .fake-list li {
        padding: 8px 0;
        font-size: 13px;
    }
}
