* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    color: white;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.header-left {
    flex: 1;
    min-width: 250px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.header-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.header-link-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-link-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.header-link-label {
    opacity: 0.95;
}

.header-help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.help-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.help-label {
    opacity: 0.95;
}

.user-info {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .header-left {
        text-align: center;
    }

    header h1 {
        text-align: center;
        font-size: 2rem;
    }

    .subtitle {
        text-align: center;
    }

    .header-right {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .header-links {
        justify-content: center;
        width: 100%;
    }

    .header-link-item {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }

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

/* Legacy quick-links voor backward compatibility */
.quick-links {
    display: none;
}

.quick-link-item {
    display: none;
}

/* Day Planning Styles */
.day-planning {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.day-planning-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    border-bottom: 2px solid #e0e0e0;
}

.day-planning-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.day-planning-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-planning-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

.day-planning-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.day-planning.expanded .day-planning-toggle-icon {
    transform: rotate(180deg);
}

.day-planning-next-task {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin-left: 8px;
}

.day-planning-next-task .task-name {
    color: #667eea;
    font-weight: 600;
}

.day-planning-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.day-planning.expanded .day-planning-content {
    max-height: 2000px;
    padding: 20px;
}

.planning-section {
    margin-bottom: 24px;
}

.planning-section:last-child {
    margin-bottom: 0;
}

.planning-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
}

.planning-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.planning-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.planning-task:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.planning-task.completed {
    opacity: 0.7;
    background: #e8f5e9;
}

.planning-task.completed .planning-task-title {
    text-decoration: line-through;
    color: #666;
}

.planning-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.planning-task-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.planning-task-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.planning-task-info {
    flex: 1;
}

.planning-task-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.planning-task-description {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.planning-task-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #999;
}

.planning-task-time {
    color: #667eea;
}

.planning-task-user {
    color: #999;
}

/* Easter Egg Modal */
.easter-egg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.easter-egg-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.easter-egg-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: easterEggPop 0.5s ease-out;
    color: white;
}

@keyframes easterEggPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.easter-egg-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.easter-egg-message {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

.easter-egg-author {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 24px;
}

.easter-egg-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.easter-egg-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Tutorial Modal */
.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.tutorial-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: tutorialPop 0.3s ease-out;
    overflow: hidden;
}

@keyframes tutorialPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tutorial-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.tutorial-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tutorial-description {
    padding: 20px 30px;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.tutorial-sections {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.tutorial-section {
    margin-bottom: 32px;
}

.tutorial-section:last-child {
    margin-bottom: 0;
}

.tutorial-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.tutorial-section-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tutorial-image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.tutorial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    white-space: pre-line;
}

.tutorial-footer {
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
}

.tutorial-footer .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Responsive voor tutorial */
@media (max-width: 768px) {
    .tutorial-modal {
        padding: 10px;
    }
    
    .tutorial-content {
        max-height: 95vh;
    }
    
    .tutorial-header {
        padding: 20px;
    }
    
    .tutorial-title {
        font-size: 1.2rem;
    }
    
    .tutorial-description,
    .tutorial-sections {
        padding: 16px 20px;
    }
    
    .tutorial-footer {
        padding: 16px 20px;
    }
    
    .tutorial-image-container {
        min-height: 150px;
    }
}

/* Tutorial Tour Overlay - Interactieve tour */
.tutorial-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tutorialFadeIn 0.3s ease-out;
}

@keyframes tutorialFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tutorial-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    transition: clip-path 0.4s ease-out;
    pointer-events: none;
}

.tutorial-tooltip {
    position: fixed;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: tooltipSlideIn 0.3s ease-out;
    pointer-events: auto;
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tutorial-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.tutorial-tooltip-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.tutorial-tooltip-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.tutorial-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tutorial-tooltip-content {
    padding: 24px;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    overflow-y: auto;
    flex: 1;
}

.tutorial-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    gap: 16px;
}

