* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: #f8f8f8;
}

body.dark-mode {
    background: #000;
    color: #fff;
}

.app-store {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

body.dark-mode .app-store {
    background: #000;
}

nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

body.dark-mode nav {
    background: rgba(0, 0, 0, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 15px;
    cursor: pointer;
    opacity: 0.6;
    font-size: 10px;
}

.tab span {
    margin-top: 4px;
}

.tab.active {
    opacity: 1;
    color: #007AFF;
}

.content-area {
    padding: 15px;
    padding-bottom: 80px;
}

.content-area.hidden {
    display: none;
}

.search-bar {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 10px;
    padding: 8px 15px;
    margin: 10px 15px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .search-bar {
    background: rgba(255, 255, 255, 0.12);
}

.search-bar input {
    border: none;
    background: none;
    width: 100%;
    font-size: 17px;
    color: #000;
}

body.dark-mode .search-bar input {
    color: #fff;
}

.search-bar input::placeholder {
    color: #8E8E93;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 15px;
}

.app-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: transparent;
}

.app-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    margin-right: 15px;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    color: #8E8E93;
    font-size: 13px;
}

body.dark-mode .subtitle {
    color: #8E8E93;
}

.get-button {
    background: rgba(118, 118, 128, 0.12);
    color: #007AFF;
    padding: 7px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-left: 15px;
}

body.dark-mode .get-button {
    background: rgba(255, 255, 255, 0.12);
}

.credits-content {
    text-align: center;
    padding: 40px 20px;
}

.credits-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.credits-content p {
    margin: 8px 0;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8E8E93;
}

.empty-state i {
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 15px;
}

.settings-options {
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
}

body.dark-mode .setting-item {
    background: #1c1c1e;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007AFF;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(0,122,255,0.1);
    border-radius: 20px;
}

body.dark-mode .social-link {
    background: rgba(0,122,255,0.2);
}

/* Remove the old github-link class as it's replaced by social-link */
.github-link {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 20px;
}

body.dark-mode .modal-content {
    background: #1c1c1e;
}

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

.go-back {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 16px;
    cursor: pointer;
}

.info-box {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    padding: 15px;
}

body.dark-mode .info-box {
    background: rgba(255, 255, 255, 0.12);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .info-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.setting-item i {
    color: #8E8E93;
}

.hidden {
    display: none !important;
}

.info-button {
    cursor: pointer;
}

.no-apps {
    text-align: center;
    color: #8E8E93;
    padding: 20px;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateY(0);
}

.notification img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    object-fit: cover;
}

.notification-text {
    font-size: 15px;
    font-weight: 500;
}

body.dark-mode .notification {
    background: rgba(50, 50, 50, 0.9);
}

.search-highlight {
    color: #007AFF;
}

body.dark-mode .search-highlight {
    color: #0A84FF;
}

.category-scroll {
    padding: 0 15px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-pill {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 8px;
    border-radius: 20px;
    background: rgba(118, 118, 128, 0.12);
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .category-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.category-pill.active {
    background: #007AFF;
    color: #fff;
}

body.dark-mode .category-pill.active {
    background: #0A84FF;
}
