* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.info ul {
    padding-left: 20px;
}

.info li {
    margin-bottom: 8px;
}

/* Result Page Styles */
.result-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

.result-section h2 {
    margin-top: 0;
    color: #2c3e50;
}

.da-pa-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.da-pa-box {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.da-pa-value {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.da-pa-label {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.da-pa-bar {
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.da-pa-fill {
    height: 100%;
    transition: width 1s ease-in-out;
}

.source-list {
    margin-top: 15px;
}

.source-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-name {
    font-weight: 600;
    color: #2c3e50;
}

.source-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 5px;
}

.metric-label {
    color: #7f8c8d;
}

.metric-value {
    font-weight: bold;
    font-size: 18px;
}

.da-value {
    color: #3498db;
}

.pa-value {
    color: #2ecc71;
}

.interpretation {
    margin-top: 15px;
}

.interpretation-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.interpretation-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.interpretation-text {
    color: #7f8c8d;
}

/* Tambahkan di akhir file */

.tips {
    margin-top: 15px;
}

.tip-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.tip-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tip-text {
    color: #7f8c8d;
}

.da-pa-fill {
    animation: fillBar 1.5s ease-in-out;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--target-width); }
}