Spaces:
Sleeping
Sleeping
| /* Efek transisi yang lebih halus untuk semua elemen */ | |
| * { | |
| transition: all 0.3s ease-in-out; | |
| } | |
| /* Menghilangkan scrollbar default */ | |
| ::-webkit-scrollbar { | |
| display: none; | |
| } | |
| body { | |
| -ms-overflow-style: none; /* IE and Edge */ | |
| scrollbar-width: none; /* Firefox */ | |
| } | |
| /* | |
| * File: style.css | |
| * Description: File ini berisi semua gaya CSS kustom untuk website BPVP Sorong, | |
| * terutama untuk komponen modal chatbot dan peringatan kustom. | |
| */ | |
| /* Overlay untuk Modal Chat */ | |
| .chat-modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| display: none; /* Disembunyikan secara default */ | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 1000; | |
| padding: 1rem; | |
| } | |
| /* Konten Modal Chat */ | |
| .chat-modal-content { | |
| background-color: white; | |
| border-radius: 1rem; | |
| overflow: hidden; | |
| width: 100%; | |
| max-width: 400px; | |
| height: 90%; | |
| max-height: 650px; | |
| display: flex; | |
| flex-direction: column; | |
| box-shadow: 0 10px 25px rgba(0,0,0,0.1); | |
| } | |
| #chatbot-widget-container { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100%; | |
| width: 100%; | |
| } | |
| .chatbot-container { | |
| width: 100%; | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| #chatbot-header { | |
| background-color: #334155; /* Warna pastel-blue */ | |
| color: white; | |
| padding: 0.75rem 1rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| font-family: 'Inter', sans-serif; | |
| } | |
| #chatbot-header::before { | |
| content: 'Asisten Virtual'; | |
| font-weight: 600; | |
| } | |
| #end-chat-button { | |
| background: none; | |
| border: none; | |
| color: white; | |
| font-size: 1.25rem; | |
| cursor: pointer; | |
| } | |
| #chatbot { | |
| flex-grow: 1; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| background-color: #f1f5f9; /* Warna slate-100 */ | |
| } | |
| #conversation { | |
| flex-grow: 1; | |
| overflow-y: auto; | |
| padding: 1rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .chatbot-message { | |
| padding: 0.75rem 1rem; | |
| border-radius: 1rem; | |
| max-width: 85%; | |
| line-height: 1.5; | |
| word-wrap: break-word; | |
| } | |
| .user-message { | |
| background-color: #334155; /* Warna pastel-blue */ | |
| color: white; | |
| align-self: flex-end; | |
| border-bottom-right-radius: 0.25rem; | |
| } | |
| .chatbot-message.chatbot { | |
| background-color: #e2e8f0; /* Warna slate-200 */ | |
| color: #334155; | |
| align-self: flex-start; | |
| border-bottom-left-radius: 0.25rem; | |
| } | |
| .message-footer { | |
| font-size: 0.75rem; | |
| color: #94a3b8; | |
| text-align: right; | |
| margin-top: 0.25rem; | |
| } | |
| .user-message .message-footer { | |
| color: #cbd5e1; | |
| } | |
| #input-form { | |
| padding: 0.75rem; | |
| border-top: 1px solid #e2e8f0; | |
| background-color: #ffffff; | |
| } | |
| .message-container { | |
| display: flex; | |
| border: 1px solid #cbd5e1; | |
| border-radius: 9999px; | |
| overflow: hidden; | |
| } | |
| #input-field { | |
| flex-grow: 1; | |
| border: none; | |
| padding: 0.75rem 1rem; | |
| outline: none; | |
| background: transparent; | |
| } | |
| #submit-button { | |
| background-color: #334155; | |
| border: none; | |
| color: white; | |
| padding: 0.75rem 1.25rem; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| #submit-button:hover { | |
| background-color: #475569; | |
| } | |
| /* Modal Peringatan Kustom */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| z-index: 2000; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| overflow: auto; | |
| background-color: rgba(0,0,0,0.4); | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .modal-content { | |
| background-color: #fefefe; | |
| padding: 20px; | |
| border: 1px solid #888; | |
| width: 90%; | |
| max-width: 400px; | |
| text-align: center; | |
| border-radius: 0.5rem; | |
| box-shadow: 0 4px 6px rgba(0,0,0,0.1); | |
| } | |
| #custom-alert-ok { | |
| background-color: #334155; | |
| color: white; | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: 0.25rem; | |
| cursor: pointer; | |
| margin-top: 15px; | |
| } | |