:root {
    --primary-color: #353839;
    --primary-hover: #2c2f30;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

.badge {
    font-size: 0.75em;
}

.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 1rem;
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.visitor-pass {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.pass-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.pass-body {
    padding: 1.5rem;
}

.qr-code {
    text-align: center;
    margin: 1rem 0;
}

.qr-code img {
    max-width: 150px;
    height: auto;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.camera-preview {
    width: 100%;
    border-radius: 0.5rem;
    border: 2px dashed #dee2e6;
}

.camera-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(53, 56, 57, 0.05);
    border-radius: 1rem;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.step.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 4rem 0;
}

.feature-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.input-group-text {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(53, 56, 57, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    font-weight: 500;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Professional Form Styling */
.professional-form {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.professional-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 2rem;
    border: none;
}

.header-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.header-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.header-content small {
    opacity: 0.8;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.step-title h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 2;
}

.input-wrapper .form-control {
    padding-left: 3rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.input-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(53, 56, 57, 0.15);
    background-color: #fff;
}

.input-wrapper .form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.custom-checkbox {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.custom-checkbox:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.custom-checkbox .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.custom-checkbox .form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
}

.file-upload-wrapper {
    margin-top: 0.5rem;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: #e9ecef;
}

.file-upload-area input[type="file"] {
    border: none;
    background: transparent;
    padding: 0;
}

.professional-alert {
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid var(--info-color);
    padding: 1.25rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    min-width: 140px;
}

.btn-primary.btn-lg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(53, 56, 57, 0.3);
}

.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(53, 56, 57, 0.4);
}

.btn-success.btn-lg {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(40, 167, 69, 0.3);
}

.btn-success.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(40, 167, 69, 0.4);
}

.btn-outline-secondary.btn-lg {
    border: 2px solid #6c757d;
    color: #6c757d;
    font-weight: 600;
}

.btn-outline-secondary.btn-lg:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-header {
        padding: 1.5rem;
    }
    
    .header-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        margin: 0;
    }
}
