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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

h1 {
    color: #2196F3;
    font-size: 2rem;
    font-weight: 600;
}

.add-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2196F3;
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.add-btn:hover {
    background-color: #1976D2;
    transform: scale(1.05);
}

.add-btn:active {
    transform: scale(0.95);
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#itemInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#itemInput:focus {
    border-color: #2196F3;
}

#addItemBtn {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

#addItemBtn:hover {
    background-color: #45a049;
}

.shopping-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.list-item:hover {
    background-color: #f8f9fa;
}

.item-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.item-text.completed {
    text-decoration: line-through;
    color: #888;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.complete-btn {
    background-color: #4CAF50;
    color: white;
}

.complete-btn:hover {
    background-color: #45a049;
}

.complete-btn.completed {
    background-color: #9E9E9E;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.delete-btn:hover {
    background-color: #da190b;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 18px;
}

/* Mobile optimierte Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    #addItemBtn {
        margin-top: 10px;
    }
    
    .list-item {
        padding: 12px 15px;
    }
    
    .item-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* PWA Install Button */
.install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    display: none;
    z-index: 1000;
}

.install-btn:hover {
    background-color: #1976D2;
}

/* Update Notification Styles */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 1002;
    animation: slideDown 0.3s ease-out;
}

.update-notification-content {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
    text-align: center;
}

.update-notification h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.update-notification p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.update-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.update-btn {
    background: white;
    color: #2196F3;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.dismiss-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .update-actions {
        flex-direction: column;
    }
}

/* Share Notification Styles */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
}

.share-notification-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4CAF50;
    position: relative;
}

.share-notification h3 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    font-size: 16px;
}

.share-notification p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.shared-content {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    word-break: break-word;
    max-height: 100px;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #666;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .share-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
