:root {
	--primary: #0e64a3;
	--secondary: #f7941e;
	--tertiary: #25aae1;
}

/* Common Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

/* Dashboard Layout Styles */
.dashboard-layout {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
	background: linear-gradient(180deg, #387d2a 0%, var(--primary) 100%);
    min-height: 100vh;
    width: 220px;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.content-wrapper {
    margin-left: 220px;
    transition: all 0.3s ease;
    width: calc(100% - 220px);
}

/* Collapsed state */
body.sidebar-collapsed .sidebar {
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .content-wrapper {
    margin-left: 0;
    width: 100%;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin: 1rem 0 2rem 0;
    padding: 1rem 0.5rem;
    position: relative;
}

.logo-container img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-container:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
}

/* Navigation */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

/* Toggle button */
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: var(--secondary);
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Content Area */
.main-content {
    padding: 2rem;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0c5282;
    border-color: #0c5282;
}

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

.btn-secondary:hover {
    background-color: #e88a1b;
    border-color: #e88a1b;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(14, 100, 163, 0.05);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--tertiary);
    box-shadow: 0 0 0 0.25rem rgba(37, 170, 225, 0.25);
}

/* Registration Specific Styles */
.registration-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-container {
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

.registration-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: white;
}

.registration-header {
    background: white;
    color: var(--primary);
    border-radius: 12px 12px 0 0;
    padding: 40px 40px 20px 40px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.registration-logo {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.registration-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
}

.registration-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px 0;
    align-items: center;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.step.active {
    background-color: var(--primary);
}

.step.inactive {
    background-color: #dee2e6;
    color: #6c757d;
}

.step.completed {
    background-color: var(--secondary);
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 8px;
}

.step-line.completed {
    background-color: var(--secondary);
}

.option-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px 20px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: white;
}

.option-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(14, 100, 163, 0.1);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: rgba(14, 100, 163, 0.02);
    box-shadow: 0 2px 8px rgba(14, 100, 163, 0.15);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.option-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.option-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #6c757d;
}

.btn-registration {
    background-color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-weight: 500;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-registration:hover {
    background-color: #0c5282;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 100, 163, 0.25);
}

.btn-registration:disabled {
    background-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid #e9ecef;
}

.section-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.page-title {
    color: #212529;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 100, 163, 0.1);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin: 8px 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Admin Specific Styles */
.admin-page {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-navbar .navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.admin-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.admin-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

.admin-container {
    padding: 24px;
}

.admin-card {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.admin-card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 24px 28px;
}

.admin-card-header h3,
.admin-card-header h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.admin-card-header p,
.admin-card-header .card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.admin-card .card-body {
    padding: 24px 28px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.stats-card {
    background: white;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stats-card.stats-registrations {
    border-left-color: #28a745;
}

.stats-card.stats-checkins {
    border-left-color: var(--primary);
}

.stats-card.stats-today {
    border-left-color: var(--secondary);
}

.stats-card.stats-locations {
    border-left-color: var(--tertiary);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 4px;
}

.stats-change {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Login Page Styles */
.admin-login-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

.admin-login-card {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-login-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 40px 24px 24px;
    text-align: center;
}

.admin-login-logo {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.admin-login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.admin-login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.admin-login-card .card-body {
    padding: 24px 40px 40px;
}

.admin-input-group {
    position: relative;
    margin-bottom: 20px;
}

.admin-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.admin-form-control {
    padding-left: 40px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 14px;
    font-size: 0.95rem;
}

.admin-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 100, 163, 0.1);
}

.admin-btn-login {
    background-color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 500;
    color: white;
    width: 100%;
    font-size: 0.95rem;
    margin-top: 8px;
}

.admin-btn-login:hover {
    background-color: #0c5282;
    color: white;
}

.admin-back-link {
    text-align: center;
    margin-top: 24px;
}

.admin-back-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Check-in Specific Styles */
.location-selector {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
}

.location-selector h5 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.scanner-container {
    max-width: 600px;
    margin: 0 auto;
}

.camera-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 24px;
}

.camera-card-header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 1rem;
}

.camera-container {
    position: relative;
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-video {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    pointer-events: none;
}

.manual-input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.manual-input h5 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.result-card {
    margin: 24px 0;
    padding: 24px;
    border-radius: 8px;
    display: none;
    border: 1px solid #e9ecef;
}

.result-success {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.result-error {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
}

.participant-info {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #e9ecef;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-block;
}

.status-registered {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-checkedin {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Call Assistant Alert */
.call-assistant-alert {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.booth-item {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #dc3545;
}

/* Table Styles for Admin */
.admin-table-responsive {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges for Admin */
.badge-registered {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-checkedin {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Admin Buttons */
.admin-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
}

.admin-btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.admin-btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
}

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

.admin-btn-primary:hover {
    background-color: #0c5282;
    border-color: #0a4971;
    color: white;
}

.admin-btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.admin-btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

/* Refresh Indicator */
.refresh-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

/* Security Info */
.security-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--tertiary);
}

.security-info h6 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.security-info ul {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.security-info li {
    margin-bottom: 6px;
}

/* Responsive untuk Registration Logo */
@media (max-width: 768px) {
    .registration-logo img {
        height: 60px;
        max-width: 150px;
    }
}