@import url('./variables.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #E2E8F0;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.app-viewport {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    background-color: var(--bg-color);
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 85px; /* bottom nav space */
}

/* Header Navbar */
.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    padding: 20px 20px 24px 20px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);

    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-icon {
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    position: relative;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.user-greeting h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-greeting p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Content Area */
.app-content {
    padding: 16px;
    flex: 1;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: var(--app-max-width);
    background: #FFFFFF;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    z-index: 9999;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
    transition: color 0.2s;
    flex: 1;
    min-width: 0;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item svg, .nav-item i {
    font-size: 20px;
    width: 24px;
    height: 24px;
}

/* ATM Visual Keypad UI */
.pin-display-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 24px 0;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.2s;
}

.pin-dot.filled {
    background-color: var(--primary-color);
    transform: scale(1.15);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.keypad-btn {
    aspect-ratio: 1.4;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
    user-select: none;
}

.keypad-btn:active {
    background: var(--primary-light);
    transform: scale(0.95);
    border-color: var(--primary-color);
}

.keypad-btn.action-btn {
    background: #F1F5F9;
    font-size: 1.1rem;
}
