Files
web-antrean/assets/scss/checkin/_components.scss
T
2026-01-05 08:32:59 +07:00

883 lines
16 KiB
SCSS

// Check-in Page Component Styles
@import 'variables';
/* Modern Minimalist Background */
.bg-modern {
background: $bg-white;
min-height: 100vh;
max-height: 100vh;
position: relative;
overflow: hidden;
}
.no-scroll-container {
height: 100vh;
max-height: 100vh;
overflow-y: auto;
overflow-x: hidden;
}
.no-scroll-container::-webkit-scrollbar {
width: $spacing-xs;
}
.no-scroll-container::-webkit-scrollbar-track {
background: transparent;
}
.no-scroll-container::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 2px;
}
.no-overflow {
overflow: hidden !important;
height: 100vh;
max-height: 100vh;
}
.bg-modern::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 50%, rgba(21, 101, 192, 0.05) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(21, 101, 192, 0.05) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}
/* Main Card dengan Glassmorphism */
.main-card {
background: rgba(255, 255, 255, 0.95) !important;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: $radius-xl !important;
box-shadow: $shadow-xl !important;
overflow: hidden;
position: relative;
z-index: $z-base;
}
/* Header Modern Minimalis */
.header-modern {
background: linear-gradient(135deg, $primary-color 0%, $primary-dark 100%);
padding: $spacing-xl $spacing-2xl $spacing-lg;
position: relative;
overflow: hidden;
}
.header-modern::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.header-content {
display: flex;
align-items: center;
justify-content: center;
gap: $spacing-md;
margin-bottom: $spacing-xs;
}
.icon-circle {
width: 56px;
height: 56px;
border-radius: $radius-full;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
border: 2px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.header-text {
text-align: center;
}
.title-modern {
font-size: $font-3xl;
font-weight: 600;
color: white;
margin: 0;
line-height: 1.2;
}
.subtitle-modern {
font-size: $font-base;
color: rgba(255, 255, 255, 0.9);
margin: 2px 0 0;
font-weight: 400;
}
.tabs-modern {
position: relative;
z-index: $z-base;
}
.tabs-modern :deep(.v-tab) {
color: rgba(255, 255, 255, 0.8) !important;
font-weight: 500;
text-transform: none;
letter-spacing: 0;
min-width: 120px;
transition: all $transition-base;
}
.tabs-modern :deep(.v-tab:hover) {
color: rgba(255, 255, 255, 1) !important;
background: rgba(255, 255, 255, 0.1);
border-radius: $radius-sm;
}
.tabs-modern :deep(.v-tab--selected) {
color: white !important;
font-weight: 600;
}
.tabs-modern :deep(.v-slider) {
background-color: $secondary-color !important;
height: 3px;
border-radius: 2px;
}
.tab-modern {
display: flex;
align-items: center;
gap: 6px;
}
.tab-modern .v-icon {
font-size: $font-xl !important;
}
/* Content Area */
.content-modern {
background: white;
max-height: calc(100vh - 200px);
overflow-y: auto;
}
.content-modern::-webkit-scrollbar {
width: $spacing-xs;
}
.content-modern::-webkit-scrollbar-track {
background: transparent;
}
.content-modern::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 2px;
}
.tab-content {
animation: fadeIn $transition-slow ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Status Header */
.status-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: $spacing-md;
padding: $spacing-lg;
background: linear-gradient(135deg, $bg-grey 0%, $bg-blue-light 100%);
border-radius: $radius-md;
border: 1px solid rgba(21, 101, 192, 0.1);
text-align: center;
}
.status-icon-wrapper {
width: 40px;
height: 40px;
border-radius: 10px;
background: white;
display: flex;
align-items: center;
justify-content: center;
box-shadow: $shadow-sm;
flex-shrink: 0;
margin: 0 auto;
}
.status-text {
width: 100%;
text-align: center;
}
.status-title {
font-size: $font-lg;
font-weight: 600;
color: $text-primary;
margin: 0 0 $spacing-xs;
letter-spacing: -0.3px;
text-align: center;
}
.status-subtitle {
font-size: $font-base;
color: $text-secondary;
margin: 0;
line-height: 1.4;
text-align: center;
}
/* QR Scanner Modern */
.qr-scanner-container {
display: flex;
justify-content: center;
align-items: center;
margin: $spacing-2xl 0;
}
.qr-placeholder {
width: 100%;
max-width: 300px;
height: 300px;
background: linear-gradient(135deg, $bg-grey 0%, $bg-blue-light 100%);
border-radius: $radius-lg;
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border: 2px dashed $primary-color;
box-shadow: 0 4px 20px rgba(21, 101, 192, 0.1);
margin: 0 auto;
}
.qr-reader-container {
width: 100%;
max-width: 500px;
margin: 0 auto;
position: relative;
}
.qr-reader-wrapper {
width: 100%;
aspect-ratio: 1 / 1;
border-radius: $radius-lg;
overflow: hidden;
box-shadow: $shadow-xl;
background: #000;
position: relative;
max-width: 500px;
max-height: 500px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid rgba(21, 101, 192, 0.2);
margin: 0 auto;
}
.qr-reader-wrapper :deep(video) {
width: 100% !important;
height: 100% !important;
border-radius: $radius-lg;
display: block !important;
object-fit: cover;
background: #000;
aspect-ratio: 1 / 1;
}
.qr-reader-wrapper :deep(canvas) {
display: none !important;
}
.qr-reader-wrapper :deep(#qr-reader__dashboard) {
display: none !important;
}
.qr-reader-wrapper :deep(#qr-reader__scan_region) {
border-radius: $radius-lg;
border: 3px solid rgba(21, 101, 192, 0.8) !important;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4) !important;
position: relative;
}
.qr-reader-wrapper :deep(#qr-reader__scan_region::before) {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
border: 3px solid rgba(21, 101, 192, 0.8);
border-radius: $radius-lg;
animation: pulse-border 2s ease-in-out infinite;
}
@keyframes pulse-border {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.7;
transform: scale(1.02);
}
}
.qr-reader-wrapper :deep(#qr-reader__scan_region video) {
border-radius: $radius-lg;
width: 100% !important;
height: 100% !important;
aspect-ratio: 1 / 1;
object-fit: cover;
}
.scanner-status {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 6px;
font-size: $font-sm;
}
.scanner-instruction {
display: flex;
align-items: center;
justify-content: center;
margin-top: $spacing-md;
padding: 10px $spacing-md;
background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(13, 71, 161, 0.1) 100%);
border-radius: 10px;
color: $primary-color;
font-weight: 500;
font-size: $font-sm;
text-align: center;
border: 1px solid rgba(21, 101, 192, 0.2);
}
.scanner-loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.7);
border-radius: $radius-lg;
z-index: $z-overlay;
}
.scanner-overlay {
position: absolute;
width: 80%;
height: 80%;
}
.corner {
position: absolute;
width: 40px;
height: 40px;
border: 3px solid $primary-color;
}
.corner-tl {
top: 0;
left: 0;
border-right: none;
border-bottom: none;
border-radius: $radius-sm 0 0 0;
}
.corner-tr {
top: 0;
right: 0;
border-left: none;
border-bottom: none;
border-radius: 0 $radius-sm 0 0;
}
.corner-bl {
bottom: 0;
left: 0;
border-right: none;
border-top: none;
border-radius: 0 0 0 $radius-sm;
}
.corner-br {
bottom: 0;
right: 0;
border-left: none;
border-top: none;
border-radius: 0 0 $radius-sm 0;
}
.scan-line {
position: absolute;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, $primary-color, transparent);
top: 0;
animation: scan 2s linear infinite;
box-shadow: 0 0 10px $primary-color;
}
@keyframes scan {
0% { top: 0; }
100% { top: 100%; }
}
.qr-icon {
position: relative;
z-index: $z-base;
animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
/* Modern Buttons */
.btn-primary-modern {
background: linear-gradient(135deg, $primary-color 0%, $primary-dark 100%) !important;
color: white !important;
font-weight: 600;
text-transform: none;
letter-spacing: 0.3px;
border-radius: $radius-md !important;
padding: 14px $spacing-2xl !important;
transition: all $transition-bezier;
box-shadow: $shadow-primary !important;
}
.btn-primary-modern:hover {
transform: translateY(-2px);
box-shadow: $shadow-primary-hover !important;
}
.btn-primary-modern:active {
transform: translateY(0);
}
.btn-primary-modern:disabled {
opacity: 0.5;
transform: none !important;
}
.btn-stop-modern {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
color: white !important;
font-weight: 600;
text-transform: none;
letter-spacing: 0.3px;
border-radius: $radius-md !important;
padding: 14px $spacing-2xl !important;
transition: all $transition-bezier;
box-shadow: $shadow-error !important;
}
.btn-stop-modern:hover {
transform: translateY(-2px);
box-shadow: $shadow-error-hover !important;
}
.action-buttons {
margin-top: $spacing-xl;
display: flex;
justify-content: center;
}
.btn-centered {
width: auto !important;
min-width: 240px !important;
max-width: 320px !important;
margin: 0 auto !important;
display: block !important;
}
.btn-centered-small {
width: auto !important;
min-width: 180px !important;
margin: 0 auto;
display: block;
}
.btn-test-camera {
border-color: $primary-color !important;
color: $primary-color !important;
}
.btn-test-camera :deep(.v-btn__content) {
color: $primary-color !important;
}
.btn-test-camera :deep(.v-icon) {
color: $primary-color !important;
opacity: 1 !important;
}
/* Modern Inputs */
.input-modern :deep(.v-field) {
border-radius: $radius-md;
font-size: $font-md;
background: $bg-light;
border: 1.5px solid $border-light;
transition: all $transition-base;
}
.input-modern :deep(.v-field--focused) {
background: white;
border-color: $primary-color;
box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}
.input-modern :deep(.v-field__input) {
padding-top: $spacing-md;
padding-bottom: $spacing-md;
}
.input-modern :deep(.v-label) {
font-weight: 500;
color: $text-secondary;
}
.quick-actions {
margin-top: $spacing-lg;
padding-top: $spacing-lg;
border-top: 1px solid $border-light;
}
.info-card {
display: flex;
justify-content: center;
}
.info-alert-centered {
width: 100%;
}
.info-alert-centered :deep(.v-alert__content) {
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
}
.quick-actions .v-btn {
transition: all $transition-base;
border-radius: $radius-md !important;
border: 1.5px solid $border-light !important;
}
.quick-actions .v-btn:hover {
transform: translateY(-2px);
border-color: $primary-color !important;
box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
}
.quick-actions .v-btn :deep(.v-icon) {
opacity: 1 !important;
color: inherit !important;
}
.quick-actions .v-btn[color="primary"] {
color: $primary-color !important;
border-color: $primary-color !important;
}
.quick-actions .v-btn[color="primary"] :deep(.v-icon) {
color: $primary-color !important;
}
.qr-code-container {
display: flex;
justify-content: center;
align-items: center;
padding: $spacing-lg;
background: white;
border-radius: $radius-md;
box-shadow: $shadow-md;
}
.qr-code-container :deep(canvas) {
border-radius: $radius-sm;
}
.qr-display {
animation: slideUp 0.5s ease-out;
}
/* Stats Footer Modern */
.stats-footer-modern {
animation: slideUp 0.5s ease-out 0.3s both;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.stat-card-modern {
background: white;
border-radius: $radius-md;
padding: $spacing-lg $spacing-md;
text-align: center;
border: 1px solid $border-light;
transition: all $transition-bezier;
position: relative;
overflow: hidden;
}
.stat-card-modern::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, $primary-color 0%, $primary-dark 100%);
transform: scaleX(0);
transition: transform $transition-base;
}
.stat-card-modern:hover {
transform: translateY(-4px);
box-shadow: $shadow-lg;
border-color: $primary-color;
}
.stat-card-modern:hover::before {
transform: scaleX(1);
}
.stat-icon-modern {
margin-bottom: $spacing-md;
display: inline-flex;
padding: $spacing-sm;
background: $bg-blue-light;
border-radius: 10px;
}
.stat-value {
font-size: $font-2xl;
font-weight: 700;
color: $text-primary;
margin-bottom: $spacing-xs;
letter-spacing: -0.5px;
}
.stat-label {
font-size: $font-sm;
color: $text-secondary;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.custom-snackbar {
margin-bottom: $spacing-lg;
margin-right: $spacing-lg;
}
.custom-snackbar :deep(.v-snackbar__wrapper) {
min-width: 300px;
}
/* History Dialog Styles */
.history-list {
max-height: 500px;
overflow-y: auto;
padding-right: $spacing-sm;
}
.history-list::-webkit-scrollbar {
width: 6px;
}
.history-list::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}
.history-list::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}
.history-list::-webkit-scrollbar-thumb:hover {
background: #555;
}
.history-item {
transition: all $transition-base;
border-left: 4px solid transparent;
}
.history-item:hover {
transform: translateX(4px);
box-shadow: $shadow-md;
}
.history-success {
border-left-color: #4caf50;
background: rgba(76, 175, 80, 0.05);
}
.history-failed {
border-left-color: #f44336;
background: rgba(244, 67, 54, 0.05);
}
.history-pending {
border-left-color: #ff9800;
background: rgba(255, 152, 0, 0.05);
}
/* Mobile Optimization */
@media (max-width: 600px) {
.v-container.no-scroll-container {
padding: $spacing-sm !important;
}
.main-card {
border-radius: $radius-lg !important;
}
.header-modern {
padding: $spacing-lg $spacing-lg $spacing-md !important;
}
.content-modern {
padding: $spacing-lg !important;
max-height: calc(100vh - 180px);
}
.header-content {
flex-direction: column;
text-align: center;
gap: $spacing-md;
}
.header-text {
text-align: center;
}
.icon-circle {
width: 56px;
height: 56px;
}
.title-modern {
font-size: $font-2xl;
}
.subtitle-modern {
font-size: $font-base;
}
.content-modern {
padding: $spacing-xl $spacing-lg !important;
}
.status-header {
padding: $spacing-lg;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
gap: $spacing-md;
}
.status-icon-wrapper {
margin: 0 auto;
}
.status-text {
text-align: center;
width: 100%;
}
.status-title {
font-size: $font-lg;
}
.status-subtitle {
font-size: $font-base;
}
.qr-placeholder {
max-width: 100%;
height: 280px;
}
.qr-reader-container {
max-width: 100%;
}
.qr-reader-wrapper {
min-height: 300px;
max-height: 70vh;
border-radius: $radius-lg;
}
.qr-reader-wrapper :deep(video) {
max-height: 70vh;
object-fit: contain;
}
.scanner-instruction {
font-size: $font-sm;
padding: $spacing-md;
}
.stats-footer-modern {
margin-top: $spacing-sm;
}
.stat-card-modern {
padding: $spacing-md $spacing-sm;
}
.stat-value {
font-size: $font-xl;
}
.stat-label {
font-size: $font-xs;
}
.stat-icon-modern {
margin-bottom: $spacing-sm;
padding: 6px;
}
}