.tutorial-progress {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.tutorial-step-indicator {
    display: inline-block;
}

.tutorial-tooltip-footer .btn-primary,
.tutorial-tooltip-footer .btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.tutorial-tooltip-footer .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive voor tutorial tour */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .tutorial-tooltip-header {
        padding: 16px 20px;
    }
    
    .tutorial-tooltip-title {
        font-size: 1.1rem;
    }
    
    .tutorial-tooltip-content {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .tutorial-tooltip-footer {
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    
    .tutorial-tooltip-footer .btn-primary,
    .tutorial-tooltip-footer .btn-secondary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .tutorial-progress {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
}

.dashboard {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.tool-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    line-height: 1.3;
}

.tool-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-tutorial-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.tool-tutorial-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.frequency-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.frequency-badge.frequency-daily {
    background: #ff6b6b;
    color: white;
}

.frequency-badge.frequency-weekly {
    background: #51cf66;
    color: white;
}

.time-ago-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.tool-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    text-align: right;
}

.info-value.empty {
    color: #999;
    font-style: italic;
}

.info-value-user {
    color: #667eea;
    font-weight: 600;
}

.info-item-reason {
    margin-top: 4px;
}

.info-value-reason {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    text-align: left;
    line-height: 1.4;
}

.checkmark-yes {
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 4px;
}

.checkmark-no {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 4px;
}

.tool-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-link-button {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    color: white;
    background: #667eea;
    border: 1px solid #667eea;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.tool-link-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.tool-link-button.disabled {
    color: #999;
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.tool-link-button.disabled:hover {
    transform: none;
    background: #f5f5f5;
    color: #999;
}

.tool-link-button-secondary {
    background: #51cf66;
    border-color: #51cf66;
}

.tool-link-button-secondary:hover {
    background: #40c057;
    box-shadow: 0 4px 8px rgba(81, 207, 102, 0.3);
}

/* Frequency divider */
.frequency-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 20px 0;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.divider-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Naam invoer modal */
.name-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

.name-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.name-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideUp 0.3s ease-out;
}

.name-modal-content h2 {
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    color: #333;
    text-align: center;
}

.name-modal-content p {
    margin: 0 0 24px 0;
    color: #666;
    text-align: center;
    font-size: 1rem;
}

#name-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#user-name-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

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

.name-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Button styles */
.btn-primary {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}

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

.btn-secondary {
    padding: 12px 32px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.user-info {
    margin-top: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.user-info span {
    color: white;
    font-size: 0.95rem;
}

.user-info strong {
    color: white;
    font-weight: 600;
}

.btn-change-name {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-name:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Kuismachine overlay specifieke styles */
.kuismachine-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Kart Daily overlay specifieke styles */
.kart-daily-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.kart-list-container {
    margin-bottom: 24px;
}

.kart-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.kart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
    align-items: start;
}

/* Wanneer een kart detail open is, neem volledige breedte */
.kart-block-active {
    grid-column: 1 / -1;
}

.kart-block {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.kart-block:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.kart-block-active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.kart-block-has-problem {
    border-color: #dc3545;
    background: #fff5f5;
}

.kart-block-has-problem.kart-block-active {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.kart-block-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    min-height: 60px;
}

.kart-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
}

.kart-problem-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #dc3545;
    flex-shrink: 0;
}

.kart-details {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: white;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    animation: slideDown 0.3s ease-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

.kart-details-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kart-details-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.kart-details-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.kart-details-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.1);
}

.kart-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.kart-item:hover {
    background: #f0f0f0;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.kart-item-header {
    margin-bottom: 12px;
}

.kart-problem-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.kart-problem-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #dc3545;
    flex-shrink: 0;
}

.kart-details .form-group {
    margin-bottom: 16px;
}

.kart-details .form-group:last-child {
    margin-bottom: 0;
}

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

.kart-reason-field {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.kart-reason-field .form-group {
    margin-bottom: 0;
}

.kart-reason-field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.kart-reason-field input[type="text"]:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.kart-details textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

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


.kart-general-comments-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.kart-general-comments-section .form-group {
    margin-bottom: 0;
}

.kart-general-comments-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

.kart-cleaning-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.kart-cleaning-section .checkbox-group {
    margin: 0;
}

.kart-cleaning-section label {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

/* Scrollbar styling voor kart list en grid */
.kart-list::-webkit-scrollbar,
.kart-grid::-webkit-scrollbar {
    width: 8px;
}

.kart-list::-webkit-scrollbar-track,
.kart-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.kart-list::-webkit-scrollbar-thumb,
.kart-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.kart-list::-webkit-scrollbar-thumb:hover,
.kart-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.name-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.name-modal-header h2 {
    margin: 0;
    text-align: left;
}

.overlay-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.overlay-close:hover {
    background: #f5f5f5;
    color: #333;
}

.machine-sections-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.machine-section {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.machine-section:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.machine-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.machine-section-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.machine-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    background: white;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.machine-checkbox-label:hover {
    background: #f0f4ff;
}

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

.machine-checkbox-label input[type="checkbox"]:checked + span {
    color: #667eea;
}

.machine-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    position: relative;
}

.machine-section-divider::before,
.machine-section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.machine-section-divider span {
    padding: 0 16px;
    background: white;
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.niet-gebruikt-reason {
    margin-top: 16px;
    padding: 16px;
    background: #fff5f5;
    border: 2px dashed #ff6b6b;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

.niet-gebruikt-reason label {
    color: #c92a2a;
    font-weight: 600;
}

.niet-gebruikt-reason textarea {
    border-color: #ff6b6b;
}

.niet-gebruikt-reason textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.machine-fields {
    margin-left: 20px;
    margin-top: 12px;
    padding-left: 20px;
    border-left: 3px solid #667eea;
    background: #f9f9ff;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Edit today logs section */
.edit-today-logs-section {
    margin-top: 24px;
}

.today-logs-list {
    padding: 16px 0;
}

.today-log-item {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.today-log-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.today-log-item button {
    margin-top: 4px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

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

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Piste checkboxes in machine fields */
.machine-fields .checkbox-group {
    flex-direction: row;
    gap: 20px;
}

.required {
    color: #ff6b6b;
}

.reden-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.form-error {
    background: #fff5f5;
    border: 1px solid #ff6b6b;
    color: #c92a2a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tools-container {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .name-modal-content {
        padding: 30px 20px;
    }

    .name-modal-content h2 {
        font-size: 1.5rem;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   FAKE ERROR POPUPS - EASTER EGG STYLING
   ============================================ */

.fake-error-popup {
    position: fixed;
    width: 380px;
    min-height: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border: 3px solid;
    animation-duration: 0.4s;
    animation-fill-mode: both;
}

/* Error type colors */
.fake-error-popup.fake-error-critical {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #ffe6e6 100%);
}

.fake-error-popup.fake-error-warning {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fff8e6 100%);
}

.fake-error-popup.fake-error-fatal {
    border-color: #6c757d;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.fake-error-popup.fake-error-alert {
    border-color: #fd7e14;
    background: linear-gradient(135deg, #fff 0%, #fff4e6 100%);
}

/* Animation directions */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0.3);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.fake-error-popup.slide-in-left {
    animation-name: slideInLeft;
}

.fake-error-popup.slide-in-right {
    animation-name: slideInRight;
}

.fake-error-popup.slide-in-top {
    animation-name: slideInTop;
}

.fake-error-popup.slide-in-bottom {
    animation-name: slideInBottom;
}

.fake-error-popup.zoom-in {
    animation-name: zoomIn;
}

.fake-error-popup.rotate-in {
    animation-name: rotateIn;
}

.fake-error-popup.shake {
    animation: shake 0.5s ease-in-out;
}

.fake-error-popup.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Header */
.fake-error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.fake-error-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.fake-error-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fake-error-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.fake-error-close:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    transform: scale(1.1);
}

/* Body */
.fake-error-body {
    padding: 20px;
}

.fake-error-body p {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.fake-error-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fake-error-details small {
    font-size: 0.75rem;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* Footer */
.fake-error-footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: flex-end;
}

.fake-error-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.fake-error-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: translateY(-1px);
}

.fake-error-btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.fake-error-btn-primary:hover {
    background: #5568d3;
    border-color: #5568d3;
}

/* Debug button active state */
.debug-error-active {
    background: #dc3545 !important;
    color: white !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Footer Styles */
.dashboard-footer {
    margin-top: 40px;
    margin-bottom: 200px; /* Extra ruimte onderaan voor tutorial spotlight */
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-text {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.footer-text strong {
    color: #dc3545;
    font-weight: 600;
}

.footer-feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.footer-feedback-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.footer-feedback-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.feedback-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Feedback Modal Styles */
.feedback-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

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

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.required {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .fake-error-popup {
        width: calc(100vw - 40px);
        max-width: 380px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .feedback-modal-content {
        max-width: calc(100vw - 40px);
    }
}
