/* iPad Formulieren CSS - Geoptimaliseerd voor touch interfaces */

/* Reset en basis styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.info-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.info-icon {
    font-size: 20px;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
}

.modal-body ul {
    margin: 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

#headerTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.header-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Formulieren Grid */
.formulieren-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.formulier-knop {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    justify-content: center;
}

.formulier-knop:hover,
.formulier-knop:active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.formulier-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.formulier-knop h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.formulier-knop p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Info Section */

/* Reservering Formulier Specifieke Styling */
.time-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.time-option {
    position: relative;
}

.time-option-label {
    display: block;
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-option-label:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.time-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-radio:checked + .time-option-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    margin: -15px;
}

.time-radio:checked ~ .time-option-label {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.time-option-content {
    transition: all 0.3s ease;
}

.time-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.time-icon {
    font-size: 1.5rem;
}

.time-option-header strong {
    font-size: 1.2rem;
    font-weight: 600;
}

.time-option-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-range {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.time-radio:checked ~ .time-option-content .time-range {
    color: white;
}

.time-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.time-radio:checked ~ .time-option-content .time-description {
    color: rgba(255, 255, 255, 0.9);
}

.time-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.time-info p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

/* Legacy time blocks (voor backward compatibility) */
.time-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.time-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.time-block:hover {
    transform: translateY(-2px);
}

.time-block strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.rules-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.rules-category {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rules-category:last-child {
    margin-bottom: 0;
}

.rules-category h5 {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-category h5::before {
    content: "📋";
    font-size: 1.1rem;
}

.rules-category ul {
    margin: 0;
    padding-left: 20px;
}

.rules-category li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #495057;
}

.rules-category li:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    border: 2px solid #ff4757;
}

.warning-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-box p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.info-box {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
    border: 2px solid #74b9ff;
}

.info-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    margin: 0;
    font-size: 1rem;
}

.info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
}

.signature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.signature-column {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

.signature-column h5 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.signature-text {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive design voor signature row */
@media (max-width: 768px) {
    .signature-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .time-blocks {
        grid-template-columns: 1fr;
    }
}
.info-section {
    margin-top: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Admin Links */
.admin-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.admin-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.admin-link .icon {
    font-size: 1.2rem;
}

.admin-link .text {
    font-size: 1rem;
}

.setup-link {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.setup-link:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.admin-panel-link {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.admin-panel-link:hover {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Responsive Design for Admin Links */
@media (max-width: 768px) {
    .admin-links {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-link {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-info p {
    color: #666;
    margin: 5px 0;
}

/* Form Styling (voor individuele formulieren) */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.2rem;
    color: #666;
}

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

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover,
.btn-secondary:active {
    background: #e9ecef;
    border-color: #667eea;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
    min-width: 100px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Signature Section */
.signature-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.signature-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.signature-container {
    border: 2px solid #ccc;
    border-radius: 12px;
    background: #f9f9f9;
    position: relative;
    touch-action: none;
    margin: 20px 0;
}

.signature-canvas {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
    /* Apple Pencil optimizations */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Better touch handling */
    touch-action: none;
    -ms-touch-action: none;
}

.signature-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
}

.signature-info {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

/* File upload styling */
.form-input[type="file"] {
    padding: 10px;
    border: 2px dashed #667eea;
    background: #f8f9fa;
    cursor: pointer;
}

.form-input[type="file"]:hover {
    background: #e9ecef;
}

/* Help text */
.form-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Progress indicator */
.progress-section {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step.active:not(:last-child):after {
    background: #667eea;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    position: relative;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.progress-step.active .step-title {
    color: #667eea;
    font-weight: 600;
}

/* Form steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .formulieren-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .header-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-step:not(:last-child):after {
        display: none;
    }
}

/* iPad specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .formulieren-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important;
    }
    
    .btn {
        min-height: 44px;
    }
}

/* Landscape orientation for iPad */
@media (orientation: landscape) and (max-height: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .formulieren-grid {
        gap: 20px;
    }
    
    .formulier-knop {
        padding: 20px;
        min-height: 150px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .form-actions,
    .signature-controls {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .form-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Language Switcher Styles */
.language-selector {
    position: relative;
    z-index: 200;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-icon {
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-options.show .dropdown-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 12px 12px;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #667eea;
    color: white;
}

.language-option.dual {
    border-top: 1px solid #e9ecef;
}

.language-option .flag {
    font-size: 16px;
    min-width: 24px;
}

.language-option .text {
    flex: 1;
}

.language-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* Dual Language Display Styles */
.primary-lang {
    display: block;
    font-weight: 600;
    color: inherit;
}

.secondary-lang {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.7;
    font-style: italic;
    margin-top: 2px;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.button-text .secondary-lang {
    font-size: 0.75em;
    margin-top: 0;
}

/* Responsive adjustments for language selector */
@media (max-width: 768px) {
    .language-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .language-options {
        min-width: 220px;
        right: -10px;
    }
    
    .language-option {
        padding: 10px 14px;
        font-size: 13px;
    }
} 