/*
 * File: visitor.css
 * Created on Sun Mar 01 2026
 * Last Updated: Sun Mar 01 2026 8:23:09 PM
 * Author: Erwan Setyo Budi
 * Email: erwans818@gmail.com
 */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.vegas-slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.visitor-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Form Card Styling */
.visitor-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

[data-bs-theme="dark"] .visitor-form-card {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
}

.library-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.library-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.library-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #333;
}

[data-bs-theme="dark"] .library-info h2 {
    color: #fff;
}

.library-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .library-info p {
    color: #aaa;
}

.visitor-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #333;
}

[data-bs-theme="dark"] .visitor-title {
    color: #fff;
}

.visitor-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

[data-bs-theme="dark"] .visitor-subtitle {
    color: #aaa;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .form-label {
    color: #ddd;
}

.form-label i {
    color: #667eea;
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

[data-bs-theme="dark"] .form-control {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

[data-bs-theme="dark"] .form-text {
    color: #777;
}

.btn-checkin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-checkin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-checkin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-checkin i {
    font-size: 1.2rem;
}

/* Right Panel Styling */
.visitor-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.message-panel {
    max-width: 600px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.avatar-container {
    margin-bottom: 2rem;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-text {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.quote-panel {
    max-width: 600px;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.5s ease;
}

.quote-content {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    color: white;
    margin-bottom: 1rem;
}

.quote-content::before {
    content: "“";
    font-size: 3rem;
    opacity: 0.5;
    margin-right: 0.5rem;
}

.quote-author {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-style: italic;
}

.powered-by {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.powered-by code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #fff;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert styling */
.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .alert-info {
    background: rgba(102, 126, 234, 0.2);
    color: #9cb0ff;
}

/* Responsive */
@media (max-width: 768px) {
    .visitor-container {
        flex-direction: column;
    }

    .visitor-form-card {
        max-width: 100%;
        height: auto;
        padding: 2rem;
    }

    .visitor-right-panel {
        display: none;
    }

    .alert-info {
        display: block;
    }
}