/* ==========================
   Weight Equivalent Calculator v1.2
   Bright, modern horizontal layout
   ========================== */

.wec-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Left input panel --- */
.wec-left {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
}

.wec-left input,
.wec-left select,
.wec-left button {
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.wec-left button {
    background-color: #0078ff;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.wec-left button:hover {
    background-color: #005fcc;
}

/* --- Right results panel --- */
.wec-right {
    flex: 3 1 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 300px;
}

/* Each result item */
.wec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    max-width: 600px;
    width: 100%;
}

.wec-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.wec-item-text {
    font-size: 1rem;
    color: #333;
}

/* --- Loading and animations --- */
.wec-loading {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #555;
    padding: 15px;
    animation: fadePulse 2s infinite ease-in-out;
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* --- Next button --- */
#wec-next {
    background-color: #00b56a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#wec-next:hover {
    background-color: #009a58;
}

/* --- Responsive tweaks --- */
@media (max-width: 700px) {
    .wec-container {
        flex-direction: column;
        align-items: center;
    }

    .wec-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wec-item-img {
        width: 80px;
        height: 80px;
    }
}
