﻿body {
    font-family: 'Segoe UI', sans-serif;
    background: #fafafa;
    margin: 0;
    padding: 40px 20px;
}

.calculator {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: auto;
}

.product {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.inputs-row {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

label {
    font-weight: 600;
    color: #7B5E57;
    margin-bottom: 6px;
}

input[type="number"] {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    transition: 0.3s;
}

input:focus {
    border-color: #8B4513;
    outline: none;
}

.color-tabs {
    display: flex;
    gap: 10px;
}

.color-tab {
    flex: 1;
    padding: 10px 20px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .color-tab.active {
        background-color: #8B4513;
        border-color: #8B4513;
        color: #fff;
    }

.total {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #8B4513;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    min-width: 160px;
    text-align: center;
    z-index: 1000;
}

@media(max-width: 600px) {
    /*.inputs-row {
            flex-direction: column;
        }*/
}


@media (max-width:600px) {
    nav {
        justify-content: right
    }

    .services, .portfolio {
        flex-direction: column
    }
}

/* Dropdown container */
.dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
}

/* Button */
.dropbtn {
    background-color: #b5651d;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        /* Hover effects */
        .dropdown-content a:hover {
            background-color: #b5651d;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #b5651d;
}
