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

/* Styling Body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    padding: 20px;
    line-height: 1.5;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: #005b99;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Section */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form label {
    font-weight: bold;
    color: #005b99;
    margin-bottom: 5px;
}

form input,
form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Input Time Styling */
form .time-input {
    display: flex;
    gap: 10px;
}

form .time-input input {
    flex: 1;
}

/* Tooltip Styling */
.tooltip {
    display: inline-block;
    background-color: #005b99;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 18px;
    margin-left: 5px;
    cursor: pointer;
    position: relative;
}

.tooltip::after {
    content: attr(title);
    display: none;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #005b99;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tooltip:hover::after {
    display: block;
    z-index: 10;
}

/* Button Styling */
button {
    padding: 12px;
    background-color: #005b99;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #007acc;
}

button:active {
    background-color: #003f66;
}

/* Result Section */
.result-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result-box p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.result-box strong {
    font-size: 1.2rem;
    color: #005b99;
}

/* Animasi Hasil */
.result-box:hover {
    transform: translateY(-5px);
    background-color: #e6f7ff;
    border: 2px solid #005b99;
}

/* Styling Rangkuman Input */
#summaryInput {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #007acc;
    border-radius: 8px;
    background: #f0f8ff;
    font-size: 1rem;
    color: #333;
}

/* Responsif */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 15px;
    }

    form .time-input {
        flex-direction: column;
        gap: 15px;
    }
}
