/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8e8f0 0%, #f0d4e6 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Header */
.header {
    background: linear-gradient(135deg, #f8e8f0 0%, #f0d4e6 100%);
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

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

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #e91e63;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(233, 30, 99, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #e91e63;
}

.mobile-info {
    display: none;
    align-items: center;
    gap: 15px;
}

.time {
    font-weight: 600;
    font-size: 16px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Main Content */
.main-content {
    padding: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* Add Item Section */
.add-item-section {
    margin-bottom: 30px;
}

.input-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.item-input:focus {
    outline: none;
    border-color: #e91e63;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.item-input::placeholder {
    color: #999;
}

.add-button {
    padding: 15px 25px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-button:hover {
    background: #c2185b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.add-button:active {
    transform: translateY(0);
}

/* Shopping List */
.shopping-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.list-item:hover {
    background: #fafafa;
}

.item-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.item-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.item-checkbox:checked {
    background: #e91e63;
    border-color: #e91e63;
}

.item-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.item-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-checkbox:checked + .item-label {
    text-decoration: line-through;
    color: #999;
}

.delete-button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.delete-button:hover {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #d32f2f;
    color: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        box-shadow: none;
    }

    .header {
        padding: 15px 20px;
        background: #f8e8f0;
    }

    .header-content {
        position: relative;
    }

    .back-button {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #e91e63;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 16px;
    }

    .mobile-info {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-content {
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .input-container {
        flex-direction: column;
        gap: 12px;
    }

    .item-input {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }

    .add-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .list-item {
        padding: 16px 20px;
    }

    .item-label {
        font-size: 16px;
    }

    .notification {
        left: 20px;
        right: 20px;
        transform: translateY(100px);
        min-width: auto;
    }

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

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-item {
    animation: fadeIn 0.3s ease;
}

/* Estados de hover e focus melhorados */
.item-input:hover {
    border-color: #e0e0e0;
}

.list-item:hover .delete-button {
    opacity: 1;
}

.delete-button {
    opacity: 0.7;
}

/* Melhorias visuais */
.shopping-list {
    border: 1px solid #f0f0f0;
}

.add-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.add-button:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c2185b;
}

