/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* CONTAINER */
.container {
    max-width: 480px;
    margin: auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* FORM ELEMENTS */
label {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f8fafc;
}

input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input:hover {
    border-color: #cbd5e0;
}

/* ITEM PRODUK */
.item {
    border: 2px solid #e2e8f0;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.col {
    flex: 1;
}

/* BUTTONS */
.btn-add {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-add:active {
    transform: translateY(0);
}

.remove {
    width: 100%;
    background: linear-gradient(135deg, #f56565, #c53030);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.3);
}

.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* SHARE BUTTONS */
.share-container {
    margin-top: 24px;
    text-align: center;
    border-top: 2px dashed #e2e8f0;
    padding-top: 24px;
}

.share-title {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-share {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-share:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-share:active {
    transform: scale(0.95);
}

.btn-share.facebook {
    background: #1877f2;
}

.btn-share.twitter {
    background: #1da1f2;
}

.btn-share.whatsapp-share {
    background: #25D366;
}

.btn-share.telegram {
    background: #0088cc;
}

.btn-share.linkedin {
    background: #0077b5;
}

.btn-share.copy-link {
    background: #718096;
}

/* TOTAL */
.total {
    text-align: right;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2d3748;
    padding: 16px 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(90deg, #f7fafc, #ffffff);
    border-radius: 12px;
    padding: 16px;
}

.total span {
    color: #667eea;
    font-size: 24px;
}

/* EXAMPLE IMAGE */
.example-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    margin-top: 12px;
    transition: transform 0.3s ease;
}

.example-img:hover {
    transform: scale(1.02);
}

/* FOOTER */
footer {
    margin-top: 20px;
}

footer .container {
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 16px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .btn-share {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .total {
        font-size: 18px;
    }
    
    .total span {
        font-size: 20px;
    }
}

/* ANIMATIONS */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item {
    animation: slideIn 0.3s ease;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}