/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Example Container */
.example-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.example-container h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
}

.example-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.example-tile {
    width: 80px;
    height: 80px;
    font-size: 36px;
}

.example-caption {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Tutorial Tips */
.tutorial-tips {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #764ba2;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 16px;
    line-height: 1.5;
    color: #2c3e50;
}

/* Don't Show Again Checkbox */
.dont-show-again {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.dont-show-again input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-intro {
        font-size: 16px;
    }
    
    .example-tile {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .tip-text {
        font-size: 14px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
}
