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

body {
    font-family: 'Roboto' sans-serif;
    background: linear-gradient(135deg, rgb(253, 227, 60) 0%, #f0d000 50%, rgb(253, 227, 60) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 4px solid rgb(18, 121, 191);
}

h1 {
    color: rgb(18, 121, 191);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 
        2px 2px 0 rgb(253, 227, 60),
        4px 4px 8px rgba(0, 0, 0, 0.3);
    animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    font-weight: 500;
}

.search-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

#namaInput {
    flex: 1;
    padding: 15px 20px;
    border: 3px solid rgb(253, 227, 60);
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 
        inset 2px 2px 8px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(253, 227, 60, 0.3);
    transition: all 0.3s ease;
    outline: none;
}

#namaInput:focus {
    border-color: rgb(18, 121, 191);
    box-shadow: 
        inset 2px 2px 8px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(18, 121, 191, 0.4),
        0 2px 8px rgba(18, 121, 191, 0.3);
    transform: scale(1.02);
}

#namaInput::placeholder {
    color: #999;
    font-style: italic;
}

#searchBtn {
    padding: 15px 30px;
    background: linear-gradient(145deg, rgb(253, 227, 60), #f0d000);
    border: 3px solid rgb(18, 121, 191);
    border-radius: 50px;
    color: rgb(18, 121, 191);
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(253, 227, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

#searchBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

#searchBtn:hover::before {
    width: 300px;
    height: 300px;
}

#searchBtn:hover {
    background: linear-gradient(145deg, #fff700, rgb(253, 227, 60));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(253, 227, 60, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#searchBtn:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 
        0 2px 8px rgba(253, 227, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#searchBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    border: 2px dashed rgb(253, 227, 60);
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid rgb(253, 227, 60);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: rgb(18, 121, 191);
    font-weight: bold;
    margin: 0;
}

.hasil {
    min-height: 50px;
}

.error {
    background: linear-gradient(145deg, #ffebee, #ffcdd2);
    color: #c62828;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ef5350;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}

.success {
    background: linear-gradient(145deg, #e8f5e8, #c8e6c9);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.multiple-results {
    background: linear-gradient(145deg, rgb(253, 227, 60), #f0d000);
    color: rgb(18, 121, 191);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgb(18, 121, 191);
    box-shadow: 0 4px 12px rgba(253, 227, 60, 0.3);
}

.result-item {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid rgb(253, 227, 60);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(253, 227, 60, 0.2), transparent);
    transition: left 0.6s ease;
}

.result-item:hover::before {
    left: 100%;
}

.result-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgb(18, 121, 191);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(18, 121, 191, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.result-item:last-child {
    margin-bottom: 0;
}

.nama-lengkap {
    font-size: 1.3em;
    color: rgb(18, 121, 191);
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.kelompok-info {
    font-size: 1.1em;
    color: #2c5234;
    font-weight: 600;
    margin-bottom: 5px;
    background: linear-gradient(90deg, rgb(253, 227, 60), #f0d000);
    padding: 8px 15px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(253, 227, 60, 0.3);
}

.pembina-info {
    font-size: 1em;
    color: #4a5568;
    font-weight: 500;
    margin-top: 10px;
    padding: 8px 15px;
    background: linear-gradient(90deg, rgba(18, 121, 191, 0.1), rgba(18, 121, 191, 0.2));
    border-radius: 20px;
    border-left: 4px solid rgb(18, 121, 191);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    #searchBtn {
        padding: 15px;
    }
    
    .result-item {
        padding: 15px;
    }
    
    .nama-lengkap {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    #namaInput, #searchBtn {
        font-size: 14px;
        padding: 12px 15px;
    }
}