File size: 3,957 Bytes
f227f03 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
/* 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;
}
|