.jiwaner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    font-family: "Montserrat", sans-serif;
    animation: fadeIn 1s ease-in-out;
}

.form-box, .result-box {
    flex: 1;
    width: auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    animation: slideUp 0.8s ease;
}

.form-box:hover, .result-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(123, 47, 247, 0.2);
    border: 1px solid rgba(123, 47, 247, 0.15);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
    transform: scale(1.02);
    outline: none;
}

.note {
    font-size: 13px;
    color: #c00;
    margin-bottom: 15px;
    animation: fadeIn 0.8s ease-in-out;
}


.btns, .button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

button {
    flex: 1;
    padding: 10px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(45deg, #7b2ff7, #9f44d3);
    box-shadow: 0 4px 10px rgba(155, 44, 245, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 18px rgba(155, 44, 245, 0.4);
}


button:active::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    transition: background 0.3s ease;
}

th {
    background: linear-gradient(90deg, #cb8fd0, #b46de0);
    color: #fff;
    letter-spacing: 0.5px;
}


tr:nth-child(even) {
    background: #f9f9f9;
}


tr:hover {
    background: rgba(203, 143, 208, 0.1);
    transform: scale(1.01);
}


.summary {
    margin-top: 20px;
    font-size: 15px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


@media(max-width: 768px) {
    .jiwaner { flex-direction: column; align-items: center; }
}
