:root {
    --primary-color: #00a8e8;
    --secondary-color: #007ea7;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --delete-color: #f44336;
    --footer-bg: #2c3e50;
}

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

html {
    height: auto;
    overflow: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 0;
}

.main-header {
    position: relative;
    height: 147px;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--light-text);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-link {
    display: block;
    transition: transform 0.3s;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.total-banner {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.total-label {
    font-size: 1.2rem;
    font-weight: 500;
}

.total-price {
    font-size: 1.8rem;
    font-weight: 700;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 0 0 auto;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.input-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 30px 0;
}

.input-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
}

input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.add-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.add-button:hover {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.shopping-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.shopping-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

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

.item-name {
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.item-quantity, .item-price {
    text-align: center;
}

.delete-button {
    background-color: transparent;
    color: var(--delete-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

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

.empty-list {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
}

.validation-error {
    color: var(--delete-color);
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.main-footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 15px 0;
    position: relative;
    width: 100%;
    margin-top: auto;
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
}

.footer-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 30px 0;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    
    .shopping-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .item-quantity, .item-price {
        text-align: left;
    }
    
    .delete-button {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .shopping-item {
        position: relative;
        padding-right: 50px;
    }
    
    .total-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
} 