/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 3px solid #FFD700;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.company-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
}

.signin-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #FFD700;
}

.form-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFD700;
}

.form-section-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-header i {
    color: #FFD700;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Production Hall Question */
.production-question {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.toggle-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.toggle-buttons {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.toggle-btn:hover {
    border-color: #FFD700;
    background: #fffbf0;
}

.toggle-btn.active {
    background: #FFD700;
    border-color: #FFD700;
    color: #333;
}

/* Questionnaire Section */
.questionnaire-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #FFD700;
}

.question-group {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.detail-box {
    margin-top: 15px;
}

.detail-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    resize: vertical;
}

/* Allergen Section */
.allergen-section {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #ff6b6b;
}

.allergen-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.allergen-section h4 i {
    color: #ff6b6b;
}

.allergen-section p {
    margin-bottom: 20px;
    color: #666;
}

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.allergen-item:hover {
    background: #fff5f5;
    border-color: #ff6b6b;
}

.allergen-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b6b;
}

.allergen-item span {
    font-weight: 500;
    color: #333;
}

/* Agreement Section */
.agreement-section {
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 2px solid #28a745;
}

.agreement-content {
    margin-bottom: 30px;
}

.agreement-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 25px;
}

.agreement-content h4:first-child {
    margin-top: 0;
}

.agreement-content p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.agreement-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.agreement-content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

/* Signature Section */
.signature-section {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #28a745;
}

.signature-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Submit Section */
.submit-section {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #FFD700;
    margin-top: 40px;
    color: #666;
}

.admin-link {
    margin-top: 10px;
}

.admin-link a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Success Page Styles */
.success-container {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.success-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.visitor-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    margin-bottom: 30px;
    text-align: left;
}

.visitor-details h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.visitor-details p {
    margin-bottom: 8px;
    color: #555;
}

.visitor-details strong {
    color: #333;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 10px;
    }

    .logo-section {
        flex-direction: column;
        gap: 15px;
    }

    .company-info h1 {
        font-size: 2rem;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .signin-form {
        padding: 20px;
    }

    .toggle-buttons {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
    }

    .allergen-grid {
        grid-template-columns: 1fr;
    }

    .signature-grid {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }

    .header {
        padding: 20px 0;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .company-info h1 {
        font-size: 1.8rem;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .signin-form {
        padding: 15px;
    }

    .form-section-header h3 {
        font-size: 1.2rem;
    }

    .toggle-question {
        font-size: 1rem;
    }
}

/* ===== ADMIN INTERFACE STYLES ===== */

/* Enhanced Admin Navigation */
.admin-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand .nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

.nav-brand-text {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.admin-nav .nav-link {
    display: inline-block;
    padding: 18px 25px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav .nav-link:last-child {
    border-right: none;
}

.admin-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    transform: translateY(-2px);
}

.admin-nav .nav-link.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c3e50;
    font-weight: 600;
}

.admin-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2c3e50;
}

/* Enhanced Admin Container */
.admin-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.admin-container h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-container h2::before {
    content: '⚙️';
    font-size: 2rem;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c3e50;
    font-size: 1.1rem;
    padding: 16px 32px;
    min-width: 180px;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 12px 20px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Enhanced Button Groups */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Enhanced Configuration Form */
.config-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.config-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #FFD700;
}

.config-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section h3::before {
    content: '📧';
    font-size: 1.2rem;
}

.config-section:nth-child(1) h3::before { content: '📊'; }
.config-section:nth-child(3) h3::before { content: '🔧'; }
.config-section:nth-child(4) h3::before { content: '📝'; }
.config-section:nth-child(5) h3::before { content: '🔒'; }

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
    outline: none;
}

.form-group small {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

/* Enhanced Email Input Groups */
.email-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.email-input-group input {
    flex: 1;
}

.btn-remove {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
}

/* Enhanced Admin Login */
.admin-login-container {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.admin-login-container h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.admin-login-container h2::before {
    content: '🔐';
    font-size: 1.8rem;
}

/* Enhanced Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success::before {
    content: '✅';
    font-size: 1.2rem;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error::before {
    content: '❌';
    font-size: 1.2rem;
}

/* Enhanced Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-info p {
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
}

/* Enhanced Quick Actions */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.quick-actions h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions h3::before {
    content: '⚡';
    font-size: 1.3rem;
}

/* Responsive Design for Admin */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-brand {
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .admin-nav .nav-link {
        display: block;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .admin-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .email-input-group {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Enhanced Current Configuration Display */
.current-config {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-top: 30px;
}

.current-config h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-config h3::before {
    content: '📋';
    font-size: 1.3rem;
}

.config-display {
    display: grid;
    gap: 15px;
}

.config-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #FFD700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.config-item strong {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 10px;
}

/* Enhanced Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.checkbox-label:hover {
    border-color: #FFD700;
    background: #fffbf0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label:has(input[type="checkbox"]:checked) {
    color: #2c3e50;
    font-weight: 600;
}

/* Enhanced Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 15px;
    color: #2c3e50;
}

.page-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Enhanced Tables */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.visitors-table {
    width: 100%;
    border-collapse: collapse;
}

.visitors-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.visitors-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
}

.visitors-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.status-rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    min-width: auto;
}

/* Enhanced System Info */
.system-info {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-top: 30px;
}

.system-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-info h3::before {
    content: '💻';
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

.info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.status-online {
    color: #28a745;
    font-weight: 600;
}

/* Enhanced Recent Visitors Section */
.recent-visitors {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.recent-visitors h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-visitors h3::before {
    content: '👥';
    font-size: 1.3rem;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 30px;
}

/* Photo Capture Styles */
.photo-capture-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.photo-instruction {
    margin-bottom: 20px;
}

.photo-instruction h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.photo-instruction p {
    color: #6c757d;
    margin: 0;
}

.camera-container {
    max-width: 500px;
    margin: 0 auto;
}

#cameraStream {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    border: 3px solid #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-preview {
    margin: 20px 0;
}

.photo-preview img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    border: 3px solid #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-actions {
    margin-top: 15px;
}

.btn-camera, .btn-capture, .btn-cancel, .btn-retake {
    padding: 12px 24px;
    margin: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-camera {
    background: #007bff;
    color: white;
}

.btn-camera:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-capture {
    background: #28a745;
    color: white;
}

.btn-capture:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn-retake {
    background: #ffc107;
    color: #212529;
}

.btn-retake:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Visitor Photo in Approval Page */
.visitor-photo-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.visitor-photo-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visitor-photo {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    border: 3px solid #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Visitor Details Styling */
.visitor-details {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
}

.detail-item {
    flex: 1;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item strong {
    color: #2c3e50;
}

/* Visitor Card Section */
.visitor-card-section {
    background: #f0f8ff;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.visitor-card-section h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.card-instruction {
    color: #6c757d;
    margin-bottom: 20px;
}

.print-card-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.print-card-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.print-card-btn i {
    margin-right: 8px;
}

/* Hide visitor card by default - only show when printing */
.visitor-card {
    display: none;
}

.print-only {
    display: none !important;
}

@media print {
    .print-only {
        display: block !important;
    }
    
    /* Hide everything else when printing */
    .container, .header, .visitor-card-section h3, .card-instruction, .print-card-btn {
        display: none !important;
    }
} 