/* PWA оптимизации */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

/* Для элементов, где нужно выделение текста */
.input_area, .search-input, .info-value {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Улучшенные touch targets для мобильных */
@media (max-width: 768px) {
    .back-btn, .share-btn, .edit-btn, .search-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .status-option, .action-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #E5E5E5;
}

body {
    font-family: 'Unbounded', sans-serif;
    color: #282828;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    position: fixed;
    width: 100%;
    animation: fadeIn 1s ease-out;
    /* Web App optimizations */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.input_container {
    display: flex;
    align-items: center;
    background-color: #CECECE;
    border-radius: 15px;
    padding: 12px 15px;
    gap: 12px;
    margin: 5px;
    transition: all 0.3s ease;
}

.input_container:focus-within {
    box-shadow: 0 0 0 2px rgba(40, 40, 40, 0.2);
}

.input_container img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.input_area {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    color: #282828;
    width: 100%;
}

.input_area::placeholder {
    color: #282828;
    opacity: 0.5;
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}