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

body {
    font-family: Arial, sans-serif;
    background-color: #e6ffe6;
    padding: 10px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #d4f4d4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
    }
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h4 {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .input-section {
        grid-template-columns: 1fr;
    }
}

input[type="text"], input[type="number"], select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: clamp(14px, 2.5vw, 16px);
    width: 100%;
}

button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(14px, 2.5vw, 16px);
    min-height: 44px;
}

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

.pallet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.pallet-item.normal {
    background-color: #f9f9f9;
    border-color: #4CAF50;
}

.pallet-item.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.pallet-item.danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .pallet-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
}

.pallet-info {
    flex: 1;
    font-size: clamp(14px, 2.5vw, 16px);
    word-break: break-word;
}

@media (max-width: 768px) {
    .pallet-info {
        text-align: center;
    }
}

.timer {
    font-family: monospace;
    font-size: clamp(16px, 3vw, 20px);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0 10px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.timer.green {
    color: #2d5a2d;
    background-color: rgba(76, 175, 80, 0.1);
}

.timer.yellow {
    color: #b8860b;
    background-color: rgba(255, 193, 7, 0.1);
}

.timer.red {
    color: #8b0000;
    background-color: rgba(220, 53, 69, 0.1);
}

@media (max-width: 768px) {
    .timer {
        margin: 0;
        font-size: clamp(14px, 4vw, 18px);
    }
}

.remove-btn {
    background-color: #ff4444;
    padding: 8px 12px;
    margin-left: 10px;
    min-width: 40px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.remove-btn:hover {
    background-color: #cc0000;
}

@media (max-width: 768px) {
    .remove-btn {
        margin-left: 0;
        align-self: center;
    }
}
