
/* Import Font Icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* === CONTAINER UTAMA === */
#uid-container {
    /* Ubah warna background container */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    /* Ubah padding container */
    padding: 40px 30px;
    /* Ubah border radius */
    border-radius: 20px;
    /* Ubah shadow */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Ubah lebar maksimal */
    max-width: 600px;
    margin: 30px auto;
    /* Ubah font family */
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
#uid-container::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    /* Ubah warna dekorasi background */
    background: rgba(139, 69, 19, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* === HEADER SECTION === */
.uid-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.uid-title {
    /* Ubah font family judul */
    font-family: "Playfair Display", Georgia, serif;
    /* Ubah ukuran font judul */
    font-size: 36px;
    /* Ubah warna judul */
    color: #8B4513;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.uid-subtitle {
    /* Ubah ukuran font subtitle */
    font-size: 15px;
    /* Ubah warna subtitle */
    color: #666666;
    font-weight: 300;
    margin: 0;
    line-height: 1.6;
}

/* === FORM WRAPPER === */
.uid-form-wrapper {
    /* Ubah background form wrapper */
    background: #ffffff;
    /* Ubah padding form */
    padding: 25px;
    /* Ubah border radius form */
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    /* Ubah shadow form */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.uid-form-group {
    margin-bottom: 20px;
}

/* === INPUT FIELDS === */
.uid-input,
.uid-textarea {
    /* Ubah lebar input */
    width: 100%;
    /* Ubah padding input */
    padding: 14px 18px;
    /* Ubah ukuran font input */
    font-size: 15px;
    /* Ubah warna border */
    border: 1.5px solid #e8e8e8;
    /* Ubah border radius */
    border-radius: 12px;
    /* Ubah warna background */
    background-color: #fafafa;
    /* Ubah warna font */
    color: #333333;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.uid-input:focus,
.uid-textarea:focus {
    /* Ubah warna border saat focus */
    border-color: #8B4513;
    /* Ubah background saat focus */
    background-color: #ffffff;
    /* Ubah shadow saat focus */
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.uid-input::placeholder,
.uid-textarea::placeholder {
    /* Ubah warna placeholder */
    color: #a0a0a0;
    font-weight: 300;
}

.uid-textarea {
    /* Ubah tinggi minimum textarea */
    min-height: 100px;
    /* Ubah tinggi maksimum textarea */
    max-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

/* === TOMBOL SUBMIT === */
.uid-btn-submit {
    /* Ubah warna background tombol */
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    /* Ubah warna font tombol */
    color: #ffffff;
    /* Ubah padding tombol */
    padding: 14px 40px;
    /* Ubah ukuran font tombol */
    font-size: 16px;
    font-weight: 500;
    border: none;
    /* Ubah border radius tombol */
    border-radius: 50px;
    /* Ubah lebar tombol */
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.uid-btn-submit:hover {
    /* Ubah efek hover tombol */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.uid-btn-submit:active {
    transform: translateY(0);
}

.uid-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading spinner */
.uid-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.uid-spinner {
    animation: spin 1s linear infinite;
}

.uid-spinner-circle {
    stroke-dasharray: 62.83;
    stroke-dashoffset: 47.12;
    animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes spinner-dash {
    0% {
        stroke-dashoffset: 62.83;
    }
    50% {
        stroke-dashoffset: 15.71;
    }
    100% {
        stroke-dashoffset: 62.83;
    }
}

/* === NOTIFIKASI === */
.uid-notification {
    display: none;
    /* Ubah padding notifikasi */
    padding: 15px 20px;
    margin: 20px 0;
    /* Ubah border radius notifikasi */
    border-radius: 12px;
    /* Ubah ukuran font notifikasi */
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.uid-notification.success {
    /* Ubah warna background notifikasi sukses */
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    /* Ubah warna font notifikasi sukses */
    color: #155724;
    border: 1px solid #b1dfbb;
}

.uid-notification.error {
    /* Ubah warna background notifikasi error */
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    /* Ubah warna font notifikasi error */
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* === SECTION UCAPAN === */
.uid-wishes-section {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.uid-ucapan-list {
    /* Ubah tinggi maksimal untuk scroll (setelah 5 ucapan) */
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Ubah padding list */
    padding: 5px;
}

/* Custom Scrollbar */
.uid-ucapan-list::-webkit-scrollbar {
    width: 6px;
}

.uid-ucapan-list::-webkit-scrollbar-track {
    /* Ubah warna track scrollbar */
    background: #f1f1f1;
    border-radius: 10px;
}

.uid-ucapan-list::-webkit-scrollbar-thumb {
    /* Ubah warna thumb scrollbar */
    background: #8B4513;
    border-radius: 10px;
    opacity: 0.5;
}

.uid-ucapan-list::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

/* === ITEM UCAPAN === */
.uid-wish-item {
    /* Ubah background item ucapan */
    background: #ffffff;
    /* Ubah padding item */
    padding: 20px;
    /* Ubah margin antar item */
    margin-bottom: 15px;
    /* Ubah border radius */
    border-radius: 12px;
    /* Ubah shadow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Ubah border */
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uid-wish-item:hover {
    /* Ubah efek hover item */
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Nama Pengirim */
.uid-wish-author {
    /* Ubah warna font nama */
    color: #8B4513;
    /* Ubah ukuran font nama */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.uid-wish-author::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    /* Ubah warna icon */
    color: #A0522D;
    font-size: 14px;
}

/* Isi Ucapan */
.uid-wish-message {
    /* Ubah warna font ucapan */
    color: #555555;
    /* Ubah ukuran font ucapan */
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
    word-wrap: break-word;
}

/* Waktu */
.uid-wish-time {
    /* Ubah warna font waktu */
    color: #999999;
    /* Ubah ukuran font waktu */
    font-size: 12px;
    font-style: italic;
    display: flex;
    align-items: center;
}

.uid-wish-time::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    margin-right: 5px;
    font-style: normal;
}

/* Pesan tidak ada ucapan */
.uid-no-wishes {
    text-align: center;
    /* Ubah warna font pesan kosong */
    color: #999999;
    /* Ubah ukuran font */
    font-size: 14px;
    /* Ubah padding */
    padding: 40px 20px;
    font-style: italic;
    /* Ubah background */
    background: #fafafa;
    border-radius: 12px;
    margin: 10px 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    #uid-container {
        padding: 25px 20px;
        margin: 20px auto;
        border-radius: 15px;
    }
    
    .uid-title {
        font-size: 28px;
    }
    
    .uid-subtitle {
        font-size: 14px;
    }
    
    .uid-form-wrapper {
        padding: 20px;
    }
    
    .uid-input,
    .uid-textarea {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .uid-btn-submit {
        font-size: 15px;
        padding: 12px 30px;
    }
    
    .uid-wish-item {
        padding: 15px;
    }
    
    .uid-wish-author {
        font-size: 15px;
    }
    
    .uid-wish-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #uid-container {
        padding: 20px 15px;
    }
    
    .uid-title {
        font-size: 24px;
    }
    
    .uid-ucapan-list {
        max-height: 400px;
    }
}

/* === ANIMATION EFFECTS === */
.uid-wish-item {
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.uid-wish-item:nth-child(odd) {
    transform: translateX(-20px);
}

.uid-wish-item:nth-child(even) {
    transform: translateX(20px);
}

/* Print styles */
@media print {
    .uid-form-wrapper {
        display: none;
    }
    
    .uid-notification {
        display: none !important;
    }
    
    .uid-ucapan-list {
        max-height: none !important;
        overflow: visible !important;
    }
}