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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    max-width: 393px; /* iPhone 15 Pro width */
    height: 852px; /* iPhone 15 Pro height */
    margin: 0 auto;
    background-color: #f5f5f5;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 44px 20px 20px 20px; /* Top padding for status bar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    position: relative;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.back-button:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    margin: 0 16px;
}

.delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.delete-button:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #f5f5f5;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.radio-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-filter input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.radio-filter input[type="radio"]:checked + .radio-custom {
    border-color: #4a90e2;
}

.radio-filter input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #4a90e2;
    border-radius: 50%;
}

.radio-label {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

.dropdown-filter {
    position: relative;
}

.category-dropdown {
    appearance: none;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 24px 8px 8px;
    cursor: pointer;
    outline: none;
}

.dropdown-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Yepy Buyback Banner */
.buyback-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c038 100%);
    margin: 12px 20px;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.buyback-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.buyback-banner:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banner-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.banner-arrow {
    color: white;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Favorites List */
.favorites-list {
    flex: 1;
    padding: 0;
}

.favorite-item {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    display: flex;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.favorite-item:hover {
    background-color: #fafafa;
}

.favorite-item:active {
    background-color: #f0f0f0;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.item-title {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    padding-right: 8px;
}

.more-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.more-button:hover {
    background-color: #f0f0f0;
}

.more-button:active {
    background-color: #e0e0e0;
}

.item-status {
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #e8f5e8;
    color: #2d8f2d;
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-amount {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.clock-icon {
    flex-shrink: 0;
}

/* Bottom Navigation */
.bottom-nav {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0 34px 0; /* Bottom padding for home indicator */
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 90px;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.nav-item:hover {
    transform: translateY(-1px);
}

.nav-item-center {
    position: relative;
    z-index: 2;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    color: #999;
    transition: color 0.2s ease;
}

.nav-icon-center {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.2s ease;
}

.nav-icon-center:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.nav-label {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-label-center {
    font-size: 10px;
    color: #4a90e2;
    font-weight: 500;
}

.nav-item:hover .nav-icon {
    color: #4a90e2;
}

.nav-item:hover .nav-label {
    color: #4a90e2;
}

/* Status Bar Simulation */
.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    z-index: 10;
}

.app-container::after {
    content: '10:15';
    position: absolute;
    top: 0;
    left: 20px;
    height: 44px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 11;
}

/* Signal, WiFi, Battery indicators */
.status-indicators {
    position: absolute;
    top: 0;
    right: 20px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 11;
}

.signal-indicator,
.wifi-indicator,
.battery-indicator {
    width: 20px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    opacity: 0.9;
}

.battery-indicator {
    width: 24px;
    position: relative;
}

.battery-indicator::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 3px;
    width: 1px;
    height: 6px;
    background-color: white;
    border-radius: 0 1px 1px 0;
}

/* Home Indicator */
.app-container .bottom-nav::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background-color: #000;
    border-radius: 3px;
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 393px) {
    .app-container {
        max-width: 100%;
        height: 100vh;
    }
}

/* Active states */
.nav-item:active {
    transform: scale(0.95);
}

.nav-icon-center:active {
    transform: scale(0.95);
}

/* Smooth animations */
.nav-item,
.nav-icon,
.nav-label,
.back-button,
.delete-button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
} 